exoharness/exo
Exo is an agent + harness architecture that is fully recursive, able to safely edit all aspects of itself at runtime to get better at your tasks.
Exo – Open‑source, model‑agnostic runtime for AI agents
What it is – Exo is a self‑hostable runtime that lets you define LLM‑powered agents in a simple markdown file and expose them via an API. It separates the harness (the code that talks to a specific model provider, e.g. OpenAI Codex, Anthropic Claude Code, or Pi) from the surrounding infrastructure, giving you model‑ and vendor‑agnostic agents with durable state, sandboxed execution, and fine‑grained credential & network controls.
Core concepts
- Agent definition – A markdown file with a front‑matter block that declares the harness, model name, and credential, followed by the agent’s prompt/behaviour.
- Harnesses – Plug‑in adapters that know how to talk to a particular LLM service (Codex, Claude Code, Pi). New harnesses can be added.
- Vaults – Secure stores for credentials (e.g., OpenAI API key) that agents can reference at runtime.
- Durable state – Persistent conversation history and working environments so a client can disconnect and later resume.
- Sandbox & network policy – Per‑agent controls over what external services or resources the agent may access.
Quick start (from the README)
# 1. Write an agent definition (support‑analyst.md)
cat > support-analyst.md <<'EOF'
---
harness: codex
model:
name: gpt-6.1-sol
credential: openai
---
For each support ticket, determine whether it describes a technical issue. If it does, try to reproduce it, explain what you found, and suggest a workaround.
EOF
# 2. Store your OpenAI key in Exo’s vault
export OPENAI_API_KEY=sk-…
exo vault secret create global --preset openai
# 3. Run the agent (or drop into a REPL)
exo run support-analyst.md --prompt "Triage: CSV uploads return HTTP 500 after 30 seconds"
The command spins up the agent, sends the prompt, and returns the model’s response. Omitting --prompt opens an interactive REPL.
Architecture highlights
- Harness‑agnostic core – The runtime does not embed any model‑specific logic; it delegates all LLM interactions to the selected harness.
- Plug‑in harness layer – Built‑in support for Codex, Claude Code, and Pi; developers can implement additional adapters.
- State & trust boundaries – Durable conversation logs and sandboxed execution environments are stored separately from credentials, enabling fine‑grained security policies.
- Model neutrality – Switch between providers without changing agent code, facilitating experimentation with post‑trained or custom models.
How it differs from existing services
| Service | Key traits | Exo’s advantage |
|---|---|---|
| OpenAI Agents API | Fully managed, tightly coupled to OpenAI models, stores history for you. | Self‑hosted, model‑agnostic, you keep all data and can use any harness. |
| Claude Managed Agents | Similar to OpenAI, but locked to Anthropic’s stack. | Same as above – vendor‑neutral and extensible. |
| Pi (open‑source) | Provides its own minimal agent loop and durable extensions. | Exo does not impose an agent loop; it lets you reuse the harness you already trust, and adds richer credential & sandbox controls. |
| Omnigent | Open, stateful, model‑agnostic platform. | Exo focuses on per‑user vaults and a clear separation of harness vs. runtime, offering a slightly different security model. |
Development & installation
The README notes that formal installation docs are pending. For now, developers should follow the Development guide on the site (https://exoharness.ai/docs/development/) to build the Rust core and the TypeScript tooling.
License
MIT – permissive open‑source license.
Where to learn more – Full documentation, API reference, and a community Discord are linked in the header of the README.
Related
- Project
- Project
- Project
- Project