Production-ready agent runtime for building, running, and governing collaborative AI teams
๐ฌ๐ง English | ๐จ๐ณ ไธญๆ
Mycel is an enterprise-grade agent runtime that treats AI agents as long-running co-workers. Built on a middleware-first architecture, it provides the infrastructure layer missing from existing agent frameworks: sandbox isolation, multi-agent communication, and production governance.
Existing agent frameworks focus on building agents. Mycel focuses on running them in production:
- Middleware Pipeline: Unified tool injection, validation, security, and observability
- Sandbox Isolation: Run agents in Docker/E2B/cloud with automatic state management
- Multi-Agent Communication: Agents discover, message, and collaborate with each other โ and with humans
- Production Governance: Built-in security controls, audit logging, and cost tracking
- Python 3.11+
- Node.js 18+
- An OpenAI-compatible API key
git clone https://github.com/OpenDCAI/Mycel.git
cd Mycel# Backend (Python)
uv sync
# Frontend
cd frontend/app && npm install && cd ../..Sandbox providers require extra dependencies โ install only what you need:
uv sync --extra sandbox # AgentBay
uv sync --extra e2b # E2B
uv sync --extra daytona # DaytonaDocker sandbox works out of the box (just needs Docker installed). See Sandbox docs for provider setup.
# Terminal 1: Backend
uv run python -m backend.web.main
# โ http://localhost:8001
# Terminal 2: Frontend
cd frontend/app && npm run dev
# โ http://localhost:5173- Open http://localhost:5173 in your browser
- Register an account
- Go to Settings โ configure your LLM provider (API key, model)
- Start chatting with your first agent
Full-featured web platform for managing and interacting with agents:
- Real-time chat with multiple agents
- Multi-agent communication โ agents message each other autonomously
- Sandbox resource dashboard
- Token usage and cost tracking
- File upload and workspace sync
- Thread history and search
Agents are first-class social entities. They can discover each other, send messages, and collaborate autonomously:
Member (template)
โโ Entity (social identity โ agents and humans both get one)
โโ Thread (agent brain / conversation)
chat_send: Agent A messages Agent B; B responds autonomouslydirectory: Agents browse and discover other entities- Real-time delivery: SSE-based chat with typing indicators and read receipts
Humans also have entities โ agents can initiate conversations with humans, not just the other way around.
Every tool interaction flows through a 10-layer middleware stack:
User Request
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. Steering (Queue injection) โ
โ 2. Prompt Caching โ
โ 3. File System (read/write/edit) โ
โ 4. Search (grep/find) โ
โ 5. Web (search/fetch) โ
โ 6. Command (shell execution) โ
โ 7. Skills (dynamic loading) โ
โ 8. Todo (task tracking) โ
โ 9. Task (sub-agents) โ
โ10. Monitor (observability) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Tool Execution โ Result + Metrics
Agents run in isolated environments with managed lifecycles:
Lifecycle: idle โ active โ paused โ destroyed
| Provider | Use Case | Cost |
|---|---|---|
| Local | Development | Free |
| Docker | Testing | Free |
| Daytona | Production (cloud or self-hosted) | Free (self-host) |
| E2B | Production | $0.15/hr |
| AgentBay | China Region | ยฅ1/hr |
Agents can be extended with external tools and specialized expertise:
- MCP (Model Context Protocol) โ Connect external services (GitHub, databases, APIs) via the MCP standard. Configure per-member in the Web UI or via
.mcp.json. - Skills โ Load domain expertise on demand. Skills inject specialized prompts and tool configurations into agent sessions. Managed through the Web UI member settings.
- Command blacklist (rm -rf, sudo)
- Path restrictions (workspace-only)
- Extension whitelist
- Audit logging
Middleware Stack: 10-layer pipeline for unified tool management
Sandbox Lifecycle: idle โ active โ paused โ destroyed
Entity Model: Member (template) โ Entity (social identity) โ Thread (agent brain)
- CLI Reference โ Terminal interface, commands, LLM provider setup
- Configuration โ Config files, virtual models, tool settings
- Multi-Agent Chat โ Entity-Chat system, agent communication
- Sandbox โ Providers, lifecycle, session management
- Deployment โ Production deployment guide
- Concepts โ Core abstractions (Thread, Member, Task, Resource)
git clone https://github.com/OpenDCAI/Mycel.git
cd Mycel
uv sync
uv run pytestSee CONTRIBUTING.md for details.
MIT License