← Back to Leaderboard
Mlanggenius

langgenius/mosoo

One Agents API for sandboxed coding agents and durable sessions

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated 2d ago
Latest Release
Rolling commits (main)
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence11/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 167
24h Growth
+0
7d Growth
+1
Forks
29

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

langgenius/mosoo Star History (2026-06-12 - 2026-12-04) ALL-TIME STAR HISTORY (2026-06 – 2026-12) +166 in 175d · avg +1/day 176 88 0 2026-06-12: ★ 12026-06-27: ★ 32026-07-11: ★ 242026-07-25: ★ 792026-08-08: ★ 1082026-08-22: ★ 1152026-09-05: ★ 1212026-09-19: ★ 1432026-10-03: ★ 1522026-10-17: ★ 1592026-10-31: ★ 1642026-11-11: ★ 1652026-11-22: ★ 1652026-12-04: ★ 167 ★ 167 06-12 09-07 12-04

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Session contract: The Thread API resumes a durable Session with its workspace and native conversation state intact across turns.
Execution isolation: Each Session runs in its own sandbox; event streaming and artifact downloads let the application observe work and retrieve outputs.
API versions: /api/v2 accepts inline configuration or a saved Agent; /api/v1 runs the live version of a published Agent.
Model protocols: Pi supports custom Chat Completions, Responses, Anthropic Messages, and Gemini endpoints; Codex remains Responses-only.
Credential boundary: Model credentials belong to the Project, while end-user authentication remains in the application.
Runtime stack: Cloudflare Workers, Durable Objects, D1, R2, and Containers underpin the service; local Agent sandboxes require a Docker-compatible daemon.
Best For

Application teams embedding coding agents and needing sandboxed execution, resumable workspaces, event streaming, and artifact retrieval without building those facilities for each harness.

Skip If

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.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
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 →
RepositoryStars7d TrendStackLicenseCore Positioning
mosoo ★167+1TypeScriptApache-2.0One Agents API for sandboxed coding agents and durable sessions
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
n8n213.1k+787TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents
TradingAgents124.7k+709TypeScriptApache-2.0A 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.

Raw .md ↗
curl -sL https://repoforai.com/repo/langgenius/mosoo.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

langgenius/mosoo Star History on RepoForAI

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?

Keep end-user authentication and business logic in your backend. Use the Project API key server-side to create a Thread, track its status and events, and retrieve artifacts. Retain the Thread identifier so follow-up turns can continue with the same workspace and native conversation state.

Do I need a GPU, and how should I size the runtime?

The runtime uses configured model endpoints, so the integration does not require a local inference GPU. For local Mosoo development, size the Docker host around concurrent sandbox workloads, their CPU and memory demands, and workspace and artifact volumes. If you operate your own model endpoint, size its GPU and VRAM separately.

Can I use Mosoo commercially and keep deployment under my control?

Apache-2.0 permits commercial use and modification, subject to its terms, including applicable notice obligations when redistributing the software. Review model-provider terms separately. Running the runtime yourself does not make inference local: if requests go to an external model endpoint, evaluate that endpoint's data handling and residency separately.

When is Mosoo preferable to integrating a harness directly?

Use a direct harness integration if you have one stable runtime and already own execution isolation, session persistence, and artifact handling. Mosoo is a better fit when several harnesses or products need those facilities through one API. You still need per-harness compatibility tests and integration tests for the alpha API.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining langgenius/mosoo? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature langgenius/mosoo on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare