The execution engine for AI agent formations.
For most users: Install MUXI CLI for the complete experience. This repo is for contributors and developers embedding the runtime directly.
Important
This repository is part of the larger MUXI ecosystem.
📋 Complete architectural overview: See muxi/ARCHITECTURE.md - explains how core repositories fit together, dependencies, status, and roadmap.
MUXI Runtime transforms declarative YAML configurations into running AI systems. It's the core engine that powers the MUXI Server.
Core responsibilities:
- Formation execution - Loads and runs agent configurations from YAML
- Overlord orchestration - Routes requests, manages clarifications, coordinates workflows
- Memory systems - Three-tier memory (buffer, persistent, vector)
- Tool integration - MCP protocol support for external tools
- Multi-tenant isolation - User and session management
┌─────────────────────────────────────────────────────┐
│ MUXI Server - Formation lifecycle management │
└─────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────┐
│ MUXI Runtime ◄── THIS REPO │
│ ┌───────────────────────────────────────────────┐ │
│ │ Formation Engine (YAML loader & validator) │ │
│ ├───────────────────────────────────────────────┤ │
│ │ Overlord │ Agents │ Workflow │ Background │ │
│ ├───────────────────────────────────────────────┤ │
│ │ Memory │ MCP │ A2A │ LLM │ Observability │ │
│ └───────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────┐
│ External Services (LLM APIs, MCP Servers, DBs) │
└─────────────────────────────────────────────────────┘
The runtime uses src/muxi/runtime/ to share the muxi namespace with the Python SDK:
src/muxi/runtime/
├── formation/ # Formation engine
│ ├── overlord/ # Central orchestration
│ ├── agents/ # Agent implementations
│ ├── workflow/ # Task decomposition, SOPs
│ ├── server/ # Formation API (FastAPI)
│ └── background/ # Webhooks, scheduling, async
├── services/ # Runtime services
│ ├── memory/ # Memory systems
│ ├── mcp/ # MCP client
│ ├── a2a/ # Agent-to-agent
│ └── llm/ # LLM abstraction
└── datatypes/ # Type definitions
# Install MUXI CLI
curl -fsSL https://muxi.ai/install | sh
# Create and run a formation
muxi new my-assistant
cd my-assistant
muxi devpip install muxi-runtimefrom muxi.runtime import Formation
import asyncio
async def main():
formation = Formation()
await formation.load("formation.afs")
overlord = await formation.start_overlord()
response = await overlord.chat(
"Hello!",
user_id="user123"
)
print(response)
asyncio.run(main())git clone https://github.com/muxi-ai/runtime
cd runtime
pip install -e ".[dev]"
# Run tests
pytest tests/unit -v
pytest tests/integration -v
pytest e2e/tests -vSee contributing/README.md for contributor documentation.
| Repo | Description |
|---|---|
| muxi-ai/muxi | Main repo with architecture docs |
| muxi-ai/server | Go server that hosts this runtime |
| muxi-ai/cli | Command-line tool |
| muxi-ai/sdks | Python, TypeScript, Go SDKs |
| muxi-ai/schemas | API schemas |
- User docs: docs.muxi.ai
- Contributor docs: contributing/README.md
- Formation spec: agentformation.org
Elastic License 2.0 - Free to use, modify, and embed in products. Cannot be offered as a hosted service.