langgenius/mosoo
One Agents API for sandboxed coding agents and durable sessions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Mosoo sits between an application backend and four Agent harnesses: OpenAI Codex, Claude Agent SDK, OpenCode, and Pi. A backend uses a Project API key and supplies Agent configuration, input, and optional files to start a turn. The API exposes the durable Session as a Thread. Each Session has its own sandbox, and follow-up turns reuse its working directory and native conversation state. The application retains its UI, business logic, and end-user authentication.
The TypeScript repository is organized around apps/ and pkgs/ and uses Bun. Its service stack combines Cloudflare Workers, Durable Objects, D1, R2, and Containers. A reusable Agent preset packages the harness, model, instructions, Skills, MCP servers, and Environment. That unifies how applications submit work without making the underlying harnesses interchangeable.
Key Capabilities & Differentiators
The Thread API covers turn submission, status tracking, event streaming, and artifact retrieval. Mosoo stores input files and outputs and records usage, so the calling backend does not need to build these features separately for each harness. /api/v2 accepts inline configuration or a saved Agent; /api/v1 requires a published Agent and runs its live version. Model-provider credentials are supplied at the Project level.
Model compatibility depends on both the harness and the endpoint protocol. The v0.5.1 alpha adds catalog models and custom endpoints to Pi across OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Google Gemini. OpenCode selects the matching provider adapter, while Codex remains Responses-only. Validate the exact harness and endpoint pairing before exposing it as a selectable model in your application.
Trade-offs & Limitations
Compared with direct harness integration, Mosoo gives the backend a common contract for isolation, session continuation, events, and files. That is useful when several products need the same execution facilities or when one product offers multiple harnesses. If the application already owns those facilities and only needs one harness, an extra service introduces more deployment dependencies and failure modes without necessarily simplifying the integration.
The main operational constraints are the Cloudflare-oriented stack, separate model credentials, and alpha API churn. A common Thread API does not imply interchangeable native session state or identical model and tool behavior across harnesses. For production adoption, pin the revision you deploy, test representative turns and follow-ups per harness, and review the configured Skills, MCP servers, and provider endpoints as separate trust boundaries.
Hardware & Deployment Guide
Use cloud.mosoo.ai to evaluate the hosted console, or clone with git clone --recurse-submodules https://github.com/langgenius/mosoo.git for local development. The local path requires Bun >=1.4.0-canary.1, just, and a Docker-compatible daemon. just setup prepares dependencies, submodules, apps/api/.dev.vars, Git hooks, and local D1. just dev serves the console on port 5173 and the API on 8787; GET /api/health is a basic liveness check, not a sandbox or provider check.
The local Docker setup is a development path, not a production topology: production planning needs to account for the Cloudflare services and reachable model endpoints. Size sandbox compute and file storage by workload and concurrency rather than model VRAM. The alpha release history shows Pi entering durable Sessions in v0.5.0, expanded provider-protocol support in v0.5.1, and removal of retired feature code in v0.7.0, which was deployed to the hosted service.
/api/v2 accepts inline configuration or a saved Agent; /api/v1 runs the live version of a published Agent.Application teams embedding coding agents and needing sandboxed execution, resumable workspaces, event streaming, and artifact retrieval without building those facilities for each harness.
You need a stable public API today, a turnkey production deployment outside Cloudflare, or a lightweight direct integration with one harness and infrastructure you already operate.
Quick Start & Installation
git clone --recurse-submodules https://github.com/langgenius/mosoo.git cd mosoo just setup # dependencies, submodules, apps/api/.dev.vars, Git hooks, local D1 just dev # console on http://localhost:5173, API on http://localhost:8787
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| mosoo ★ | 167 | +1 | TypeScript | Apache-2.0 | One Agents API for sandboxed coding agents and durable sessions |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| TradingAgents | 124.7k | +709 | TypeScript | Apache-2.0 | A multi-agent CLI for source-cited financial research and reporting |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/langgenius/mosoo.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about mosoo
What does my application need to own to support multi-turn workflows?
Do I need a GPU, and how should I size the runtime?
Can I use Mosoo commercially and keep deployment under my control?
When is Mosoo preferable to integrating a harness directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy