Integrations
In this sectionConnect 10xGraph agents to your existing stack. Guides for LLM providers, frameworks, storage, and observability backends.
- 8 pages
- About 54 min to read all
10xGraph integrations help you connect agent graphs to the stack you already run: your LLM provider, backend framework, data store, and observability tools. The core library is provider-agnostic and supports optional integrations for persistence, memory, messaging, and tracing. This section covers what the library includes and how to wire each integration into your system.
What you get
10xGraph lets you choose every layer: the LLM provider (OpenAI, Google, Anthropic), the backend framework (FastAPI, your own service), the storage (Postgres, SQLite, or in-memory), and the observability tools (OTEL, Logfire, LangSmith). You install only what you use.
LLM providers. The library detects your model string and calls the provider SDK. Use "openai/gpt-4o", "gemini/gemini-2.5-flash", or "claude-opus-5" to switch providers in one line. Anthropic supports three backends: the direct API, Vertex AI, and Bedrock.
Backend frameworks. Serve graphs over the REST API (the 10xgraph api server), embed them directly in your FastAPI app, or call them from TypeScript with the 10xgraph-client SDK. The API server handles auth, rate limiting, and streaming out of the box.
Storage and memory. Persist thread state to PostgreSQL with Redis as a hot cache, use SQLite for local development, or keep everything in memory for tests. Long-term memory integrations (Qdrant, Mem0) store facts across sessions for your agents to retrieve.
Observability and debugging. Publish execution events to Redis, Kafka, or RabbitMQ. Send traces to OpenTelemetry, Logfire, or LangSmith. The API server logs all requests and can redact secrets.
Organize your reading
Pick your use case below, or read the categories in order: models first (to understand provider selection), then frameworks (how to wire in a backend), then storage (thread persistence), then coding assistants (if you’re building for Claude Code).
I have a Python service and want to add agents
Start with Models to see provider support and pick your LLM. Then choose how to serve:
- FastAPI guide: embed a graph in your existing app, with auth and streaming patterns for both embedded and sidecar deployments.
- Postgres guide: set up durable threads with
PgCheckpointerso runs survive restarts and crashes.
I have a frontend and want to call agents
Read Models first. Then:
- Next.js/React guide: call the agent API from a Next.js route handler or React component, stream tokens, and keep threads between messages.
- CopilotKit guide: if you already use CopilotKit, serve your graph over the AG-UI protocol (off by default, needs an extra) to feed a CopilotKit chat with shared state and frontend tools.
I need to scale and persist state
- Postgres and Redis guide:
PgCheckpointerwith connection pooling, schema setup, backup. Also gives the replay-safe tool ledger durable storage (see Replay-safe tools).
I want to give agents long-term memory
- Vector stores: Qdrant or Mem0 store and retrieve agent facts across sessions.
- Storage guide:
/docs/guides/use-memory-storeshows how to wire a store into your graph.
I want to observe and debug in production
- Publishers guide: emit events to Redis, Kafka, RabbitMQ, or composite publishers.
- Traces guide: send traces to Logfire or LangSmith for inspection.
- Observability reference: logs, metrics, OTEL, and secret redaction on the API server.
I’m building Claude Code skills
- Coding assistants guide: how the
10xgraph skillscommand installs your graph into Claude Code.
Optional extras
The core library includes support for many backends. Install only the extras you use:
| What | Where | Extra | Install if |
|---|---|---|---|
| Models | |||
| OpenAI, GPT-4, o1, o3 | Direct API | openai |
you use OpenAI models |
| Google Gemini, Flash | Direct API or Vertex AI | google-genai |
you use Google GenAI or Vertex AI |
| Anthropic, Claude | Direct API, Vertex AI, or Bedrock | anthropic, anthropic-vertex, anthropic-bedrock |
you use Anthropic models |
| Realtime audio | Google GenAI (Gemini Live) | realtime |
you use realtime audio with Gemini |
| Persistence | |||
| PostgreSQL + Redis | Dual-layer: Redis (hot), Postgres (durable) | pg_checkpoint |
threads must survive restarts |
| SQLite | Local file-based | sqlite_checkpoint |
developing or running single-instance |
| In-memory | RAM (default) | - | tests or ephemeral runs |
| Long-term memory | |||
| Qdrant | Vector database | qdrant |
agents need persistent facts across sessions |
| Mem0 | Memory management API | mem0 |
you prefer a managed memory service |
| Tools and protocols | |||
| Model Context Protocol | MCP servers and clients | mcp |
your tools run in separate processes |
| Event publishing | |||
| Redis Pub/Sub | Redis channels | redis |
you have Redis and want local pub/sub |
| Kafka | Kafka topics | kafka |
high-scale event streaming |
| RabbitMQ | AMQP queues | rabbitmq |
traditional message broker |
| Observability | |||
| OpenTelemetry | Traces and metrics | otel |
you use OTEL in your infrastructure |
| Logfire | Pydantic-hosted observability | logfire |
you want a managed OTEL collector |
| LangSmith | LangChain’s observability | langsmith |
you already use LangSmith for tracing |
| Multimodal | |||
| Images | Processing and cloud offload | images |
you send images to models or store them |
| Cloud storage | S3, GCS, Azure offload | cloud-storage |
you offload media to cloud buckets |
Install with the extras you need:
# Anthropic + Postgres for production
pip install "10xgraph[anthropic,pg_checkpoint]"
# OpenAI + development stack
pip install "10xgraph[openai,sqlite_checkpoint,logfire]"
# All backends (development and testing)
pip install "10xgraph[all]"Integration pages
Models and providers
- Models: capability matrix (tools, structured output, streaming, reasoning, caching, multimodal, batch), OpenAI-compatible models, Ollama.
- OpenAI: configure models, keys, batching, common errors.
- Google: Gemini, Vertex AI, API keys, quotas.
- Anthropic: direct API, Vertex AI, Bedrock, thinking models, model specifications.
Backend frameworks
- FastAPI: embed graphs in your FastAPI routes, lifespan management, streaming, auth patterns.
- CopilotKit: serve over AG-UI, shared state, frontend tools.
Storage and state
- Postgres and Redis:
PgCheckpointerconfiguration, connection pooling, schema, disaster recovery.
Tools and AI coding
- Coding assistants:
10xgraph skillscommand, Claude Code integration, updating.
Next steps
- Learn how provider selection works before your first agent.
- Set up a checkpointer early: choose a checkpointer.
- For building in production: server production checklist.
All pages in Integrations
Models
- Model providers10xGraph supports OpenAI, Google Gemini, and Anthropic Claude through a single Agent interface. Choose your model independently of your graph.6 min
- OpenAIConfigure the OpenAI provider in 10xGraph to run GPT and reasoning models, including the install extra, API key, and model settings.6 min
- GoogleConfigure the Google provider to run Gemini models via Google AI Studio or Vertex AI.8 min
- AnthropicConfigure the Anthropic provider to run Claude models via the Claude API, Google Cloud Vertex AI, or Amazon Bedrock.7 min
Frameworks
- Embed a graph in FastAPIRun a 10xGraph agent directly in your FastAPI service with shared auth, streaming, and dependency injection.7 min
- Build a chat frontend with CopilotKit and 10xGraphConnect a CopilotKit chat frontend to your 10xGraph agent over the AG-UI protocol, with streaming responses, tool calls, browser tools, and shared state.8 min