Skip to content

Repository files navigation

mosoo

mosoo

An open-source agent runtime for coding agents.
Run OpenAI Codex, Claude Agent SDK, and OpenCode behind API endpoints in isolated AI agent sandboxes.

License Status: Alpha

Try mosoo · Website · API Documentation · mosoo Connector

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.

How It Works

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

Features

What works today across the Agent runtime and API:

  • 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.

Who It Is For

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.

Product Status

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.

Getting Started

The fastest way to try mosoo is the hosted console at try.mosoo.ai. To run it yourself, self-host from a clean clone as below.

Prerequisites

  • bun >= 1.4.0-canary.1
  • just >= 1.51
  • A Docker-compatible daemon for Agent runtime and Sandbox flows

Run Locally

git clone --recurse-submodules https://github.com/langgenius/mosoo.git
cd mosoo
just setup
just dev

just 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/health

API 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.

Troubleshooting

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.

Example: Build a Codex Agent API

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

Documentation

The public landing page and blog live in the private langgenius/mosoo-website repository and are deployed separately on mosoo.ai.

Community & Support

Contributing

Contributions are welcome. Read CONTRIBUTING.md for the development workflow, commit policy, and verification expectations. Contributions are covered by the Contributor License Agreement; CLA Assistant will prompt you on your first pull request.

License

mosoo is licensed under the Apache License 2.0.

About

Open-source, Cloudflare-native agent runtime for Codex, Claude Agent SDK, and OpenCode—with API endpoints, isolated sandboxes, and inspectable runs.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages