Open Managed Agents (OpenMA)
Open-source managed agent runtime with durable sessions, execution and recovery — any model, any harness, any sandbox, any cloud.
- Source repo
- openma-ai/open-managed-agents
- Stars
- ★ 378
- Last updated
- today @openma/[email protected]
- FARS reviewed
- Nov 08, 2026 +4 new
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 76/100 · Good
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- Teams running long coding jobs that want Claude Code or Codex inside an isolated sandbox (E2B, Daytona, Cloudflare Sandbox and others) while OpenMA handles workspace persistence and output collection.
- Not a fit if
- Teams that want a turnkey hosted API and no infra to babysit
- Users who cannot provide an isolated sandbox or Docker runtime
- Anyone needing a fully offline setup that calls no cloud model
- Website
- openma.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-02latest release @openma/[email protected] (2026-11-25)
- Source review
- 76/100 · Good
What does this agent do, and when should you use it?
Open Managed Agents (OpenMA) is an open-source, self-hostable alternative to Claude Managed Agents and OpenAI Agents API that positions itself as a meta-harness: it does not ship one agent loop, it manages the sessions, execution resources and recovery around a loop you choose. You can keep the harness outside the sandbox (built-in Pi, or your own implementation of the host-side harness interface) and use the sandbox only to run tools, or put a mature harness such as Claude Code or Codex into a managed sandbox through the ACP runtime. Session history, workspace checkpoints and collected outputs are persisted independently of both the loop process and the sandbox, so a sandbox failure does not erase the conversation and a replacement harness can rebuild context from durable events. Models are wired in through Model Cards (Anthropic, OpenAI, DeepSeek, OpenRouter and other Pi providers, plus custom endpoints), and database, queue and object storage are all swappable adapters. Deployment paths include native Node.js, Docker Compose, Fly.io, Vercel (Beta) and Cloudflare, alongside a hosted console.
You create an agent (name, model, system prompt), an environment (networking and packages) and a session; from then on OpenMA runs the event loop for you. Events such as user.message are sent with client.beta.sessions.events.send, persisted as durable records, handed to the selected harness, and streamed back as progress and output events. Built-in tooling covers shell execution, file read/write/edit, glob and text search, web search and page fetching, and optional browser automation (navigation, clicks, text input, screenshots); sessions can also load MCP services, Skills, repositories, files and persistent memory stores. When work finishes, the workspace is checkpointed and outputs are collected so the session can be resumed later. Three interfaces are exposed: Claude Managed Agents style /v1/* (works with the official Anthropic SDK), OpenAI Agents API style /openai/v1/* (tested against [email protected]), and OpenMA extensions under /v1/oma/* for Model Cards and product features. For scale-out, Node replicas claim different sessions in parallel through a durable execution outbox with renewable leases and fencing while work inside one session stays ordered; in-sandbox harnesses use a separate Environment Work claim instead.
- Teams running long coding jobs that want Claude Code or Codex inside an isolated sandbox (E2B, Daytona, Cloudflare Sandbox and others) while OpenMA handles workspace persistence and output collection.
- Platform teams avoiding vendor lock-in: models, harnesses, sandboxes, deployment, database, queue and object storage are seven independently replaceable layers.
- Developers who already have Anthropic or OpenAI SDK code and want to self-host — point baseURL at your own server and keep using /v1/* or /openai/v1/*.
- Workflow teams automating issue-to-PR: combine GitHub issues/PRs, Linear, Slack and Feishu integrations with OpenMatter's Loop runtime to turn work events into agent turns and deliver results back.
- Security-conscious operators who need provider keys encrypted at rest via Model Cards and scoped access to private services through a Vault-backed gateway.
- Individual developers validating agent behaviour locally with the single-host SQLite Docker Compose quickstart and their own API key.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add openma-ai/open-managed-agents --skill deploy-openmadocker compose up -d --buildpnpm install --frozen-lockfilenpx wrangler login
- Ports
8787- Environment variables
BETTER_AUTH_SECRETPLATFORM_ROOT_SECRETPUBLIC_BASE_URLOPENMA_API_KEYOPENMA_BASE_URLOPENMA_MODEL_ID- Config files
.env.example.env- Install notes cover
- Docker
How do you install or deploy this agent?
The recommended path is to let a coding agent install the deployment skill:
npx skills add openma-ai/open-managed-agents --skill deploy-openmaThen ask it to "Deploy OpenMA on this machine": the agent checks the environment, prepares configuration, deploys the platform and verifies the Console plus one agent task, asking for credentials and confirming paid cloud resources before creating them.
Manual Docker setup (requires Docker with Compose):
git clone https://github.com/openma-ai/open-managed-agents.git
cd open-managed-agents
cp .env.example .envBefore starting, edit .env: generate the two secrets with
openssl rand -hex 32 # BETTER_AUTH_SECRET
openssl rand -base64 32 # PLATFORM_ROOT_SECRETthen select an isolated SANDBOX_PROVIDER with its network, storage and credential-proxy settings, and set PUBLIC_BASE_URL. Keep authentication enabled — the deployment does not fall back to running agent commands in an unisolated host subprocess.
docker compose up -d --build
curl --fail http://localhost:8787/healthOpen http://localhost:8787, create an account, then configure a model and environment in the Console. The Compose stack mounts ./data; keep it across restarts and upgrades.
Cloudflare deploy needs the Node version from .node-version, the repository's pinned pnpm, Docker for container builds, plus jq and openssl:
git clone https://github.com/openma-ai/open-managed-agents.git
cd open-managed-agents
pnpm install --frozen-lockfile
npx wrangler login
pnpm setup:cloudflareThe script provisions Cloudflare resources in your account, updates the local Wrangler config, sets secrets and deploys the Workers; it may incur charges and currently prompts for an Anthropic API key unless supplied in the environment.
How do you use this agent?
Create an API key, a Model Card and an environment in the Console, then call the API from your own code.
With the official Anthropic SDK (repository pins @anthropic-ai/[email protected]):
npm install @anthropic-ai/[email protected]import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env.OPENMA_API_KEY,
baseURL: process.env.OPENMA_BASE_URL ?? "https://app.openma.ai",
});
const agent = await client.beta.agents.create({
name: "researcher",
model: process.env.OPENMA_MODEL_ID!,
system: "Help me investigate a task and explain your findings.",
});
const session = await client.beta.sessions.create({
agent: { type: "agent", id: agent.id, version: agent.version },
environment_id: process.env.OPENMA_ENVIRONMENT_ID!,
});
await client.beta.sessions.events.send(session.id, {
events: [{
type: "user.message",
content: [{ type: "text", text: "Help me plan a code review." }],
}],
});With the OpenAI SDK (tested baseline [email protected]):
npm install [email protected]import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENMA_API_KEY,
baseURL: `${process.env.OPENMA_BASE_URL ?? "https://app.openma.ai"}/openai/v1`,
});
const events = await client.beta.agents.sessions.create({
agent: {
model: process.env.OPENMA_MODEL_ID!,
instructions: "Help me investigate a task and explain your findings.",
},
environment: { type: "none" },
input: "Help me plan a code review.",
stream: true,
});
for await (const event of events) console.log(event);For self-hosting, set OPENMA_BASE_URL to your own origin without a trailing slash (e.g. http://localhost:8787) and set OPENMA_MODEL_ID to the Model Card's model_id, not its database record ID. The OpenAI example above requests no sandbox.
Local development:
pnpm install --frozen-lockfile
pnpm typecheck
pnpm testSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- sensitive-data handling
What are this agent's strengths and limitations?
- Seven independently replaceable layers — models, harnesses, sandboxes, deployment, database, queue, object storage — each behind a documented interface (ports.ts, host-side harness interface), so no single vendor is mandatory.
- Sessions are decoupled from execution: history lives apart from the loop and the sandbox, and sandbox failures are recovered from durable events plus workspace checkpoints; Node replicas share sessions via outbox, leases and fencing while intra-session ordering holds.
- Two compatibility layers ship at once: Claude Managed Agents style /v1/* for the official Anthropic SDK and OpenAI Agents API style /openai/v1/* for the openai SDK, so existing code mostly needs a baseURL change.
- Existing mature harnesses can be reused in-sandbox through ACP adapters (Claude Code, Codex and others), with harness versions installed independently of the sandbox image.
- Deployment choice spans Docker, Fly.io, Vercel (Beta), Cloudflare and a hosted console, letting small pilots and scaled rollouts use different stacks.
- Apache-2.0 licensed, with provider keys encrypted at rest through Model Cards when self-hosting.
- Self-hosting is not a one-liner:
BETTER_AUTH_SECRET,PLATFORM_ROOT_SECRET,SANDBOX_PROVIDER,PUBLIC_BASE_URLand provider networking/credential-proxy settings all need hands-on configuration, and unisolated host execution is explicitly unsupported. - An isolated sandbox provider (E2B, Daytona, LiteBox, Cloudflare Sandbox, …) is required for real use, and remote sandboxes need reachable services rather than a bare private Docker hostname.
- The two compatibility layers are not equivalent: the OpenAI adapter documents limits on environments, plugins and some model/tool settings, dynamic subagent control is currently Node-only and single-level, and hosted Cloudflare coverage differs.
- The Cloudflare quickstart provisions chargeable resources in your own cloud account and by default asks for an Anthropic API key.
- Some integration work is still proposed rather than shipped — unified Bond/Loop hosting with OpenMatter appears only as ADR 0011.
- Scaled capacity depends on the chosen database, storage, sandbox provider and model rate limits; the SQLite single-host path is a quickstart, not a scale-out answer.
How does this agent compare with similar options?
The README explicitly frames OpenMA as an open-source, self-hostable alternative to Claude Managed Agents and OpenAI Agents API, and backs that up with two compatibility surfaces: /v1/* implementing the Claude Managed Agents contract for the official Anthropic SDK, and /openai/v1/* mapping the OpenAI Agents API onto native OpenMA agents and sessions. It also states plainly that it is an independent implementation and that API/runtime coverage should be checked before migrating. Claude Code and Codex are not rivals here — they are harnesses the platform can host inside a managed sandbox via its ACP runtime.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Open Managed Agents (OpenMA) This agent | 76 · Good | Self-hosted serviceFreemium | ★ 378 | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| OtoDock | 70 · Some gaps | Self-hosted serviceFreemium | ★ 207 | 12d ago | Python | Codex · Claude Code |
| Poracode | 67 · Some gaps | Desktop appFree + model costs | ★ 125 | 3d ago | TypeScript | ChatGPT · Claude Code |
| Runtm | 60 · Some gaps | CLIFreemium | ★ 306 | 9d ago | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The documentation describes per-tool permission configuration, an always-ask option for bash, and deployment approval for costs or public exposure. These support least privilege and confirmation, but the general Agent toolset includes shell, file-write, and network capabilities, and confirmation is not a universal default. ADR 0007 gives concrete credential flow, scope, fencing, and provider-enforcement boundaries; the deployment Skill also says not to collect or echo secrets in chat. Sensitive-data handling is detailed, while dependency security is supported only by pinned install examples and a reporting policy, not package audit evidence. Cloud provisioning, external MCP/integrations, and tool calls can have external effects; costs and permissions are called out. Recovery, archives, checkpoints, and rollback preparation are described, but there is no universal confirmation or undo path. Attribution and maintenance channels are traceable, while publisher identity is unknown per the prompt.
Session event logs, recovery, leases/fencing, retries, and execution paths are described across documents, and the README distinguishes platform capabilities from limits of specific APIs. It also says a healthy endpoint does not establish that a model or sandbox task succeeded. The sample is not the full source, so implementation consistency cannot be fully checked; failure and dependency-availability guidance is useful but does not establish consistent behavior for every backend.
The product addresses builders and operators, documents model, harness, sandbox, deployment, and storage choices, and covers Node, Docker, Cloudflare, Fly, and Vercel. The README says “any” depends on extension interfaces and selected-adapter capabilities, and documents OpenAI subagent and credential-isolation boundaries. Trigger descriptions are broad (for example, mentioning OpenMA triggers a skill), and the agent-creation skill also covers general platform questions, so precision is reduced.
The README, architecture documents, deployment guides, and Skills have clear roles. Setup guidance covers environment, authentication, storage, isolation, and paid-resource notices. Examples are extensive, though a distinct FAQ is not evident and some limits require navigating to other documents. Naming and version fields are mostly clear and the package version is 0.1.0; the sample does not establish a complete changelog or stable release cadence. SECURITY.md defines supported versions, reporting, and response targets, and ADRs identify status and owners, but overall maintenance responsibility and support commitments remain limited. Apache-2.0 is backed by a license file and package-level references.
The platform offers durable sessions, execution recovery, pluggable runtimes, and API compatibility layers with clear infrastructure value. API and deployment examples are actionable starting points, but output quality, operating cost, and real-world effectiveness require execution; the documentation also says costs depend on provider, model, and deployment choices, so scores are partial.
The README links claims to specific architecture material, compatibility reports, code interfaces, and deployment guides; ADRs state decision status, boundaries, and implementation paths. The README, ADRs, Skills, and security policy partially corroborate claims about credentials, sandboxes, and deployment. Material generally distinguishes implemented, beta, experimental, and proposed capabilities and labels demo data as synthetic. The sample does not include implementation and complete test evidence for every claim, so cross-source corroboration is not full.
- The default toolset includes shell, file-write, and network capabilities. Check isolation, network policy, and credential enforcement for the selected sandbox before deployment or connecting external services.
- Capabilities and limits vary by adapter, deployment, and API surface. A health check or example code does not establish successful task execution.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Patch Changes - da64029: Add npm keywords (claude-managed-agents, openai-agents, self-hosted, sandbox, agent-runtime) so the packages are easier to find.View on GitHub ↗ -
Release notes excerpt
Patch Changes - da64029: Add npm keywords (claude-managed-agents, openai-agents, self-hosted, sandbox, agent-runtime) so the packages are easier to find.View on GitHub ↗ -
Release notes excerpt
Minor Changes - 957e1da: Add eval support (benchmarks → cases → eval runs, Harbor and messages kinds): client.oma.evals in the SDK (benchmarks list/listBuiltin/create/retrieve/update/delete/upload, benchmarks.cases retrieve/add/replace/delete, runs create/list/retrieve/cancel/delete/waitForRun) and oma evals benchmarks … / oma evals cases … / oma evals run / oma evals runs … in the CLI. …View on GitHub ↗
FAQ
Can I self-host without a sandbox and just run agent commands on the host?
SANDBOX_PROVIDER. The only documented sandbox-free path is certain OpenAI adapter sessions that request environment: { type: "none" }.How are models and API credentials handled?
Do the official Anthropic and OpenAI SDKs work against it directly?
What does it actually cost to run?
Is multi-replica execution safe, and can sessions go out of order?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.