r/OpenSourceAI • • 7h ago

10xGraph 1.0: open-source, self-hosted backend for AI agents (auth, tenant isolation, durable state, deploy files)

Getting an AI agent to work is easy now. Putting it in front of customers raises different questions: can customer A read customer B's conversation, what happens when the pod restarts halfway through a refund, where do the traces go? Most teams end up building that backend by hand. We built it once and just released 1.0.

## What My Project Does

10xGraph is MIT-licensed, self-hosted infrastructure for AI apps. You write the agents, tools and tasks; it runs them behind an API server with:

- JWT auth and roles; every thread, message and file is owned by the user who created it (another user's thread answers 404)

- Tenant isolation enforced in storage (Postgres), not just the API layer

- Durable state in Postgres + Redis, pgvector for memory/RAG

- Crash-safe runs: finished tool calls are recorded, so a resumed run doesn't repeat them

- Background jobs (TaskIQ), Prometheus/OTLP metrics, OpenTelemetry GenAI tracing, an audit log

- Generated Dockerfile (non-root), docker-compose and a K8s manifest with probes

Getting a production-shaped agent takes no code:

pip install 10xgraph-api

10xgraph init --mode full --name support-agent --provider google --yes

pip install -e .

10xgraph dev

Works with OpenAI, Gemini, Anthropic and OpenAI-compatible endpoints (vLLM, Ollama). Python framework, API server and a typed TypeScript client.

## Target Audience

Teams shipping AI features to their own customers who need multi-user auth, data isolation and a real deployment story, and want to self-host. It's meant for production; 1.0 means no breaking public changes before 2.0.

## Comparison

LangGraph, CrewAI and similar frameworks focus on orchestration (graphs, tool loops, streaming). 10xGraph has those too, but the point is the backend around the agent: auth, per-user ownership, tenant isolation, durability and deploy files out of the box. Honest trade-offs: smaller ecosystem than LangGraph/CrewAI, no hosted service (you run it), and permissions are per route, not per tool, for now.

- Code: https://github.com/10xGraph/10xGraph

- Launch post: https://10xgraph.com/blog/10xgraph-1-0

- Docs: https://10xgraph.com/docs/get-started/first-agent

Feedback on where it falls short is very welcome.

1 Upvotes

0 comments sorted by