Skip to main content

General AI Agent System

Project description

OURO

PyPI License: MIT Python 3.12+

An open-source AI agent — run it as a Coding agent CLI or deploy it as a bot just like JARVIS.

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

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-ai also works but is not recommended — it mixes ouro's dependencies into your active Python environment. Use uv tool / pipx so the ouro-cli / ouro-bot binaries are on $PATH without 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.

Features

  • Dual mode: Interactive CLI with rich TUI + persistent IM bot (Lark, Slack) — same agent core, two deployment modes
  • Unified agent loop: Think-Act-Observe cycle — planning, sub-agents, and tool use all happen in one loop
  • Self-verification: Ralph Loop verifies the agent's answer against the original task and re-enters if incomplete (--verify)
  • Parallel execution: Concurrent readonly tool calls in a single turn, plus multi_task for spawning parallel sub-agents with dependency ordering
  • Memory system: LLM-driven compression, file-based long-term memory, FTS5 conversation recall, and YAML session persistence resumable across restarts
  • Task V2 (Phase 1): SQLite-backed persistent task store with dependency graphs — enable via AgentBuilder.with_task_v2() for multi-agent coordination
  • Proactive mechanisms: Heartbeat self-checks + cron-scheduled tasks, with results broadcast to active IM sessions
  • Personality: Customizable soul file (~/.ouro/bot/soul.md) defines bot identity and tone
  • Skills: Extensible skill registry — dynamically loaded per session
  • OAuth login: --login / /login to authenticate with ChatGPT Codex subscription models
  • Benchmarks: First-class Harbor integration for agent evaluation (see Evaluation)

Evaluation

Ouro can be evaluated on agent benchmarks using Harbor. A convenience script harbor-run.sh is provided at the repo root:

  1. Edit harbor-run.sh to set your model, dataset, and ouro version.
  2. 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.

Architecture

Ouro is a three-layer namespace package. Imports flow downward only; boundaries are enforced by import-linter. Each layer has its own README — start with the umbrella overview, then drill in:

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


Download files

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

Source Distribution

ouro_ai-0.5.0.tar.gz (321.0 kB view details)

Uploaded Source

Built Distribution

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

ouro_ai-0.5.0-py3-none-any.whl (299.5 kB view details)

Uploaded Python 3

File details

Details for the file ouro_ai-0.5.0.tar.gz.

File metadata

  • Download URL: ouro_ai-0.5.0.tar.gz
  • Upload date:
  • Size: 321.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ouro_ai-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1991175c814b79d9c26c3a17ecbc6c10e85629af61933a52f9ac8dd1311569f1
MD5 9b8aeaac41ac9065462f477e817a5e45
BLAKE2b-256 7d9d07e584d520535ae66551c11b5715556300dde656fdaa7acca5b6f482f447

See more details on using hashes here.

Provenance

The following attestation bundles were made for ouro_ai-0.5.0.tar.gz:

Publisher: release.yml on ouro-ai-labs/ouro

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

File details

Details for the file ouro_ai-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ouro_ai-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 299.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ouro_ai-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2196c742eb2488faeef169f7ee1ac7c7bf103b1617c999565a8a56e2e35bfa34
MD5 e56d806c89d19022c0ac438199ecad70
BLAKE2b-256 0004e256c905e36f53925ca7b5a8617abe14f9810200a507640b3d83b31a51aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for ouro_ai-0.5.0-py3-none-any.whl:

Publisher: release.yml on ouro-ai-labs/ouro

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