Skip to main content

orxhestra logo

Multi-agent orchestration framework for Python — turn any agent setup into a CLI or server.

PyPI Python License


Compose multi-agent AI systems with async event streaming, agent hierarchies, and built-in support for MCP and A2A protocols.

Orx CLI

Turn any orx.yaml agent setup into an interactive terminal agent. Ships with a coding agent out of the box — or compose your own.

Looking for a full-featured coding agent? Check out orxhestra-code — an enhanced coding agent built on orxhestra with permissions, multi-file editing, and project-aware context.

pip install orxhestra[cli,openai]
orx
+-- orx - terminal coding agent ------------------------------------+
|  model: gpt-5.4   workspace: ~/my-project   /help for commands    |
+-------------------------------------------------------------------+

orx> add error handling to the API routes

  > read_file(src/api/routes.py)
  > grep(pattern="raise", path=src/api/)
  > write_todos(3 tasks)

  Tasks
  * Add try/except to all route handlers  [in progress]
  - Add custom error response model
  - Write tests for error cases

  > edit_file(src/api/routes.py)
  > shell_exec(pytest tests/test_api.py)
  4 passed

  Done - added structured error handling to all 4 route handlers
  with a custom ErrorResponse model. All tests pass.

Features

  • 29 LLM providers — OpenAI, Azure OpenAI, Anthropic, Google, Mistral, Cohere, Groq, DeepSeek, Ollama, and 20 more via --model
  • Streaming — real-time token rendering with Markdown formatting
  • Tool approval — prompts before destructive operations (write, edit, shell)
  • Task planning — structured todo lists visible in the terminal
  • Sub-agent delegation — spawn isolated agents for complex subtasks
  • Auto-memory — persistent per-project memories across sessions (4 types: user, feedback, project, reference)
  • Dark/light theme — auto-detects terminal, toggle with /theme
  • Background tasks — spawn and monitor async sub-agent tasks
  • Smart file reading — offset/limit pagination with line numbers, 256KB size guard
  • Local context injection — auto-detects language, git state, package manager, project tree
  • Context summarization — auto-compacts long conversations, /compact command
  • Orx YAML — run any orx.yaml agent team: orx my-agents.yaml

Usage

orx                               # interactive REPL (default model)
orx --model claude-sonnet-4-6     # use a specific model
orx -c "fix the failing tests"    # single-shot command
orx my-agents.yaml                # run a custom orx file
orx --auto-approve                # skip approval prompts
orx orx.yaml --serve -p 9000      # start as A2A server

Commands

Command Description
/model <name> Switch model mid-session
/clear Reset conversation
/compact Summarize old messages to free context
/todos Show current task list
/memory List saved memories
/theme Switch dark/light theme
/session Session info (includes active signer DID when identity is on)
/undo Remove last turn
/retry Re-run last message
/copy Copy last response
/help Show all commands
/exit Exit

orx identity — Ed25519 signing

Opt-in identity for every agent the CLI spawns. Events get signed with Ed25519, chained per branch, and (optionally) audited by an AttestationProvider.

orx identity init                          # generate a keypair at ~/.orx/identity.key
orx identity show                           # print the DID + public-key multibase
orx identity did-web example.com agents     # render a did.json for hosting

orx --identity ~/.orx/identity.key          # attach identity to every agent
export ORX_IDENTITY=~/.orx/identity.key     # or via env

See Composer → Identity, trust, and attestation for the YAML equivalents.


Quickstart (SDK)

pip install orxhestra
# or
uv add orxhestra
from orxhestra import LlmAgent, Runner, InMemorySessionService

agent = LlmAgent(
    name="assistant",
    model="gpt-5.4",
    instructions="You are a helpful assistant.",
)

runner = Runner(agent=agent, session_service=InMemorySessionService())
response = await runner.run(user_id="user1", session_id="s1", new_message="Hello!")

for event in response:
    print(event.content)

[!TIP] For persistent database sessions, install the database extra: pip install orxhestra[database]

[!TIP] For full documentation, guides, and API reference, visit docs.orxhestra.com.

Features

  • Agent ensemble - LLM, ReAct, Sequential, Parallel, and Loop agents
  • 29 LLM providers - OpenAI, Azure OpenAI, Anthropic, Google, Mistral, Cohere, Groq, DeepSeek, Ollama, and 20 more
  • Event streaming - Async event-driven architecture with real-time streaming
  • Composer - Declarative YAML with four pluggable registries: custom agent types, LLM providers, built-in tools, and tool-type resolvers
  • Tools - Function tools, filesystem tools, agent-as-tool, shell, transfer routing, long-running tools, and register_tool_resolver for whole new tool kinds
  • Planners - Choreograph task execution with PlanReAct and TaskPlanner strategies
  • Skills - Reusable, composable agent repertoires (Agent Skills Protocol)
  • MCP - Full-spec Model Context Protocol client (tools, resources, prompts, sampling, logging, progress, elicitation) plus adapters that turn MCP prompts into LangChain messages or tools
  • A2A - Full v1.0 server + client with Ed25519 message signing and verification_method on agent cards
  • Identity / Trust / Attestation (opt-in) - Sign every event, verify peers via DID, hash-chained audit log with a pluggable AttestationProvider — all wireable from a YAML block or a single orx --identity flag
  • Auto-memory - Persistent memories with save_memory tool (user, feedback, project, reference)
  • Background tasks - Async sub-agent task lifecycle with spawn and monitor
  • Deprecation decorators - @deprecated and @deprecated_param for clean API evolution
  • Tracing - Built-in support for Langfuse, LangSmith, and custom callbacks

