# Ouroboros

> A self-modifying, general-purpose AI agent with persistent identity and memory, shipped as a desktop app and headless CLI

- Category: Agents & Automation / Assistants & Chatbots
- Language: Python
- Licence: MIT
- Repository: https://github.com/razzant/ouroboros
- Website: https://ouroboros-agent.ai/
- Canonical page: https://ai-tldr.dev/tools/ouroboros/
- Updated: 2026-09-26

## In short

Ouroboros is an open-source, general-purpose AI agent built around continuity: its identity, durable memory, dialogue history and version history carry across tasks and restarts as one ongoing record. It sits in the Assistants & Chatbots category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.

## Overview

Ouroboros is an open-source, general-purpose AI agent built around continuity: its identity, durable memory, dialogue history and version history carry across tasks and restarts as one ongoing record. It runs as a native desktop app for macOS, Windows and Linux or through a headless CLI, and keeps its repository, memory, history and interface on your machine, while model inference goes to remote provider APIs you configure or to a local GGUF model.

What sets it apart is that the agent can change the implementation it runs on — application code, architecture, prompts, tools and dependencies. Evolution campaigns turn chosen improvements into reviewed changes that land in its own Git history, with protected surfaces, review evidence and restart checks keeping each self-change traceable; a constitution file, BIBLE.md, defines its identity and boundaries. Background consciousness lets it reflect and prepare between requests, and runtime commands such as /evolve, /review, /bg and /panic control those loops.

For everyday work it coordinates a live swarm of specialist subagents, keeps long-running efforts in project rooms with their own folders, journals and conversations, and can operate on external projects in a separate workspace that exports reviewable patches. It bundles Claudexor to drive existing Codex, Claude Code or Cursor subscriptions for delegated coding and review, and grows through reviewed skills, MCP tools and widgets from OuroborosHub. The authors describe the system and its self-reported benchmark campaigns in an arXiv technical report. It is written in Python and released under the MIT License.

## What it does

- Persistent identity, memory, dialogue and version history that continue across tasks and restarts
- Reviewed self-modification: evolution campaigns change its own code, prompts, tools and dependencies through Git-tracked, reviewed commits
- A live swarm of specialist subagents that work in parallel and return findings to a shared task tree
- Project rooms and external Git workspaces, with patch and JSON result export for scripts, CI or other agents
- Remote provider APIs or local GGUF models, plus Codex, Claude Code and Cursor subscriptions via the bundled Claudexor engine
- Desktop app and gateway-backed CLI exposing the same tasks, logs, schedules, skills and evolution controls

## Getting started

Most people should use a packaged download from the GitHub releases page — no Python or uv needed. The headless CLI is for servers, scripts and other agents. Either way, you need at least one remote provider API key or a local GGUF model; the first-run wizard walks through model access, review policy and budget.

1. Install the desktop app

   Download the .dmg (macOS 12+ on Apple silicon), the Windows x64 .zip, or a Linux package from the releases page. On Debian/Ubuntu or Fedora/RHEL, install the package with your package manager; other distributions can run the AppImage (Git must be installed).

```bash
# Debian / Ubuntu / Astra Linux
sudo apt install ./ouroboros_*_amd64.deb

# Fedora / RHEL
sudo dnf install ./ouroboros-*.x86_64.rpm
```

2. Or install the headless CLI with uv

   Builds Ouroboros from the contribution branch into an isolated tool environment that exposes the ouroboros and ouroboros-web commands.

```bash
uv tool install "git+https://github.com/razzant/ouroboros.git@ouroboros"
ouroboros --help
```

3. Run a task

   The CLI attaches to the local runtime and starts one when --start is passed. From a source checkout, `ouroboros server` serves the web UI on http://127.0.0.1:8765.

```bash
ouroboros status
ouroboros run --start "2+2?"
ouroboros tasks list
```

4. Point it at an external project

   Work on another repository without touching Ouroboros's own, and export the result as a reviewable patch plus JSON — the same call works from a script, CI job or another agent.

```bash
ouroboros run --start \
  --workspace /path/to/project \
  --memory-mode forked \
  --patch-out result.patch \
  --result-json-out result.json \
  "Investigate the task, act, and verify the result"
```

5. Schedule recurring work

   Cron-style schedules run tasks unattended; the server binds to 127.0.0.1 by default, and non-local binds need OUROBOROS_NETWORK_PASSWORD (see docs/DEPLOYMENT.md).

```bash
ouroboros schedule add --name nightly-review --cron "0 2 * * *" "Run a maintenance review"
ouroboros schedule list
```

## When to use it

- Keep one long-lived personal agent whose memory and context survive across sessions and restarts
- Hand a multi-part build to a swarm of specialist subagents and follow every branch of the task tree
- Delegate fixes on an external repository from CI or another agent and review the exported patch
- Study or experiment with an agent that evolves its own code under Git review and explicit protected boundaries

## Version history

- 2026-09-26 v7.5.1: Fix release that preserves tasks through budget pauses, reviewer answers through follow-ups and unedited memory with its source history, alongside Presence recovery, Claudexor 3.16.0 live messaging and Docker/TLS improvements.
