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 (Go) - Formation lifecycle management β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MUXI Runtime (Python) βββ 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.