Skip to main content

crow logo

🐦‍⬛ Crow

PyPI version Python versions License

Documentation

crow-cli is an Agent Client Protocol (ACP) coding agent that runs in your terminal and inside ACP-compatible editors. It reads and edits code, runs shell commands, searches the web, and remembers your work across sessions.

Persistence is the point: every session lives in a local sqlite database (~/.agents/crow/crow.db) with FTS5 full-text search, so agents recall past conversations and can delegate work to one another. Images are stored as files next to the database and hydrated only when sent to the LLM. Sessions get memorable coolname ids (like taupe-squirrel-of-splendid-potency) you can resume or read from any other agent.

Requirements

  • Python 3.14+, managed with uv
  • Docker, for the SearXNG service
  • An API key for an OpenAI-compatible LLM provider (OpenRouter, OpenAI, your own endpoint, …)
Platform Notes
Linux glibc 2.35+ (Ubuntu 22.04+, Debian 12+, or equivalent)
macOS 13+ (Ventura), Intel and Apple Silicon
Windows 10+ (64-bit); WSL2 recommended

Setup

Install the CLI:

git clone https://github.com/crow-cli/crow-cli.git
cd crow-cli
uv tool install . --python 3.14      # or run without installing: uvx --from . crow-cli --help

Initialize your configuration and start the backing services:

crow-cli init                          # scaffolds ~/.agents/crow (config.yaml, .env, docker-compose)
cd ~/.agents/crow && docker compose up -d     # starts SearXNG

crow-cli init walks you through provider and model selection and writes your secrets to ~/.agents/crow/.env, referenced from the config as ${VAR}.

Quick start

# One-shot prompt — prints the response and exits
crow-cli run "explain what this repo does"

# Continue an existing session by id
crow-cli run -s <session-id> "now add tests"

# Send a long, pre-written prompt from a file or stdin
crow-cli run -f delegation.md -s <session-id>
cat prompt.md | crow-cli run -

# Interactive REPL
crow-cli run -i

# Run as an ACP agent server (for editors)
crow-cli acp

Inspect stored sessions with crow-cli inspect (add --session <id> --messages to see a session's messages).

Using crow-cli in your editor

crow-cli speaks ACP, so it works with any ACP-compatible client. For Zed, add to ~/.config/zed/settings.json:

{
  "agent_servers": {
    "crow-cli": {
      "type": "custom",
      "command": "crow-cli",
      "args": ["acp"]
    }
  }
}

The agent detects client capabilities (terminals, file read/write) and uses the native ACP versions when available, falling back to MCP tools otherwise.

What's in the box

The agent

An ACP-native agent: a streaming ReAct loop with tool calling, cancellation, conversation compaction, and multimodal input. Provider and model configuration lives in ~/.agents/crow/config.yaml.

Persistence — SQL memory (sqlite or PostgreSQL)

We use SQL for storing agent state.

Built-in MCP tool server

The bundled MCP server (crow-cli mcp) providing the agent's tools:

Tool What it does
read / write / edit File access — edit does precise, fuzzy-matched string replacement
terminal Run shell commands in the workspace
web_search / web_fetch Search the web (via SearXNG) and fetch pages as markdown
capture_webcam / read_image_file Vision input
list_sessions / query_memory / query_session Memory (see above)

Extensible by design: register any MCP server in ~/.agents/crow/config.yaml and its tools appear alongside these automatically.

⚠️ Tool names are not namespaced. The built-in server registers its tools as read, edit, terminal, … — not crow_read. When you add your own MCP servers, watch for name collisions.

SearXNG — web search

crow-cli ships a maintained SearXNG configuration (stored as python so the agent works with PyInstaller — sorry) so web search works out of the box, without hand-editing SearXNG settings.

Skills

Agents load reusable skills from ~/.agents/skills/ — each a directory with a SKILL.md describing when and how to use it. Skill distribution is still being worked out; today skills are local directories.

Configuration

~/.agents/crow/config.yaml holds providers, models, and MCP servers; secrets live in ~/.agents/crow/.env and are interpolated with ${VAR}.

providers:
  openrouter:
    api_key: ${OPENROUTER_API_KEY}
    base_url: https://openrouter.ai/api/v1
models:
  my-model:
    provider: openrouter
    model: anthropic/claude-sonnet-4

Development

git clone https://github.com/crow-cli/crow-cli.git
cd crow-cli
uv sync

Run the test suite — every tier runs unconditionally (unit + integration + e2e live LLM):

uv run pytest tests

The persistence layer itself lives in src/crow_cli/memory and is tested in tests/memory/test_store.py. To run a single tier, point pytest at its directory:

uv run pytest tests/unit          # fast, hermetic
uv run pytest tests/integration   # real sqlite, agent spawn
uv run pytest tests/e2e           # live LLM calls (costs $)

Project layout

src/crow_cli/           the agent — ACP server, ReAct loop, CLI
src/crow_cli/config/    config loading, defaults, overrides (shared by every layer)
src/crow_cli/mcp/       built-in MCP tool server (`crow-cli mcp`)
src/crow_cli/memory/    shared SQL persistence (sqlite default, PostgreSQL supported)

License

crow-cli is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-or-later). See LICENSE.md.

The interactive TUI in src/crow_cli/tui/ is derived from Toad by Will McGugan and is likewise AGPL-3.0 (see src/crow_cli/tui/NOTICE).

Release files for crow-cli 0.1.40

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crow-cli 0.1.40
File Size Uploaded
crow_cli-0.1.40.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for crow-cli 0.1.40
File Interpreter ABI Platform
crow_cli-0.1.40-py3-none-any.whl Python 3 none any Details

Total release size: 2.0 MB

Release files / crow_cli-0.1.40.tar.gz

Download URL crow_cli-0.1.40.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
799bddf6e531200a9caf0e74e216a86e04abc3d1157736db82630a36c76e3d95
BLAKE2b-256 checksum
How to use checksums
d551ea385d9abd101c94b0641fe0e7c23fd6cb1be5dede1979c3d7de916b3b7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / crow_cli-0.1.40-py3-none-any.whl

Download URL crow_cli-0.1.40-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03c1077d2e75daf01f00a569b7b0058c39f6a17ed87be6cebff4e3ef2a21d4ab
BLAKE2b-256 checksum
How to use checksums
e89f1821e481353008c781d27f9c3c22796afff7d173d3e24ceb39d020f20fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page