Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 2.29 KB

agent-setup.md

File metadata and controls

79 lines (55 loc) · 2.29 KB

Install and set up crow-cli

Instructions for a coding agent. Run these steps on this machine, in order. Linux or macOS. You need an API key for an OpenAI-compatible provider (OpenRouter, OpenAI, your own endpoint) — ask the user for one.

1. Install

Install uv if it is missing:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then install the agent (uv fetches Python 3.13 itself):

uv tool install crow-cli --python 3.13

crow-cli lands in ~/.local/bin — make sure that is on PATH.

2. Initialize

With a human at the terminal, the wizard walks through providers and models:

crow-cli init

Non-interactively, export the provider as env vars first — init --yes discovers every LLM_<PROVIDER>_API_KEY + LLM_<PROVIDER>_BASE_URL pair and fetches that provider's model list:

export LLM_OPENROUTER_API_KEY=sk-...
export LLM_OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
crow-cli init --yes

Either way, init writes:

  • ~/.agents/crow/config.yaml — providers, models, mcpServers, agent_servers
  • ~/.agents/crow/.env — the keys, referenced from the config as ${VAR}
  • ~/.agents/crow/compose.yaml + searxng/settings.yml — the backing services
  • ~/.agents/crow/prompts/system_prompt.jinja2 — the system prompt, yours to edit

No env vars to export? Edit config.yaml and .env by hand: one provider (base_url, api_key: ${VAR}) and one model (provider + model id) is enough.

3. Start the services

cd ~/.agents/crow && docker compose up -d

SearXNG backs web_search — every agent should have it. PostgreSQL and RustFS are optional.

4. Verify

crow-cli models            # configured models; the first is the default
crow-cli run "say hello"   # one prompt in, response out

Optional: the clients

crow-cli install crow

Builds the crow IDE (a from-source VS Code .deb) and the crow-agent TUI. Linux-only, and the first build is long; it needs node, bun, cargo, fakeroot and dpkg-dev, and checks for them before starting. Afterwards, run crow (desktop IDE), crow serve-web (the same IDE in a browser), or crow agent (TUI). Each client spawns and manages its own agent process automatically.

Full docs: https://crow-ai.dev/docs/installation/