An open-source agent runtime for coding agents.
Run OpenAI Codex, Claude Agent SDK, and OpenCode behind API endpoints in isolated AI agent sandboxes.
mosoo provides a Cloudflare-native control plane to stream tool activity, inspect Run history, and keep Threads and files across executions. It is self-hostable in your own account.
Your application remains yours. Its backend owns product behavior and end-user access. mosoo focuses on Agent execution and lifecycle; App Deployment is a separate Alpha surface, not the core product contract.
configure Agent + Skills + MCP + provider
-> preview and publish an Agent version
-> call it from a backend or the mosoo console
-> stream events, handle permission requests, inspect files and usage
-> continue a durable Thread across Runs
Try mosoo · Website · API Documentation · mosoo Connector
- Agent runtime and control plane. Configure and run OpenAI Codex, Claude Agent SDK, and OpenCode behind one normalized runtime protocol.
- Agent API. Start, follow, continue, stop, archive, and delete Agent work from a trusted backend.
- AI agent sandboxes. Stream responses and tool activity, handle permission requests, cancel work, and inspect diagnostics in isolated execution environments.
- Durable work. Keep Threads, Runs, events, and managed files across individual executions.
- Agent observability. Inspect Run status, replayable activity, diagnostics, and usage estimates; this is operational visibility, not a compliance audit trail or provider bill.
mosoo is for developers extending Codex, Claude Agent SDK, OpenCode, or another coding agent into products and automations who do not want to operate a separate agent runtime, Sandbox service, session store, file pipeline, and Agent API for every integration.
mosoo is in Alpha. The managed runtime and Agent API surfaces above are shipped and covered by repository tests, but production reliability and external adoption have not been proven. Public APIs and product behavior may still change.
Product and engineering references:
- Canonical product contract: docs/SPEC.md
- PRD index and historical implementation contracts: docs/prd/README.md
- Current implementation architecture: docs/architecture.md
- Development and contribution guide: CONTRIBUTING.md
Codex Pet shows a published mosoo Agent integrated into an existing product backend through the Thread API. The same API can expose Agents backed by Claude Agent SDK or OpenCode.
Mosoo.Agent.as.API.mp4
Prerequisites:
bun >= 1.4.0-canary.1just >= 1.51- A Docker-compatible daemon for Agent runtime and Sandbox flows
From a clean clone:
git clone --recurse-submodules https://github.com/langgenius/mosoo.git
cd mosoo
just setup
just devjust setup installs dependencies, initializes submodules, creates or completes apps/api/.dev.vars, installs Git hooks, and applies pending local D1 migrations. just dev reapplies pending migrations before starting the web and API development servers.
Local URLs:
- Web:
http://localhost:5173 - API:
http://localhost:8787
Minimum smoke:
curl http://localhost:5173/api/health
curl http://localhost:8787/api/healthAPI health is /api/health, not /health. The mosoo control-plane development login uses OTP; under local loopback origins, addresses ending with @mosoo.ai skip that OTP and log in directly.
If setup fails, start with the focused recipe: submodule issues use git submodule update --init, missing local secrets use just env-init, and D1 schema errors use just db-migrate. See CONTRIBUTING.md for the full workflow and verification expectations.
The public landing page and blog live in the private langgenius/mosoo-website repository and are deployed separately on mosoo.ai.