AI Skill Hub 强烈推荐:Ouroboros智能体操作系统 是一款优质的AI工具。已获得 4.1k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
Ouroboros智能体操作系统 是一款基于 Python 开发的开源工具,专注于 Agent框架、MCP协议、智能体OS 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Ouroboros智能体操作系统 是一款基于 Python 开发的开源工具,专注于 Agent框架、MCP协议、智能体OS 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install ouroboros
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install ouroboros
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/Q00/ouroboros
cd ouroboros
pip install -e .
# 验证安装
python -c "import ouroboros; print('安装成功')"
# 命令行使用
ouroboros --help
# 基本用法
ouroboros input_file -o output_file
# Python 代码中调用
import ouroboros
# 示例
result = ouroboros.process("input")
print(result)
# ouroboros 配置文件示例(config.yml) app: name: "ouroboros" debug: false log_level: "INFO" # 运行时指定配置文件 ouroboros --config config.yml # 或通过环境变量配置 export OUROBOROS_API_KEY="your-key" export OUROBOROS_OUTPUT_DIR="./output"
<p align="right"> <strong>English</strong> | <a href="./README.ko.md">한국어</a> | <a href="./README.zh-CN.md">简体中文</a> </p>
<p align="center"> <br/> ◯ ─────────── ◯ <br/><br/> <img src="./docs/images/ouroboros.png" width="420" alt="Ouroboros"> <br/><br/> <strong>O U R O B O R O S</strong> <br/><br/> ◯ ─────────── ◯ <br/> </p>
<p align="center"> <strong>It gets smarter on its own. We just hold the line.</strong> <br/> <sub>Skip the prompt engineering. The agent runs, fails, and gets smarter every generation. The grading command and expected result never make it into the success contract we hand it.</sub> <br/> <sub>The <strong>Agent OS</strong> for replayable AI coding workflows</sub> </p>
<p align="center"> <a href="https://github.com/Q00/ouroboros"><img src="https://img.shields.io/github/stars/Q00/ouroboros?color=yellow&logo=github&label=stars" alt="GitHub stars"></a> <a href="https://pypi.org/project/ouroboros-ai/"><img src="https://img.shields.io/pypi/v/ouroboros-ai?color=blue" alt="PyPI"></a> <a href="https://github.com/Q00/ouroboros/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/Q00/ouroboros/test.yml?branch=main" alt="Tests"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="License"></a> <a href="https://github.com/sponsors/Q00"><img src="https://img.shields.io/github/sponsors/Q00?logo=githubsponsors&color=EA4AAA&label=sponsors" alt="GitHub Sponsors"></a> </p>
<p align="center"> <a href="https://trendshift.io/repositories/26008?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-26008" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/26008" alt="Q00%2Fouroboros | Trendshift" width="250" height="55"/></a> </p>
<p align="center"> <a href="#quick-start">Quick Start</a> · <a href="#why-ouroboros">Why</a> · <a href="#what-you-get">Results</a> · <a href="#the-loop">How It Works</a> · <a href="#commands">Commands</a> · <a href="#from-wonder-to-ontology">Philosophy</a> · <a href="https://ouroboros.page/learn/en/">Guide</a> </p>
```bash
irm https://raw.githubusercontent.com/Q00/ouroboros/main/scripts/install.ps1 | iex ```
<p align="center"><sub>One command installs it. Then run <code>ooo setup</code> once inside your coding agent — details in <a href="#quick-start">Quick Start</a>.</sub></p>
<p align="center"><sub><b>Separate runs, separate hosts. Different tasks on purpose — the engine is what is shared, not the prompt</b></sub></p>
![]() Terminal CLI — a task-management CLI: ouroboros init start asking about ordering and scope, then reporting an ambiguity score |
![]() ChatGPT (Codex) — called as an integration, on a video-publishing harness: the interview, its advisory lanes, and the ambiguity ledger |
![]() Claude Code — a YouTube automation task, with the six advisory lanes running in parallel before the interview submits |
![]() Hermes (Discord) — a kart-racing game, run as a chat bot, ending at Final ambiguity: 0.15 |
![]() DeepSeek Harness — an OSS-trend outreach script, driven from a dsh chat: mcp__ouroboros__ouroboros_interview turn by turn, fan-out results submitted between rounds |
![]() Kiro — the Kiro CLI running the Ouroboros interview flow, turning a vague request into a structured, testable Seed |
Turn a vague idea into a verified, working codebase -- across Claude Code, Codex CLI, OpenCode, Hermes, Gemini, Kiro, Copilot, Pi, OMP, Zcode, Goose, GJC, Antigravity, and Grok.
Ouroboros is an Agent OS for AI coding: a local-first runtime layer that turns non-deterministic agent work into a replayable, observable, policy-bound execution contract. It replaces ad-hoc prompting with a structured specification-first workflow: interview, crystallize, execute, evaluate, evolve.
---
irm https://raw.githubusercontent.com/Q00/ouroboros/main/scripts/install.ps1 | iex
The Windows installer installs Git and uv through winget when they are missing,
lets uv download its own Python, then installs `ouroboros-ai` and wires the
host it finds. Native Windows is experimental and Codex CLI needs WSL 2; see
[platform support](./docs/platform-support.md).
**First command** — open your AI coding agent and run these in order:
> ooo setup > ooo interview "I want to build a task management CLI"
`ooo setup` is a one-time configuration step. `ooo interview` is the first
workflow command and starts the Socratic interview. After setup, Codex follows
its currently selected model and Claude Code starts with its recommended model
settings. Choose **Directly configure models** only when you want to pin a
stage to a specific model; it opens the local settings screen in your browser.
You can return to those settings any time with `ooo config`.
Or from a plain terminal, without an agent host:
$ ouroboros init start --orchestrator "I want to build a task management CLI tool"
<p align="center">
<sub>That recording is this exact command. It is at the top of this page so you can see the tool before installing it.</sub>
</p>
<p align="center">
<img src="./docs/images/ooo-setup-refresh.gif" width="760" alt="Terminal recording of ouroboros setup refresh installing Codex rules and skills, Hermes skills, the OpenCode plugin and instruction guide, and the Pi and GJC bridges, ending with the line Refreshed runtime artifacts: codex, hermes, opencode, pi, gjc">
</p>
<p align="center">
<sub><code>ouroboros setup refresh</code> on one machine. It installs into the hosts that machine actually has, each in the shape that host expects: rules and skills for Codex, skills for Hermes, a plugin and an <code>AGENTS.md</code> for OpenCode, bridges for Pi and GJC. Your machine will show whichever of the thirteen you have installed.</sub>
</p>
> Works with Claude Code, Codex CLI, GitHub Copilot CLI, OpenCode, Hermes, Gemini, Kiro CLI, Pi CLI, OMP CLI, Zcode, Goose, GJC, Antigravity CLI, and Grok Build CLI. The installer detects available runtimes and registers the MCP server where the host supports it. For explicit selection, run `ouroboros setup --runtime <opencode|kiro|copilot|gemini|pi|omp|zcode|goose|gjc|antigravity|grok>` after installation. Copilot live-discovers its subscription catalog via the GitHub Copilot models API; Kiro's settings picker queries the authenticated CLI with `kiro-cli chat --listmodels -f json`, so account and enterprise allow-list changes appear without a hardcoded model table.
> **DeepSeek support.** Ouroboros speaks DeepSeek two ways. Point the interview/Seed/QA pipeline at DeepSeek's own models with `--llm-backend dsh` (`ouroboros mcp serve --runtime claude-cli --llm-backend dsh`, or `OUROBOROS_LLM_BACKEND=dsh`) — this drives [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)'s ACP server under the hood. Or go the other way: install the [`dsh-ouroboros` plugin](./integrations/dsh-plugin) (`dsh plugin --profile <your-profile> add "github:Q00/ouroboros#main&path:integrations/dsh-plugin"`) and type `ooo interview` / `ooo auto` directly in the DeepSeek Harness chat — the same `ouroboros_interview` / `ouroboros_auto` tools run natively inside it, Socratic questions and all. Both directions, including what the `dsh` backend needs beyond the one variable, are in the [DeepSeek Harness guide](./docs/guides/deepseek-harness.md).
<details>
<summary><strong>Codex plugin quick start</strong></summary>
Needs `codex` on your `PATH` and `uvx` on the host (the plugin's MCP descriptor
launches the server with it). Install uv with `pipx install uv`,
`pip install --user uv`, or `brew install uv`.
bash codex plugin marketplace add Q00/ouroboros codex plugin add ouroboros@ouroboros
Start a new Codex session, then run these commands in order:
ooo setup ooo interview "Build a task management CLI"
`ooo setup` is the one-time runtime preparation. Once ready, Ouroboros follows
Codex's current default model; choose **Directly configure models** only when
you want to pin a specific model for a pipeline stage.
</details>
<details>
<summary><strong>Kiro CLI quick start</strong></summary>
bash pipx install 'ouroboros-ai[mcp]' # or: uv tool install 'ouroboros-ai[mcp]' ouroboros setup --runtime kiro # detects Kiro CLI, registers MCP server, and # writes OUROBOROS_RUNTIME=kiro into # ~/.kiro/settings/mcp.json (the trusted, # setup-managed location -- a project .env # is untrusted input and this key is ignored there)
Then use `ooo` commands inside a Kiro CLI session.
</details>
<details>
<summary><strong>GitHub Copilot CLI quick start</strong></summary>
bash gh auth login # one-time GitHub auth (used for live model discovery) pipx install 'ouroboros-ai[mcp]' # or: uv tool install 'ouroboros-ai[mcp]' ouroboros setup --runtime copilot # discovers models live, picks a default, # registers MCP server in ~/.copilot/mcp-config.json
Restart your Copilot CLI session, then use `ooo` commands inside it. Model-ID mapping is catalog-gated: the current direct and OpenRouter Opus defaults resolve to Copilot's published `claude-opus-5`, while legacy Anthropic versions convert only their trailing numeric separator and only when the discovered catalog contains the exact candidate. Unknown IDs remain unchanged so Copilot reports an explicit unavailable-model error instead of silently selecting a different model. Leave role models unset so setup writes a discovered ID, or set a Copilot-valid ID explicitly. See the [Copilot runtime guide](./docs/runtime-guides/copilot.md).
See the [GitHub Copilot CLI runtime guide](./docs/runtime-guides/copilot.md) for full details.
</details>
<details>
<summary><strong>Other install methods</strong></summary>
**Claude Code plugin only** (no Python package or global Python to install; the
host needs uv, which provides both `uvx` for the MCP server and the skills'
Python >= 3.12 fallback):bash claude plugin marketplace add Q00/ouroboros && claude plugin install ouroboros@ouroboros Then run `ooo setup` inside a Claude Code session.
**pip / uv / pipx**:bash pip install 'ouroboros-ai[mcp,tui]' && ouroboros setup --runtime claude-cli # recommended MCP v2 default pip install 'ouroboros-ai[claude]' # Claude Agent SDK profile (MCP 1.x, isolated) pip install 'ouroboros-ai[claude-cli]' # dependency-free Claude CLI worker pip install 'ouroboros-ai[claude-sdk]' # explicit alias for the Claude SDK profile pip install 'ouroboros-ai[litellm]' # + LiteLLM multi-provider; Python 3.12-3.13 pip install 'ouroboros-ai[mcp]' # MCP v2 server/client without the GUI pip install 'ouroboros-ai[tui]' # settings GUI only pip install 'ouroboros-ai[all]' # MCP 1.x app bundle; excludes MCP 2 by design ouroboros setup # configure runtime
Core and non-LiteLLM installs support Python 3.12-3.14. LiteLLM-bearing installs (`[litellm]`, `[all]`, and source `--extra all`) support Python 3.12-3.13; use Python 3.13 for current examples. See [Platform Support](./docs/platform-support.md#python-profile-matrix).
The recommended standalone installation is `ouroboros-ai[mcp,tui]` followed by
an explicit MCP v2-compatible runtime selection. The example uses
`--runtime claude-cli`; substitute another compatible runtime such as `codex`,
`opencode`, `hermes`, `gemini`, `goose`, `kiro`, `copilot`, `pi`, or `gjc`.
Use `[claude]` and `[claude-sdk]` only in isolated MCP 1.x environments.
`pip install 'ouroboros-ai[mcp]'` is valid for embedding the MCP client/server library in an already isolated Python environment, but host registration requires `uvx --isolated --python '>=3.12'` or `pipx`. Use `pipx install 'ouroboros-ai[mcp]'` or `uv tool install 'ouroboros-ai[mcp]'` before `ouroboros setup --runtime <claude-cli|codex|opencode|hermes|gemini|goose|kiro|copilot|pi|gjc>`; setup exits without changing runtime configuration when neither isolated launcher is available.
Legacy compatibility: `ouroboros-ai[dashboard]` is still accepted as a compatibility alias/no-op; it does not install dashboard runtime payload. `ouroboros-ai[all]` includes that no-op alias only for compatibility.
**Homebrew (macOS/Linux)**:bash brew tap q00/tap brew install ouroboros-ai ouroboros setup # configure runtime Self-hosted tap, not yet in homebrew-core. Installs the same package published to PyPI.
See runtime guides: [Claude Code](./docs/runtime-guides/claude-code.md) · [Codex CLI](./docs/runtime-guides/codex.md) · [Hermes](./docs/runtime-guides/hermes.md) · [OpenCode](./docs/runtime-guides/opencode.md) · [Kiro CLI](./docs/runtime-guides/kiro.md) · [Gemini CLI](./docs/runtime-guides/gemini.md) · [GitHub Copilot CLI](./docs/runtime-guides/copilot.md) · [Zcode](./docs/runtime-guides/zcode.md) · [Pi JSON mode](https://pi.dev/docs/latest/json) · [OMP (Oh My Pi)](./docs/runtime-guides/omp.md) · [Goose](./docs/runtime-guides/goose.md) · [GJC](./docs/runtime-guides/gjc.md) · [Antigravity CLI](./docs/runtime-guides/antigravity.md) · [Grok Build CLI](./docs/runtime-guides/grok.md)
</details>
<details>
<summary><strong>Uninstall</strong></summary>
bash ouroboros uninstall ```
Removes all configuration, MCP registration, and data. See UNINSTALL.md for details.
</details>
Python >= 3.12 required. LiteLLM-bearing profiles support Python 3.12-3.13. See Platform Support and pyproject.toml. Installing as an MCP server: use 0.51.1 or later. Earlier versions can fail at startup withFailed to reconnect to plugin:ouroboros:ouroboros: -32000when an existing environment shadows the[mcp]profile (#2012). This matters if you install through a downstream package rather than PyPI, since those can lag.
<p align="center"> <sub>Most people find out they were unclear about three files into the review.<br/> If that feels familiar, star <a href="https://github.com/Q00/ouroboros"><strong>Q00/ouroboros on GitHub</strong></a> so the next person it could save can find it.</sub> </p>
---
Install — one command, everything auto-detected:
```bash
AI coding tools are powerful -- but they solve the wrong problem when the input is unclear.
| Vanilla AI Coding | Ouroboros | |
|---|---|---|
| **Vague prompt** | AI guesses intent, builds on assumptions | Socratic interview forces clarity *before* code |
| **Spec validation** | No spec -- architecture drifts mid-build | Immutable seed spec locks intent; ambiguity gate (<= 0.2) blocks premature code without explicit force |
| **Evaluation** | "Looks good" / manual QA | 3-stage automated gate: Mechanical -> Semantic -> Multi-Model Consensus |
| **Rework rate** | High -- wrong assumptions surface late | Low -- assumptions surface in the interview, not in the PR review |
---
架构创新的Agent框架,MCP生态整合完善。代码活跃度高、社区关注度强。适合寻求替代提示词工程方案的开发者。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,Ouroboros智能体操作系统 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | ouroboros |
| 原始描述 | 开源MCP工具:Agent OS: Stop prompting. Start specifying.。⭐4.1k · Python |
| Topics | Agent框架MCP协议智能体OS开源Python |
| GitHub | https://github.com/Q00/ouroboros |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。