General AI Agent System
Project description
Ouro is derived from Ouroboros—the ancient symbol of a serpent consuming its own tail to form a perfect circle. It represents the ultimate cycle: a closed loop of self-consumption, constant renewal, and infinite iteration.
At Ouro AI Lab, this is our blueprint. We are building the next generation of AI agents capable of autonomous evolution—systems that learn from their own outputs, refine their own logic, and achieve a state of infinite self-improvement.
Two Modes, One Agent
Ouro ships with a unified agent core and two deployment modes:
| CLI Mode | Bot Mode | |
|---|---|---|
| What | Interactive REPL + one-shot task execution | Persistent IM assistant (Lark, Slack) |
| Install | uv tool install ouro-ai |
uv tool install ouro-ai |
| Run | ouro-cli |
ouro-bot |
| Guide | CLI Guide | Bot Guide |
Architecture
Ouro is organized into three layers with strict downward-only imports:
Each layer has its own README — start with the umbrella overview, then drill into core, capabilities, or interfaces.
Features
🤖 Agent Swarm — Multi-Agent Swarm with Persistent Tasks
The flagship feature. Enable with ENABLE_AGENT_SWARM=true in ~/.ouro/config.
- Persistent Task Store — SQLite-backed tasks with dependency graphs (
task_create,task_claim,task_update,task_list,task_get,task_delete) - Atomic Task Claiming — Agents race to claim available tasks; one agent, one in-progress task
- Auto-Swarm — Complex tasks are automatically decomposed and executed by multiple agents in parallel
- Replaces legacy
TodoToolandMultiTaskToolwhen enabled
🔄 Self-Verification — Ralph Loop
The agent verifies its own answer against the original task and re-enters the loop if incomplete. Enable with --verify or RALPH_LOOP_MAX_ITERATIONS=3.
🧠 Memory System
LLM-driven compression, file-based long-term memory, FTS5 conversation recall, and YAML session persistence resumable across restarts.
💬 Dual Deployment
Same agent core, two modes:
- CLI — Interactive REPL with rich TUI, slash commands, session resume
- Bot — Persistent IM assistant for Lark, Slack, WeChat with proactive cron scheduling
🔐 OAuth Login
--login / /login to authenticate with ChatGPT Codex subscription models.
📊 Benchmarks
First-class Harbor integration for agent evaluation (see Evaluation).
Quick Start
Prerequisites: Python 3.12+ and one of uv (recommended) or pipx.
# Recommended: installs ouro in an isolated environment and exposes global
# `ouro-cli` and `ouro-bot` commands
uv tool install ouro-ai
# Alternative
pipx install ouro-ai
# Upgrading later
uv tool upgrade ouro-ai # or: pipx upgrade ouro-ai
Plain
pip install ouro-aialso works but is not recommended — it mixes ouro's dependencies into your active Python environment. Useuv tool/pipxso theouro-cli/ouro-botbinaries are on$PATHwithout needing to activate a venv.
On first run, ~/.ouro/models.yaml is created. Add your API key:
models:
openai/gpt-4o:
api_key: sk-...
default: openai/gpt-4o
current: openai/gpt-4o
Then run:
# Interactive mode
ouro-cli
# Single task
ouro-cli --task "Calculate 123 * 456"
# Bot mode
ouro-bot
See LiteLLM Providers for the full provider list.
Evaluation
Ouro can be evaluated on agent benchmarks using Harbor. A convenience script harbor-run.sh is provided at the repo root:
- Edit
harbor-run.shto set your model, dataset, and ouro version. - Run:
export OURO_API_KEY=<your-api-key>
./harbor-run.sh # run with defaults in the script
./harbor-run.sh -l 5 # limit to 5 tasks
./harbor-run.sh --n-concurrent 4 # 4 parallel workers
Extra flags are forwarded to harbor run, so any Harbor CLI option works. See ouro_harbor/README.md for full details.
Documentation
- CLI Guide -- interactive mode, task mode, commands, shortcuts
- Bot Guide -- IM bot setup, commands, proactive mechanisms, personality
- Configuration -- model setup, runtime settings, custom endpoints
- Examples -- usage patterns and programmatic API
- Memory Management -- compression, persistence, token tracking
- Task V2 -- persistent task store with dependency graphs (Phase 1)
- Extending -- adding tools, agents, LLM providers
- Packaging -- building, publishing, Docker
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
For development setup (install from source):
git clone https://github.com/ouro-ai-labs/ouro.git
cd ouro
./scripts/bootstrap.sh # creates .venv and installs editable + dev deps
source .venv/bin/activate
./scripts/dev.sh check # precommit + typecheck + tests
End-users should prefer uv tool install ouro-ai (see Quick Start); the source checkout is only needed when contributing.
License
MIT License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ouro_ai-0.5.1.tar.gz.
File metadata
- Download URL: ouro_ai-0.5.1.tar.gz
- Upload date:
- Size: 350.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df053f02f701eef840238aa5eb111b01e7a35b155438d31ff94d0a156fa3eb10
|
|
| MD5 |
9adb34efbf327e3102959242f29f7810
|
|
| BLAKE2b-256 |
91c23c29a4e0a0c88272bc5e1f37df75fe1d7df3a6c24ffd53691323a81b55ae
|
Provenance
The following attestation bundles were made for ouro_ai-0.5.1.tar.gz:
Publisher:
release.yml on ouro-ai-labs/ouro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ouro_ai-0.5.1.tar.gz -
Subject digest:
df053f02f701eef840238aa5eb111b01e7a35b155438d31ff94d0a156fa3eb10 - Sigstore transparency entry: 1898032538
- Sigstore integration time:
-
Permalink:
ouro-ai-labs/ouro@c06c5299956e1ae2dce635e6922729027e8b3b02 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/ouro-ai-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c06c5299956e1ae2dce635e6922729027e8b3b02 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ouro_ai-0.5.1-py3-none-any.whl.
File metadata
- Download URL: ouro_ai-0.5.1-py3-none-any.whl
- Upload date:
- Size: 326.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ab755d39098d9e1a33cf65fb31a9539b0be2675b95441aabfd0e5558a1b3534
|
|
| MD5 |
52cf2685e1de7a3ccf693e68e8b594e1
|
|
| BLAKE2b-256 |
7336b66aa2a1f81b24d8f6be9495ed7d60f91007a3dd0801b21137403cd0f9c7
|
Provenance
The following attestation bundles were made for ouro_ai-0.5.1-py3-none-any.whl:
Publisher:
release.yml on ouro-ai-labs/ouro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ouro_ai-0.5.1-py3-none-any.whl -
Subject digest:
8ab755d39098d9e1a33cf65fb31a9539b0be2675b95441aabfd0e5558a1b3534 - Sigstore transparency entry: 1898032719
- Sigstore integration time:
-
Permalink:
ouro-ai-labs/ouro@c06c5299956e1ae2dce635e6922729027e8b3b02 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/ouro-ai-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c06c5299956e1ae2dce635e6922729027e8b3b02 -
Trigger Event:
push
-
Statement type: