Skip to main content Switch to mobile version cheetahclaws 3.5.91 CheetahClaws: Agent Harness Infrastructure for Long-Horizon, Multi-Model, and Tool-Using AI Systems
pip install cheetahclaws==3.5.91 Copy PIP instructions
English | 中文 | 한국어 | 日本語 | Français | Deutsch | Español | Português
CheetahClaws: Scaling the Harness in Agentic AI
Website · Paper · Issue ·
pip install cheetahclaws Then just run (e.g., using deepseek-v4-flash model):
cheetahclaws # start chatting! Other install methods: one-line install script | install from source | uv install | run from source install | full install details | docker install
🖥️ Prefer a native app? A desktop build (Electron) wraps the full chat UI in a window — no terminal needed. See desktop/.
🔥🔥🔥 News (Pacific Time)
December 3, 2026 (v3.5.91): The file sandbox now covers every path-taking tool, cost budgets price every offered model, and /research gains Keenable web search (Issue #198 reported by @tunguyen1993; PR #203 by @Mattbusel; PR #205 by @KGKallasmaa). Details
October 31, 2026 (v3.5.90): Safe to open any repo, edits that can't corrupt a file, and a real headless mode — workspace trust, bridge sender allowlists, Bash and WebFetch hardening, MultiEdit/ApplyPatch, and headless cheetahclaws exec / -p with --output-format json. Details
October 30, 2026 (v3.5.89.1): Runcrate provider and Serply Scholar research source (PR #193 by @heydryft; PR #191 by @googio). Details
October 11, 2026 (v3.5.89): Skills that return an answer, custom endpoints that are asked once, and a Requesty provider (PR #186 by @linhongyu510; PR #185 by @Thibaultjaigu; issues reported by @master5d). Details
September 20, 2026 (v3.5.88): Autonomous by default, /resume by name, and transcripts you can read. Details
August 16, 2026 (v3.5.87): Permission prompts are now reserved for what actually needs a decision. Details
August 16, 2026: OpenRouter is now a first-class provider — one key, 400+ models, secondary provider pinnable per call (PR #179). Details
July 30, 2026 (v3.5.86): Next-prompt ghost text — the REPL predicts the line you'd type next. Details
July 20, 2026: Bounded-I/O fixes and a configurable tool surface (tool_profile). Details
July 11, 2026: Terminal tab title tracks the live task, plus a cross-turn fix for the Anthropic prompt cache. Details
July 10, 2026 (v3.5.85): REPL quality-of-life: built-in typing-time completion, a /model Tab picker (PR #166) and per-turn session autosave. Details
July 9, 2026: Official Docker image (docker pull chauncygu/cheetahclaws) and a one-command publish script. Details
July 8, 2026: New /workspace command for isolated working directories (PR #162). Details
July 6, 2026 (v3.5.84): /image adds local OCR text to the prompt, so non-vision models can read clipboard screenshots. Details
For more news, see here.
CheetahClaws: A Fast and Easy-to-Use Python native Agent Harness Infrastructure, Supporting Any Model, such as Claude, GPT, Gemini, Kimi, Qwen, Zhipu, DeepSeek, MiniMax, and local open-source models via Ollama or any OpenAI-compatible endpoint.
CheetahClaws vs OpenClaw
Usage: Closed-Source API Models
Usage: Open-Source Models (Local)
Documentation (guides for all features)
Contributing · FAQ · Citation
More animated demos (code review, /research, /brainstorm, /lab, Telegram/WeChat/Slack bridges) live in docs/media/.
Claude Code is a powerful, production-grade AI coding assistant — but its source is a compiled ~12 MB TypeScript/Node bundle (~1,300 files, ~283K lines), tightly coupled to the Anthropic API, hard to modify, and impossible to run against a local or alternative model.
CheetahClaws reimplements the same core loop in ~90K lines of readable Python — keeping what you need, dropping what you don't, and adding multi-provider + local-model support. Full comparison: docs/guides/comparison.md.
Where Claude Code wins: richer React/Ink UI, more built-in tools, enterprise features (MDM, team permission sync, OAuth/keychain), AI-driven memory extraction, single-binary production reliability.
Where CheetahClaws wins: any-model switching (--model//model, no recompile) incl. full local/offline support; a readable agent loop in one file (agent.py, ~740 lines); zero build; runtime tool registration + MCP + git plugins + Markdown skills; task dependency graph (blocks/blocked_by); two-layer context compression; offline voice; cloud session sync; bridges to Telegram/WeChat/Slack/QQ.
Who it's for: developers who want a local/non-Anthropic coding assistant, researchers studying how agentic assistants work, and teams who need a hackable baseline — without a Node.js build chain.
OpenClaw is another popular open-source assistant (TypeScript/Node). The two have different primary goals — OpenClaw is a personal life-assistant across messaging channels; CheetahClaws is a developer/coding tool.
Full comparison — both sides' wins + key design differences (agent loop, tool registration, context compression, memory): docs/guides/comparison.md.
Full feature reference — every row above with complete detail (context-compression layers, auto-fanout, 15 themes, the full Trading/Research/Agents writeups, …): docs/guides/features.md.
openrouter/ gateway: one key for 400+ models across vendors. The model ID keeps OpenRouter's upstream
requesty/ gateway: works the same way: everything after requesty/ is sent as the model ID, either a catalog
litellm/ adapter: routes to 100+ providers behind one SDK — mainly for upstreams with awkward auth (Bedrock SigV4, Azure deployment routing, Vertex service-account JWTs). For plain OpenAI-shaped endpoints, prefer the zero-dependency custom/ adapter. Install with pip install ".[litellm]". See recipes.md.
Open-Source (Local via Ollama)
Tool calling needs a function-calling model — recommended: qwen2.5-coder, llama3.3, mistral, phi4. Models that emit tool calls as text (
pip install cheetahclaws Works on Linux, macOS, WSL2, and Android (Termux) (Python 3.10+). First run guides you through provider + API-key setup; re-run anytime with cheetahclaws --setup.
Windows: native Windows is not supported — use WSL2. Android/Termux: pkg install python git && pip install cheetahclaws.
Alternative: one-line install script
curl -fsSL https://raw.githubusercontent.com/SAIL-Research-Lab/cheetahclaws/main/scripts/install.sh | bash After installation, reload your shell so cheetahclaws is on PATH:
source ~/.zshrc # macOS # or: source ~/.bashrc # Linux cheetahclaws # start chatting! Alternative: install with pip from source code
git clone https://github.com/SAIL-Research-Lab/cheetahclaws.git cd cheetahclaws pip install . # then: cheetahclaws git pull && pip install --force-reinstall . # to update Optional extras
pip install ".[voice]" # voice input (sounddevice + faster-whisper) pip install ".[vision]" # clipboard image capture (Pillow) # note: typing-time completion (prompt_toolkit) is now built in — no extra needed. # the [autosuggest] extra is kept as a no-op alias for backward compat. pip install ".[browser]" # headless browser (playwright); then: playwright install chromium pip install ".[files]" # PDF + Excel reading (pymupdf, openpyxl) pip install ".[ocr]" # image OCR (pytesseract) pip install ".[trading]" # trading agent (yfinance, rank-bm25) pip install ".[qq]" # QQ bot bridge (qq-botpy) pip install ".[litellm]" # AWS Bedrock / Azure / Vertex auth via litellm pip install ".[pricing]" # list prices for new Anthropic/OpenAI/Gemini models (llm-prices) pip install ".[all]" # everything above Alternative: install with uv
Every cloud provider follows the same pattern — export its API key (see the Supported Models table for the env-var name), then select a model:
export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_API_KEY / GEMINI_API_KEY / DEEPSEEK_API_KEY / … cheetahclaws # default model cheetahclaws --model gpt-4o # pick any model cheetahclaws --model deepseek-chat --thinking --verbose Provider get-key pages: Anthropic · OpenAI · Gemini · Kimi · Qwen · Zhipu · DeepSeek · MiniMax · OpenRouter · Requesty.
One key for 400+ models — OpenRouter fronts every major vendor behind one OpenAI-compatible endpoint, so a single key covers Claude, GPT, Gemini, DeepSeek, Llama, Qwen and the rest:
export OPENROUTER_API_KEY=sk-or-... cheetahclaws --model openrouter/deepseek/deepseek-v4-flash cheetahclaws --model openrouter/anthropic/claude-sonnet-4-6 cheetahclaws --model openrouter/deepseek/deepseek-v4-flash@gmicloud/fp8 # pin the upstream provider Requesty is another one-key gateway (700+ models, OpenAI-compatible):
export REQUESTY_API_KEY=rqsty-... cheetahclaws --model requesty/openai/gpt-4o-mini cheetahclaws --model requesty/claude-sonnet-4-6 # managed policy ID Runcrate (runcrate/
AWS Bedrock / Azure / Vertex use the litellm/
Full per-provider guide — every provider's get-key page + example model commands, plus Bedrock/Azure/Vertex env-var recipes: docs/guides/usage.md.
Ollama (recommended)
curl -fsSL https://ollama.com/install.sh | sh # install ollama pull qwen2.5-coder # pull a tool-calling model ollama serve # http://localhost:11434 (auto-starts on macOS) cheetahclaws --model ollama/qwen2.5-coder # run (use `ollama list` to see local models) LM Studio
Download LM Studio, grab a GGUF model, start its Local Server (port 1234), then:
cheetahclaws --model lmstudio/
python -m vllm.entrypoints.openai.api_server \ --model Qwen/Qwen2.5-Coder-32B-Instruct --port 8000 \ --enable-auto-tool-choice --tool-call-parser hermes export CUSTOM_BASE_URL=http://localhost:8000/v1 export CUSTOM_API_KEY=token-abc123 # any non-empty string if the server has no auth cheetahclaws --model custom/Qwen2.5-Coder-32B-Instruct The name after custom/ must match the server's --served-model-name. For the Web UI, --web --model custom/
Full local-model guide — Ollama step-by-step, LM Studio, vLLM + Web UI: docs/guides/usage.md.
Atlas Cloud (hosted, OpenAI-compatible)
🎁 Atlas Cloud serves DeepSeek, Qwen, GLM, Kimi, MiniMax and more behind one OpenAI-compatible endpoint, via the zero-dependency custom/ adapter:
export CUSTOM_BASE_URL=https://api.atlascloud.ai/v1 export CUSTOM_API_KEY=your_atlascloud_api_key cheetahclaws --model custom/deepseek-ai/deepseek-v4-pro Any Atlas chat model id works the same way — full list of all 59 models: docs/guides/usage.md.
Three equivalent forms are accepted:
cheetahclaws --model gpt-4o # 1. auto-detect by prefix cheetahclaws --model ollama/qwen2.5-coder # 2. provider/model cheetahclaws --model kimi:moonshot-v1-32k # 3. provider:model Gateways keep the upstream path. OpenRouter, Requesty, Runcrate, NIM and LiteLLM address models by a
cheetahclaws --model openrouter/deepseek/deepseek-v4-flash # → OpenRouter, model "deepseek/deepseek-v4-flash" cheetahclaws --model nim/meta/llama-3.3-70b-instruct # → NVIDIA NIM cheetahclaws --model requesty/openai/gpt-4o-mini # → Requesty, model "openai/gpt-4o-mini" cheetahclaws --model runcrate/zai-org/GLM-5.3 # → Runcrate, model "zai-org/GLM-5.3" cheetahclaws --model openrouter/deepseek/deepseek-v4-flash@gmicloud/fp8 # + pinned provider / quantization OpenRouter additionally accepts an @
Auto-detection by prefix: claude-→anthropic · gpt-/o1/o3→openai · gemini-→gemini · moonshot-/kimi-→kimi · qwen/qwq-→qwen · glm-→zhipu · deepseek-→deepseek · MiniMax-/abab→minimax · llama/mistral/phi/gemma/mixtral/codellama→ollama.
Tab-completion (PR #166): inside the REPL, type /model and press Tab for a provider/model picker — one default per provider, plus a two-level litellm/
A built-in AI trading analysis + backtesting module (pip install "cheetahclaws[trading]").
/trading analyze NVDA # 5-phase pipeline: data → Bull/Bear debate → Judge → Risk panel → PM decision /trading backtest AAPL dual_ma # backtest a strategy (or let AI pick); Sharpe/Sortino/Calmar/drawdown/win-rate 4 strategies (dual_ma, rsi_mean_reversion, bollinger_breakout, macd_crossover), BM25 memory of past situations, US/HK/A-share + crypto markets with no-API-key data fallbacks. Guided sub-menu via /ssj → Trading.
Full guide: docs/guides/trading.md
A production-ready browser interface — real user accounts (bcrypt + JWT), SQLite-backed history, ops endpoints — served by Python stdlib + ten vanilla-JS modules (no Node.js / React / build step).
pip install 'cheetahclaws[web]' cheetahclaws --web # auto-picks a free port (tries 8080) cheetahclaws --web --port 9000 --host 0.0.0.0 # bind explicitly / open to LAN cheetahclaws --web --no-auth # skip login (localhost dev only) Open http://localhost:
Full guide: docs/guides/web-ui.md · Docker / home server: docs/guides/docker.md · Native desktop app: desktop/README.md
Detailed guides live in docs/guides/ to keep this README focused:
cheetahclaws [OPTIONS] [PROMPT] -p, --print Non-interactive: run prompt and exit -m, --model MODEL Override model (e.g. gpt-4o, ollama/llama3.3) --accept-all Auto-approve all operations (no permission prompts) --auto, --yolo Autonomous: carry the whole task through with no prompts (the default; overrides a saved /auto off) --ask, --no-auto Turn approval prompts back on for this run --verbose Show thinking blocks and per-turn token counts --show-tools Show each tool call instead of a per-turn summary (alias: --no-quiet; compact summary is the default) --thinking Enable Extended Thinking (Claude only) --web Start web server (Chat UI + PTY terminal in browser) --port / --host Web server port / host (default 8080 / 127.0.0.1) --no-auth Disable web password (local use only) --version / -h Print version / show help cheetahclaws # interactive REPL, default model cheetahclaws -m ollama/deepseek-r1:32b # pick a model cheetahclaws -p "Write a Python fibonacci function" # non-interactive cheetahclaws --accept-all -p "Init a pyproject.toml" # CI / automation cheetahclaws --ask "Refactor the parser" # approve each step instead cheetahclaws --web --port 8008 --no-auth # browser chat + terminal See the Reference Guide for all 50+ slash commands, tools, and config options.
We welcome contributions! See the Contributing Guide for architecture, conventions, and the PR checklist.
A few common questions — the full FAQ is in docs/guides/faq.md.
Q: How do I add an MCP server?
/mcp add git uvx mcp-server-git # or create .mcp.json in your project, then /mcp reload Q: Tool calls don't work with my local Ollama model (it just keeps describing what it would do instead of doing it). CheetahClaws now auto-recovers tool calls that local models emit as text (
Q: After installing on macOS, cheetahclaws: command not found and no ~/.zshrc was created. Reload your shell first: source ~/.zshrc (zsh) or source ~/.bash_profile (bash). The installer creates ~/.zshrc if missing, symlinks the binary into ~/.local/bin, and adds it to PATH. If you installed an older version, either re-run the installer or add this line yourself: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc.
More — remote vLLM, API cost (/cost), multiple keys per session, default model across projects, piping input, voice setup, garbled-text fixes — are all answered in docs/guides/faq.md.
If you find the repository useful, please cite the study
@article{gu2026model, title={From Model Scaling to System Scaling: Scaling the Harness in Agentic AI}, author={Gu, Shangding}, journal={arXiv preprint arXiv:2605.26112}, year={2026} } Thanks to all contributors:
Released: Dec 4, 2026
Author/Maintainer: SAIL Lab (Safe AI and Robot Learning Lab)
Apache Software License (Apache-2.0)
voice vision autosuggest browser files ocr trading web litellm qq pricing all
ai agent llm claude openai gemini deepseek coding-assistant cli terminal autonomous-agents multi-model mcp tool-use ollama
Development Status 5 - Production/Stable
Intended Audience Developers
License OSI Approved :: Apache Software License
Operating System MacOS
Programming Language Python :: 3
Topic Scientific/Engineering :: Artificial Intelligence
Software Development :: Code Generators
Release files for cheetahclaws 3.5.91
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 3.0 MB
Release files / cheetahclaws-3.5.91.tar.gz
Release files / cheetahclaws-3.5.91-py3-none-any.whl
Security for cheetahclaws 3.5.91
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 4, 2026 2 release files No provenance
Nov 8, 2026 2 release files No provenance
Oct 12, 2026 2 release files No provenance
Sep 20, 2026 2 release files No provenance
Aug 17, 2026 2 release files No provenance
Jul 31, 2026 2 release files No provenance
Jul 11, 2026 2 release files No provenance
Jul 7, 2026 2 release files No provenance
Jun 5, 2026 2 release files No provenance
May 10, 2026 2 release files No provenance
Apr 18, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











