Skip to main content

Production-ready runtime for building and orchestrating intelligent multi-agent AI systems

Project description

MUXI Runtime

License Python 3.10+

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]

MUXI Ecosystem

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.

What is MUXI Runtime?

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

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚     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)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Package Structure

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

Quick Start

Using with MUXI Server (recommended)

# Install MUXI CLI
curl -fsSL https://muxi.ai/install | sh

# Create and run a formation
muxi new my-assistant
cd my-assistant
muxi dev

Embedding directly

pip install muxi-runtime
from 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())

Development

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 -v

See contributing/README.md for contributor documentation.

Related Repositories

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

Documentation

License

Elastic License 2.0 - Free to use, modify, and embed in products. Cannot be offered as a hosted service.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

muxi_runtime-0.20260324.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

muxi_runtime-0.20260324.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file muxi_runtime-0.20260324.1.tar.gz.

File metadata

  • Download URL: muxi_runtime-0.20260324.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for muxi_runtime-0.20260324.1.tar.gz
Algorithm Hash digest
SHA256 daa56a2c4eeae994c37a99525bd3a21219084c7da75e0569d42883621bd99d7b
MD5 ebda6ca2a8f3034efbc110e346e13027
BLAKE2b-256 d52539b0f669fa9966980277249712d705982914bf45e52e386fae23caad4046

See more details on using hashes here.

Provenance

The following attestation bundles were made for muxi_runtime-0.20260324.1.tar.gz:

Publisher: release.yml on muxi-ai/runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file muxi_runtime-0.20260324.1-py3-none-any.whl.

File metadata

File hashes

Hashes for muxi_runtime-0.20260324.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9be0406b0b2065f28b109f3c69f1cecfc2b23c91f153b2a8c50d577ae7b8ee45
MD5 29e8f23c7ca1b0b32c47517104021b46
BLAKE2b-256 1b3f6cfc1bb5c64c3ca8d2e1b6404f8c121ee3c5e9ad1250d89128fd99ed8e0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for muxi_runtime-0.20260324.1-py3-none-any.whl:

Publisher: release.yml on muxi-ai/runtime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page