Omnara: An Open Source, Self-Hosted Managed Agent Platform
A close read of Omnara's Apache 2.0 agent platform: how its configs, stateless workers and outbound-only machine daemon fit together, and what self-hosting it actually demands.

If you want an AI agent that runs commands on a real machine, keeps state between turns, asks a human before doing something risky, and streams its progress back to your app, you need more than a model API. Something has to run the agent loop. It has to store each step and survive a worker crash. It has to hold secrets and gate tool calls behind permissions. It also needs a way to reach the machine the agent is meant to operate on. Hosted offerings such as Claude Managed Agents and OpenAI's Agents API provide that layer, but they run on someone else's infrastructure and tie you to one vendor's models.
Omnara describes itself as 'the open-source managed agent platform' and 'a self-hostable alternative to Claude Managed Agents and OpenAI's Agents API.' It is licensed under Apache 2.0. You can self-host it for free or use the hosted Omnara Cloud. It accepts any model and any machine, and it includes tools, secrets, permissions and streaming.
This piece works through what the repository actually ships: the config format, the CLI and SDK flow, the self-hosting path, and the architecture choices that decide how it behaves under failure.
What Omnara is, and what it is not
Omnara is an API that runs agents. Your application, the CLI and the dashboard all use the same REST API to launch agents, send messages and answer approval requests. Events stream back as they happen. You do not import an agent framework into your own process. You describe an agent in a config file, hand it to Omnara, and Omnara runs it against the model, tools and machines that config names.
That split matters when you weigh it against a library. With a library, your process owns the loop, the retries and the state. With Omnara, the platform owns them and your app becomes a client. Teams can reach the same agents through the CLI and dashboard, and the architecture diagram also lists Slack, Discord and GitHub as entry points.
There are two deployment modes. Omnara Cloud at app.omnara.com gives a new project a preconfigured model provider (omnara-openrouter) and a pool of managed sandboxes (default-pool), so the sample config runs unchanged. The self-hosted instance starts empty, and you wire up providers and machines yourself.
The agent definition: agent.yaml
An agent is declared in YAML. This is the quickstart config for Omnara Cloud:
version: v1
instruction: |
You are an engineering assistant. Use your machine to run commands.
model:
provider_config: omnara-openrouter
name: anthropic/claude-fable-5.1
machine_sources:
- machine_pool_name: default-poolThere are three things to notice. instruction is the system prompt. model separates the provider configuration (a named credential and endpoint set up in the console) from the model name. That separation is what lets you swap providers without rewriting the agent. machine_sources tells Omnara where the agent's commands run.
On a self-hosted instance, the README says to use your own provider and model names and to replace the machine_pool_name entry with machine_name: <your machine>. In other words, a pool of sandboxes is one kind of machine source, and a single named machine you registered yourself is another. If you forget that substitution, the config points at a pool that does not exist on your instance.
Launching agents from the CLI and the SDK
The CLI requires Node.js 22 or newer. Older runtimes are the first thing to rule out if npx omnara misbehaves. Launching the config above looks like this:
npx omnara agents launch --file agent.yaml \
--name "Machine assistant" \
--message "Report this machine's operating system and free disk space."If you are not logged in, the first command opens a browser to sign in. After that, npx omnara agents chat <agent-id> gives you a terminal conversation. The dashboard shows the agent's tool calls and replies as they happen, which is the quicker way to debug a misbehaving instruction.
For programmatic use, create an API key in the dashboard, export it as OMNARA_TOKEN, and install @omnara/sdk. The flow has two steps. First you register the YAML as an agent config, then you launch an agent from that config ID and iterate over its event stream:
const client = createOmnaraClient({ auth: bearerToken(process.env.OMNARA_TOKEN!) })
const path = { orgID: 'org_...', projectID: 'proj_...' }
const config = await sdk.createAgentConfig({ client, path,
body: { source: await readFile('agent.yaml', 'utf8'), source_format: 'yaml' } })
const launched = await sdk.createAgent({ client, path,
body: { config: config.data.id, message: "Report this machine's free disk space." } })
for await (const event of openAgentEventStream({ client, path: { ...path, agentID: launched.data.agent.id } })) {
console.log(event)
}The org and project IDs come from npx omnara config. Everything is scoped to an org and a project, so plan your project boundaries before you hand out tokens. The README notes that the quickstart docs show the same flow with raw REST calls if you are not working in TypeScript.
Self-hosting with Docker Compose
Self-hosting requires Docker with Compose:
git clone https://github.com/omnara-ai/omnara.git
cd omnara
docker compose -f compose.yaml --profile app up -dThe UI comes up on http://localhost:8000. Sign-up needs email verification, but in local development the verification link is printed in docker compose logs api, so you do not need to configure an email provider. If you want to build from source rather than pull the published images, run docker compose --profile app up -d --build.
Then point the CLI at your instance:
npx omnara config --api-url http://localhost:8000/api/v1 --issuer-url http://localhost:8000
npx omnara loginThe step people skip is that a new instance has no models and no machines. You need to add a model provider and a model in the console, connect a computer under Machines, and share both with your project. Skip any one of these and launches have nothing to run on. Managed sandboxes only work once the instance has a public URL, so a laptop-only install is limited to machines you connect directly.
Architecture: Postgres is the agent's state
The most consequential design decision is where state lives. Every step of every agent is written to Postgres, and the README states that this record is the agent's state. Because workers keep nothing in memory, any worker can pick an agent back up after a crash or restart. When a worker dies mid-turn, you do not lose the conversation. Another worker reconstructs it from the event log.
Workers are stateless processes that build the model context, call the model and run tools. An agent only occupies a worker while it is taking a turn. A long-lived agent waiting on a human approval or a user reply therefore costs nothing in worker capacity. One worker can serve many agents, and you scale by adding workers to handle more concurrent turns, not more concurrent agents.
The supporting services are part of what you operate if you self-host: Redis, blob storage for attachments and tool outputs, and a memory filesystem. The README defers the details to the architecture docs. Tool outputs going to blob storage means that store will grow with usage, and retention is your problem.
Machines and the omnarad daemon
Agents act on machines, and a machine can be a managed sandbox or something you own: a laptop, a VM or a container. Each machine runs the omnarad daemon, which connects out to Omnara. Because the connection is outbound, agents can run commands on that machine without you opening any inbound ports.
This is the part that makes self-hosting attractive for internal tooling. You can register a build box or a staging VM behind a firewall, and the agent reaches it through the daemon's outbound connection. You do not need a bastion host and you do not need to expose SSH. The same property is also the risk. Any machine running omnarad is a machine an agent can execute shell commands on. Scope agents to dedicated machines rather than to anything holding production credentials, and use the approval mechanism for destructive operations.
Models and tools
Omnara is bring-your-own-key. Supported providers listed in the README are OpenAI, Anthropic, OpenRouter, Amazon Bedrock, LiteLLM, Ollama, and any compatible endpoint, including models you host yourself. Combined with self-hosting, this means the whole pipeline (orchestration, model inference and execution) can run without data leaving your network, provided you also run a local model.
Built-in tools cover:
- shell commands
- file operations
- web search and fetch
- asking a person a question
Beyond those, you can attach MCP servers and custom tools that run in your own systems. The architecture diagram also lists skills alongside these. The 'ask a person' tool, together with API-level approvals, is how human-in-the-loop works here. The agent pauses, the question surfaces through the API or dashboard, and the answer flows back as input. Because state is in Postgres, that pause can last as long as it needs to.
Where it does not fit, and what to watch for
The repository is explicit that the local defaults are intentionally insecure. The Compose setup is for evaluation. A real deployment needs the self-hosting guide and the configuration reference, and anyone exposing localhost:8000 on a shared network with defaults intact is taking an avoidable risk on a system whose job is to run shell commands.
Self-hosting also means operating Postgres, Redis, blob storage, a memory filesystem, the API and a worker fleet. If you have one agent and no compliance reason to keep things in-house, Omnara Cloud or a hosted vendor product will cost less in engineering time than the infrastructure will. The open source licence removes licensing cost, not operating cost.
If your agent is a short, single-process script that calls a model a few times and exits, a platform with an event log, workers and daemons is more machinery than the problem needs. Omnara earns its place when agents are long-lived, act on real machines, need human approvals, and have to survive restarts. Finally, the README positions Omnara against Claude Managed Agents and OpenAI's Agents API but does not publish a feature comparison. If you are migrating from one of those products, map your current features against the Omnara docs before you commit.
- #MCP
- #Omnara
- #Open Source
- #agent orchestration
- #managed agents
- #self-hosted AI agents


Comments