Skip to main content

crow-cli

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.

Most agent toolkits treat persistence as an afterthought. crow-cli treats it as the point: every session lives in a dedicated memory service (crow-memory) built on LanceDB with ColBERT and ColPali embeddings, so agents recall past conversations semantically and can delegate work to one another. 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 crow-memory and SearXNG services
  • 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 crow-cli --python 3.14      # or run without installing: uvx crow-cli --help

Initialize your configuration and start the backing services:

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

crow-cli init walks you through provider and model selection and writes your secrets to ~/.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

crow-cli is a monorepo. The pieces:

crow-cli — the agent

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

crow-memory — persistence + memory API

A standalone service — a LanceDB store with ColBERT (text) and ColPali (image) multivector embeddings — that the agent talks to over HTTP. It backs both session persistence and a semantic memory API, exposed to agents as three tools:

  • list_sessions() — sessions ordered by recent activity (who's working on what)
  • query_memory(query) — find which session discussed something, across all sessions
  • query_session(session_id) — read or search within one session (spans all of that session's agents)

This is what makes multi-agent delegation work: launch a worker, then read its thoughts from any other agent. Today crow-memory runs as a Docker container the agent connects to; longer-term it moves toward an always-on daemon, in line with the ACP v2 direction.

crow-mcp — the tool server

The built-in MCP server 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 ~/.crow/config.yaml and its tools appear alongside these automatically.

⚠️ Tool names are not namespaced. crow-mcp registers its tools as read, edit, terminal, … — not crow-mcp_read. When you add your own MCP servers, watch for name collisions.

SearXNG — web search

crow-cli ships a maintained SearXNG configuration (stored as JSON so the agent can drive it over MCP) so web search works out of the box, without hand-editing SearXNG settings.

Skills

Agents load reusable skills from ~/.crow/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

~/.crow/config.yaml holds providers, models, and MCP servers; secrets live in ~/.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 --project crow-cli

Run the unit tests — fast and hermetic, no services required (tests that touch sessions use an in-memory fake of the memory service):

uv run --project crow-cli pytest crow-cli/tests/unit

The persistence layer itself is tested in crow-memory. Integration and end-to-end tiers are opt-in:

uv run --project crow-cli pytest crow-cli/tests --run-integration   # spawn the agent
uv run --project crow-cli pytest crow-cli/tests --run-e2e           # live LLM calls (costs $)

Project layout

crow-cli/               the agent — ACP server, ReAct loop, CLI
crow-mcp/               built-in MCP tool server
crow-memory/            persistence + memory service (LanceDB, ColBERT/ColPali)
crow-task-mcp/          task-list MCP server for delegation (being reworked)
crow-orchestrator-mcp/  orchestration MCP server for delegation (being reworked)

License

MIT

Download files

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

Source Distribution

crow_cli-0.1.30.tar.gz (266.3 kB view details)

Uploaded Source

Built Distribution

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

crow_cli-0.1.30-py3-none-any.whl (82.9 kB view details)

Uploaded Python 3

File details

Details for the file crow_cli-0.1.30.tar.gz.

File metadata

  • Download URL: crow_cli-0.1.30.tar.gz
  • Upload date:
  • Size: 266.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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}

File hashes

Hashes for crow_cli-0.1.30.tar.gz
Algorithm Hash digest
SHA256 69c96290f3265477c9d2d9827080cdf9f4dde917ba53cf8428fa37e86a768df0
MD5 ee4514acb33b581b2ea02c7f991e1a87
BLAKE2b-256 ea3429180c6e66faf78de3bc510971ecd1aa45f503ed9f85beead0c368f29132

See more details on using hashes here.

File details

Details for the file crow_cli-0.1.30-py3-none-any.whl.

File metadata

  • Download URL: crow_cli-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 82.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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}

File hashes

Hashes for crow_cli-0.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 6bcf83a8a57c7f5abc9ea5d287dd2fbeab29d2c147c17ab129bd711b6e703088
MD5 27d3a4035db34eb7fd5291d0732345e8
BLAKE2b-256 19876eebbacd38bad01a291ed7f61c57d65bef01036ae414607962e4be308c97

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.37

2 files

0.1.36

2 files

0.1.34

2 files

0.1.33

2 files

0.1.32

2 files

This release

0.1.30 This release

2 files

0.1.29

2 files

0.1.28

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.14

2 files

0.1.12

2 files

0.1.9

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 files

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