The independent, open-source runtime for Claude Managed Agents.
Documentation · Getting started · Compatibility · Architecture · Roadmap
Mango implements the documented Managed Agents API as a self-hosted runtime: durable sessions, event streaming, tool orchestration, File and custom Skill resources, and pluggable sandbox execution. Its production-oriented architecture is built in Go on PostgreSQL and Temporal.
- Own the runtime. Use the supported Anthropic wire contract through raw HTTP or the official Go SDK while keeping state and execution on your infrastructure.
- Keep accepted work durable. Sessions, events, interrupts, tool calls, and client-action waits survive API and worker restarts.
- Bring your own execution environment. Choose local, Docker, E2B, CubeSandbox, OpenSandbox, or Daytona sandbox adapters.
- Run the whole stack locally. Start a credential-free development stack with an offline model, PostgreSQL, Temporal, NATS, and MinIO.
- Inspect every turn. Query the persisted event history, stream live previews over SSE, and inspect active workflows in Temporal UI.
You need Docker with Compose and make.
git clone https://github.com/yanpgwang/managed-agent-go.git
cd managed-agent-go
make local-up
make local-healthVerify that Mango is ready:
curl -i http://localhost:8080/readyzThe local stack uses a deterministic offline model, so no API key is required. Follow the five-minute walkthrough to create an Environment, Agent, and Session, then send and stream your first message.
make local-downImportant
Mango is in alpha. It implements a documented subset of the API and is not an Anthropic product or a drop-in replacement for every Managed Agents feature. Its architecture is designed for production operation, but the project does not yet claim production readiness. Review the compatibility matrix before relying on a capability. The default local sandbox is for development and is not a security boundary.
| Area | Current support |
|---|---|
| Core resources | Agent, Environment, and Session lifecycle, versioning, filtering, and pagination |
| Events and runtime | Messages, interrupts, custom-tool results, confirmations, outcomes, retries, SSE, and durable park/resume |
| Tools | Sandbox built-ins, provider-native Web Search/Fetch, and unauthenticated remote MCP tools |
| Files | Five-operation Files API with configured object storage; File-backed Session Resources with durable read-only Docker mounts |
| Skills | Nine custom resource operations, immutable Version pins, and Claude Code-style on-demand instruction loading in Docker Sessions |
| Sandboxes | Local and Docker available; E2B, CubeSandbox, OpenSandbox, and Daytona in Preview |
The versioned core compatibility statement freezes the first scoped single-agent claim. The living conformance matrices for core resources, Files, and Session Resources, and Skills record operation-level evidence and known limitations. Memory, vaults, deployments, multi-agent orchestration, schedules, and webhooks remain roadmap work.
flowchart LR
Client --> API["Managed Agents API"]
API --> PG[("PostgreSQL")]
API --> Objects[("S3-compatible storage")]
PG -- "durable outbox" --> Worker
Worker <--> Temporal
Worker --> Model["Messages API"]
Worker --> Sandbox
Worker -. "live previews" .-> NATS
NATS -.-> API
PostgreSQL owns public state, event history, and File/Skill lifecycle intents. An S3-compatible store owns File bytes and immutable Skill archives. Temporal owns in-flight execution. NATS carries only ephemeral wakeups and previews; persisted events are always reconciled from PostgreSQL. A lost signal, process restart, or NATS outage cannot discard accepted work.
Read the architecture overview for the failure model, transactional outbox, tool journal, interrupt ordering, and sandbox lifecycle.
| I want to… | Read |
|---|---|
| Run my first agent session | Getting started |
| Connect a real model endpoint | Use a real model endpoint |
| Choose an execution backend | Sandbox backends |
| Check an API operation | API reference |
| Understand compatibility claims | Compatibility and provenance |
| Plan a deployment | Deployment model |
The complete documentation is also published at yanpgwang.github.io/managed-agent-go.
make verify # lint, unit tests, race tests, and vet
make docs-check # type-check and build the documentation site
make image-smoke # build and smoke-test the container imageDefault tests are offline. PostgreSQL, Temporal, NATS, MinIO, Docker, model, and remote-sandbox integrations have explicit opt-in suites. See the local stack guide and contribution guide.
Report vulnerabilities privately as described in SECURITY.md.
Mango is licensed under the Apache License 2.0.