Architecture at a Glance
Every deployment mode shares the same thin-client architecture. Your AI runtime talks tofracta serve over stdio; fracta serve forwards requests to the control plane over HTTP. The control plane owns agent lifecycle, and the gateway provides MCP tools to agents.
How Your AI CLI Connects to Fracta
Each runtime reads its MCP server config from a specific file:
All three point to the same command:
bin/fracta serve --config <path>. The config path determines which deployment mode the thin client connects to.
Each scaffold (fracta init --scaffold <mode>) materializes the deployment artifacts you’ll edit (fracta.yaml, deployment/). The runtime CLI configuration that wires fracta into Claude / Codex / OpenCode lives at the project root (.mcp.json for Claude, .codex/config.toml for Codex, opencode.json for OpenCode). The simplest version of those configs runs fracta serve from the project root:
fracta serve reads ./fracta.yaml from your project root by default, so the same minimal runtime config works regardless of which scaffold you initialized. Wrap the command with your secret manager (op run --, doppler run --, etc.) if you need to inject host-side env vars.
After editing, restart your AI CLI (or /mcp in Claude Code) to reconnect.
How Credentials Work
There are two separate credential flows. Confusing them is the most common setup mistake.1. LLM Runtime Credentials
These authenticate agents to their LLM provider (Bedrock, OpenAI). They are configured infracta.yaml and resolved at spawn time.
Where the token command runs depends on the deployment mode:
- Local process: on your machine (e.g.
bedrock-auth-helper) - Docker Compose / K8s: inside the container/pod (e.g.
fetch-bedrock-tokenscript calling a corporate proxy)
2. MCP Server API Credentials
These authenticate MCP backend tools (Elasticsearch, VendorSecurity, etc.) to their external APIs. They are completely separate from LLM credentials. The injection pattern differs by deployment mode:
Any secret injector that sets environment variables works:
op run, doppler run, vault exec, or plain export. The repo defaults to 1Password (op) but nothing in fracta requires it.
Without MCP server credentials, agents still get graph tools, strategy tools, and fracta lifecycle tools — they just can’t query Elasticsearch or VendorSecurity.
Deployment Modes
Fracta runs in three modes. All share the thin-client architecture above.Which mode should I use?
Prerequisites
Quickstarts
Follow these in order of complexity:- Local Process Quickstart — Build fracta, start FalkorDB, spawn your first agent. Everything runs on your machine. (~10 min)
- Docker Compose Quickstart — Build the Docker image, start 7 services, spawn agents through the compose stack. (~15 min)
- Kubernetes Quickstart — Deploy to a local K8s cluster, spawn agents as K8s Jobs. (~20 min)

