Configuration¶
Everything lives in ~/.agents/crow/config.yaml (override the directory with
--config-dir/-d on any command). Secrets go in ~/.agents/crow/.env; any
${VAR} in the yaml is expanded from the environment at load time.
A complete annotated example:
# ---------------------------------------------------------------- LLMs --
# providers: OpenAI-compatible base URLs + keys. ${VAR} reads from .env/shell.
providers:
openrouter:
base_url: https://openrouter.ai/api/v1
api_key: ${OPENROUTER_API_KEY}
llamacpp:
base_url: http://lan-host:1234/v1
api_key: ${LLAMACPP_API_KEY}
# models: names YOU pick, mapped to a provider's model id. The FIRST model is
# the default. modality lists what the model can take as input (omit = assume
# text+image); fallbacks is the ordered chain used when a model can't handle the
# modalities present in the conversation.
models:
claude-sonnet:
provider: openrouter
model: anthropic/claude-sonnet-4
local-qwen:
provider: llamacpp
model: qwen3-coder
modality: [text] # text-only; image blocks are routed around it
fallbacks: [claude-sonnet] # if this model can't take the attachment
max_compact_tokens: 32000 # local models usually want a lower ceiling
# A reasoning model: reasoning_effort replaces temperature and the sampling
# knobs (reasoning models reject those). Values: none, minimal, low, medium,
# high, xhigh, max.
# gpt-5:
# provider: openrouter
# model: openai/gpt-5
# reasoning_effort: medium
# ---------------------------------------------------------------- MCP --
# mcpServers: the tool supply the CLIENT hands the agent at session/new. The
# agent has no builtin tools — empty or absent means a session runs with zero
# tools. crow-cli init writes the crow-mcp entry, which is why a fresh install
# has tools at all. stdio servers are spawned per session; http servers are
# connected to (run them yourself).
mcpServers:
crow-mcp:
transport: stdio
command: crow-cli
args: [mcp]
# ------------------------------------------------------- agent registry --
# agent_servers: named agents a client can launch. Every entry is a command,
# honored exactly as written; the TOP entry is what a bare `crow-cli run`
# drives. `protocol` is optional — leave it out and the client asks the agent
# at initialize. An entry may carry its own mcpServers, which REPLACES the
# global supply for that agent only.
agent_servers:
crow-cli:
protocol: acp2
command: uv
args: ["--project", "~/.agents/crow/src/crow-cli", "run", "crow-cli", "acp2"]
mcpServers:
crow-mcp2:
transport: stdio
command: crow-cli
args: [mcp2]
# ------------------------------------------------------------- memory --
# db_uri: the shared session store. Empty = SQLite at ~/.agents/crow/crow.db.
# Point it at PostgreSQL for one store shared across machines (see services.md).
db_uri: ""
# db_uri: postgresql+psycopg://crow:crow@127.0.0.1:5432/crow
# image_store: optional S3 block (endpoint/bucket/access_key/secret_key). When
# present and reachable, images go to S3; otherwise they are content-addressed
# files beside the database. Empty = filesystem.
image_store: {}
# redis_url: the wake bus (redis pub/sub). Whoever finishes a task publishes a
# poke here so a parked agent gets its turn back. Empty disables the bus and
# degrades wake latency to a backstop poll — the mailbox rows in the store are
# the truth, never the poke. Also the broker for `crow-cli timers`.
redis_url: ""
# redis_url: redis://127.0.0.1:6379/0
# ------------------------------------------------------ agent behavior --
skills_dir: ~/.agents/skills # scanned at session creation
system_prompt_path: ~/.agents/crow/prompts/system_prompt.jinja2
MAX_COMPACT_TOKENS: 190000 # compaction threshold
MAX_TOKENS: 38192 # one model call's completion cap
max_retries_per_step: 3 # react-loop retries per step
parallel_tool_calls: false
# goal: ceilings on a /goal continuation loop — how many turns it may start by
# itself (max_turns) and an optional token ceiling (max_tokens).
goal:
max_turns: 25
chunk_log: false # write every raw chunk to JSONL (debugging)
Precedence and gotchas¶
- First model is the default.
crow-cli modelslists them;run -m/acp -moverrides per invocation. A typo in-mfails before anything spawns — it does not quietly fall back to the first model. - The top
agent_serversentry is the default agent.crow-cli agentslists them;run -a NAMEdrives one. crow never substitutes its own agent for a configured one. ${VAR}expansion applies to the whole file; unset variables expand to empty and produce a startup warning.modalitydefaults to[text, image]— crow assumes vision-capable until proven otherwise. Mark a text-only model[text]and give it afallbackschain so attachments route to a model that can take them. Valid entries:text,image,audio,video.reasoning_effortis XOR with sampling. Set it and temperature / top_p / top_k / min_p / presence_penalty / repetition_penalty are omitted entirely (reasoning models reject them).system_prompt_pathis written bycrow-cli init. Delete the key to fall back to the built-in prompt;-p/--system-prompt-pathonacpwins over both.no_default_tool(oracp2 --no-default-tool) keeps config'smcpServersout of every session, so the session's tools are exactly the ones its client sent insession/new.