All articles
forge ai-agents architecture 5 min read

We removed the database from the agent control plane

Running a multi-agent system used to mean running a database alongside it. We built the control plane so it no longer does.

by Vitaly Nikitin

Here is the dependency that felt normal until we decided to question it: to run Forge, you had to run a database. Not because the product is especially stateful, but because that is what backend services do — they point at a datastore, and somebody has to operate it.

We changed that.

The problem with “just run Mongo”

Multi-agent orchestration involves a lot of moving state: workflow runs, agent turns, handoffs, provider credentials, session context. That state has to live somewhere, and for a long time it lived in MongoDB. MongoDB is a fine database. The problem is not the database; it is what a database requires.

You need to provision it, back it up, monitor its health, manage credentials for it, upgrade it when a security advisory lands, and keep it available every time the control plane needs it. If you are running Forge inside a team’s development environment, or evaluating it on a laptop, that operational surface is disproportionate to the task.

The more fundamental issue is that the stateful dependency couples the control plane’s availability to an external service. If the database is down, everything is down. If it is misconfigured, nothing works. For a system whose job is to coordinate other agents reliably, that felt like the wrong dependency to carry.

What we built instead

Forge’s control plane — the conductor, the AI gateway, and the session service, together with the web UI — now builds and starts as a single self-contained binary. The datastore is embedded inside it. There is nothing to point at, nothing to provision separately, and no external stateful dependency to operate.

Three services that previously ran as independent processes, each with its own configuration and its own connection to a database, now compose into a single HTTP backend. The embedded datastore is MongoDB-wire-compatible, which means the same query logic, the same migration path, and the same driver code that works against an external database works against the one that ships inside the binary.

The practical result: 54 of the platform’s 55 schema migrations pass against the embedded store, as do all seven of the heavy aggregation queries the platform relies on. The composite binary serves the full API — workflows, agents, providers, organisations — with no external service running.

We also ran 54 conductor migrations and all seven heavy aggregation queries against the embedded store before shipping. Zero datastore panics. Zero API registration conflicts. The same code paths that run against an external MongoDB in production run here without modification.

Why this is a different kind of “local AI” story

A lot of the conversation about running AI tooling locally is really a story about inference: running a language model on your own hardware so that tokens never leave your network. That is a legitimate concern, and tools like Ollama address it well.

This is not that story.

Forge still calls cloud model providers — the binary does not contain a language model. What it removes is the operational dependency on an external service to store the platform’s own state. The question it answers is not “can my prompts stay on-premises?” but “can I run the entire orchestration layer without standing up and operating a database?”

That question comes up in contexts that have nothing to do with air-gapping. A developer evaluating Forge on a laptop does not want to install and run a database server. A team running Forge inside a CI environment does not want to manage a database as part of that environment. A small team that wants to self-host Forge does not want to add a stateful service to maintain alongside the control plane.

The embedded-datastore path exists for those situations.

What this is, and what it is not

We want to be precise about scope, because over-claiming is easy here.

This is an engineering milestone — the architecture now supports running without an external datastore. It is not a packaged product with an install wizard, a supported platform matrix, or a public binary download. The same migration story applies if your usage grows to the point where you want an external, separately-operated database: Forge continues to support that path, and the two are not mutually exclusive.

The other thing it does not do is remove the network. Model calls still reach external providers. Forge’s gateway routes those calls; the embedded datastore stores the platform’s own state; neither removes the dependency on a model provider.

What it does remove is the assumption that operating a multi-agent platform means operating a database alongside it.

The broader direction

The practical and the architectural converge here. Making the control plane self-contained is not just a convenience for local runs — it simplifies the deployment story in every environment, reduces the attack surface for the platform’s own state, and removes a whole class of “is the database up?” failure modes from the operational picture.

We think the agent tooling space has a healthy obsession with what goes into the runtime — which models, which tools, which protocols — and not quite enough attention to what it takes to run the runtime itself. This is a small step toward a Forge that is lighter to operate, wherever you are operating it.


Learn more about how Forge handles multi-agent workflows and infrastructure boundaries on the features page .