10xGraph by 10xScale: graph engineering for production AI agents.
Website · Docs · Quickstart · Changelog
10xGraph is open-source, self-hosted infrastructure for AI applications. You write the agents, tools and tasks; 10xGraph runs them behind an API server with authentication, role-based access, tenant isolation, durable state in Postgres and Redis, background jobs, metrics and tracing, and generates Docker and Kubernetes deploy files. MIT licensed, by 10xScale. Formerly Agentflow.
- Isolation: tenant-based system · roles with reach
own/tenant/all· tenant columns from the verified identity · another tenant's data answers 404 - Zero trust: verified identity on every request · no route without a permission guard · ToolGuard checks every tool call against the caller (1.1) · human approval for risky tools (1.1) · tool output fenced as data (1.1) · mTLS support
- Scalable: horizontal scale with stateless API workers · shared Redis cache store for locks, caps and rate limits · job workers scaled on their own · Snowflake IDs across nodes · readiness probes and graceful shutdown · events to Kafka, Redis or RabbitMQ
- Background jobs: worker for queued tasks · scheduler for cron jobs · Redis Streams, RabbitMQ or Kafka brokers · each task runs as the user who queued it
- Durable state: one database (Postgres + pgvector) · Redis hot cache · versioned writes · tool call ledger, so a finished tool is not run again after a crash
- Operable: OTLP tracing · Prometheus metrics · audit log · Docker and Kubernetes files
- Yours: MIT · self-hosted · any model · no LangChain
Before an agent reaches real customers, someone writes the auth, the tenant filter in every query, the job worker, the metrics and the deploy files. With 10xGraph, that work ships in the install, and each part stays replaceable.
- Security and access on every endpoint. One
authsetting: JWT or your own auth class, roles with permissions and a reach ofown,tenantorall. The server refuses to boot if a route has no permission guard, and a thread from another user or tenant answers 404. - Tenant isolation you declare. Tenant columns on the checkpointer and store are filled from the verified identity, never from client input, and every query filters by them. Postgres row-level security is opt-in.
- Zero trust for agents. The model never gets more power than the person it acts for. From 1.1,
ToolGuardchecks every tool call against the caller's permissions, risky tools wait for a human yes, and tool output reaches the model fenced as data, not instructions. Each link (proxy, Postgres, Redis, LLM, MCP) can run over mutual TLS; see zero-trust agents. - Scales out. Add stateless API workers behind a load balancer. Postgres holds durable state, and a shared Redis cache store holds run locks, caps, rate limits and token revocation across workers. Long work goes to a job worker tier you scale on its own; see scaling and reliability.
- Durable state in one database. Threads in Postgres with Redis as a hot cache, and memory and RAG in the same Postgres with pgvector. Qdrant and SQLite are there when you need them.
- Background jobs, two kinds.
10xgraph workerruns tasks your API queues, and10xgraph schedulerruns them on cron schedules. Both are built on TaskIQ over Redis Streams, RabbitMQ or Kafka, and a task runs as the user who queued it, under the same access rules. - Observability. Tracing to Logfire, LangSmith, Phoenix or any OTLP endpoint, Prometheus or OTLP metrics for the API and the worker, and a metadata-only audit log you ship to your own sink.
- Correct under failure. A ledger of completed tool calls means a resumed run skips tools that already finished, and node and tool timeouts stop a hung tool from holding a worker. On SIGTERM, active runs finish or are stopped and saved.
- Deploy it yourself.
10xgraph buildwrites the Dockerfile, Docker Compose file and Kubernetes manifest, with liveness and readiness checks. - One stack, backend to frontend. A typed TypeScript client for invoke, streaming, threads, memory and files, plus tools that run in the user's browser.
- You own it. MIT, self-hosted, no paid tier, no LangChain dependency. Any model: OpenAI, Google Gemini (including Vertex AI), Anthropic (direct, Vertex AI and Bedrock) and OpenAI-compatible endpoints.
Built for teams going through SOC 2 and ISO 27001 audits: the control mapping shows which controls 10xGraph supports and which stay with you. Auth is off until you configure it; 10xgraph init --mode full turns it on.
pip install 10xgraph 10xgraph-api
10xgraph init # scaffold a project
10xgraph dev # run the server and open the playgroundThen follow the first agent guide, or read why 10xGraph and the comparisons with LangGraph, CrewAI, Google ADK and others.
| Package | Install | Repository |
|---|---|---|
| Core engine | pip install 10xgraph |
10xGraph/10xGraph |
| API server and CLI | pip install 10xgraph-api |
10xGraph/10xgraph-api |
| TypeScript client | npm install 10xgraph-client |
10xGraph/10xgraph-client |
| Website and docs | 10xgraph.com | 10xGraph/10xgraph-docs |
All three packages share the major and minor version (1.0 today). Coming from Agentflow? The old agentflow import and CLI keep working until 2.0; see coming from Agentflow.
Your first pull request can be small: a typed module, an example, a fixed doc. Start with the contributing guide, meet the people who build 10xGraph at 10xgraph.com/maintainers, and ask questions in Discussions. Report security issues privately through the Security tab of the affected repository.
MIT licensed. Built and run in production by 10xScale.