Agents at a glance

Agent Description
LlmAgent Chat model agent with tools, instructions, and structured output
ReActAgent Reasoning + acting loop with automatic tool use
SequentialAgent Runs sub-agents in order
ParallelAgent Runs sub-agents concurrently
LoopAgent Repeats a sub-agent until exit condition
A2AAgent Connects to remote agents via A2A protocol

Composer

Define entire agent orchestras in a single YAML file — no Python wiring needed. Compose LLM agents, loops, pipelines, tools, and review cycles declaratively. The example below builds a coding agent that plans, implements with filesystem + shell access, and self-reviews in a loop. Identity signing + local audit are opt-in — remove the last two blocks to turn them off.

defaults:
  model:
    provider: openai
    name: gpt-5.4

tools:
  exit:
    builtin: "exit_loop"
  filesystem:
    builtin: "filesystem"
  shell:
    builtin: "shell"

agents:
  planner:
    type: llm
    description: "Plans the implementation steps for the coder agent."
    instructions: |
      Output a numbered list of concrete steps the coder
      should execute. Each step must be an actionable file
      operation or shell command.

  coder:
    type: llm
    description: "Implements code changes with filesystem and shell access."
    instructions: |
      Follow the plan from the previous step exactly.
      Use filesystem tools to create files and shell to
      run commands. Never ask the user to do anything.
    tools:
      - filesystem
      - shell

  reviewer:
    type: llm
    description: "Reviews changes and approves or requests fixes."
    instructions: |
      Check files exist and look correct. If done, call
      exit_loop. Otherwise describe what needs fixing.
    tools:
      - exit

  dev_loop:
    type: loop
    agents: [coder, reviewer]
    max_iterations: 10

  coordinator:
    type: sequential
    agents: [planner, dev_loop]

main_agent: coordinator

runner:
  app_name: coding-agent
  session_service: memory

# Optional: sign every event + write a hash-chained audit log.
identity:
  signing_key: ./keys/agent.key         # orx identity init --path ./keys/agent.key
  did_method: key
attestation:
  provider: local
  path: ./audit

Run it as an interactive CLI or expose it as an A2A server:

orx orx.yaml                    # interactive terminal agent
orx orx.yaml --serve -p 9000    # A2A server on port 9000
# test the server
curl -X POST http://localhost:9000/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0", "id": "1",
    "method": "message/send",
    "params": {
      "message": {
        "role": "user",
        "parts": [{"text": "Hello!", "mediaType": "text/plain"}]
      }
    }
  }'

Docker

docker run -e OPENAI_API_KEY=$OPENAI_API_KEY \
  -v ./orx.yaml:/app/orx.yaml \
  nicolaimtlassen/orxhestra

Documentation

  • Getting Started — Install and run your first agent (YAML or Python)
  • Composer overview — YAML-based agent composition (recommended starting point)
  • Composer schema reference — Field-by-field reference for every orx.yaml block
  • Extending the composer — Register custom agent types, LLM providers, built-in tools, and tool resolvers
  • Agents — Agent types and configuration
  • Tools — Built-in and custom tools
  • Integrations — MCP and A2A setup
  • Skills — Code-level CLI skill references (agent-tools, callbacks, planners, streaming, and more)
  • orxhestra-code — Enhanced coding agent with permissions, multi-file editing, and project context

Acknowledgments

This project is built on the shoulders of several outstanding open-source projects and research efforts:

Special thanks to the open-source AI community for pushing the boundaries of what's possible with agent frameworks.

Release files for orxhestra 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orxhestra 0.1.8
File Size Uploaded
orxhestra-0.1.8.tar.gz 319.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orxhestra 0.1.8
File Interpreter ABI Platform
orxhestra-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 649.1 kB

Release files / orxhestra-0.1.8.tar.gz

Download URL orxhestra-0.1.8.tar.gz
Size 319.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d4321cf3c5d98f5d21f109cb2c7b3cb64375cf5b6cb06c1b59b55ef724c3f5a1
BLAKE2b-256 checksum
How to use checksums
9c84ae48a7f38454faf57a2ac5429b4f295f44e95c031b113e64757892380127
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2026.

Transparency log

Release files / orxhestra-0.1.8-py3-none-any.whl

Download URL orxhestra-0.1.8-py3-none-any.whl
Size 329.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47acc2eebd9a0f5a2fc8638ff5bf3c600f953b16e0ab3f6a7affea0ff8cafb6a
BLAKE2b-256 checksum
How to use checksums
4a3130da87d3893bcae7c0374df5bd51d75244d0ec040d1e116185a598fc5f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.85

2 release files

0.0.84

2 release files

0.0.83

2 release files

0.0.82

2 release files

0.0.81

2 release files

0.0.79

2 release files

0.0.78

2 release files

0.0.77

2 release files

0.0.76

2 release files

0.0.75

2 release files

0.0.74

2 release files

0.0.73

2 release files

0.0.72

2 release files

0.0.71

2 release files

0.0.70

2 release files

0.0.69

2 release files

0.0.68

2 release files

0.0.67

2 release files

0.0.66

2 release files

0.0.65

2 release files

0.0.64

2 release files

0.0.63

2 release files

0.0.62

2 release files

0.0.61

2 release files

0.0.60

2 release files

0.0.59

2 release files

0.0.58

2 release files

0.0.57

2 release files

0.0.56

2 release files

0.0.55

2 release files

0.0.54

2 release files

0.0.53

2 release files

0.0.52

2 release files

0.0.51

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page