Services¶
crow's backing services run as Docker containers from a compose file that
crow-cli init writes into ~/.agents/crow. docker compose is the supervisor,
and it works identically on any machine with Docker.
init offers three services (each optional, each prompted for):
| service | what it is | default port |
|---|---|---|
searxng |
the search engine backing web_search / web_fetch |
2946 |
postgres |
PostgreSQL 17 — the shared session store, for one crow.db across machines |
5432 |
rustfs |
S3-compatible object storage for the image store (falls back to filesystem when down) | 9000 / 9001 |
SearXNG is the one you want for search. crow-cli ships a maintained SearXNG
configuration (stored as Python so it survives a PyInstaller freeze), so search
works out of the box without hand-editing settings. init writes
compose.yaml and searxng/settings.yml; it does not start them — docker compose
up -d does.
Memory: SQLite by default, PostgreSQL when you want one store¶
The session store is SQLite at ~/.agents/crow/crow.db unless you point db_uri
somewhere else. Skip PostgreSQL in init and you get SQLite, which needs nothing.
Accept it and init writes a db_uri like:
postgresql+psycopg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:${POSTGRES_PORT}/${POSTGRES_DB}
One PostgreSQL store means every machine and every agent reads and writes the same
sessions — the fleet shares memory by construction. Images are content-addressed
files beside the database (or in RustFS / any S3 when image_store is set),
hydrated to base64 only when actually sent to the model.
The wake bus and timers¶
redis_url is the wake bus: redis pub/sub. Whoever finishes a task publishes a
poke here so a parked agent gets its turn back; the mailbox rows in the store are
the truth, never the poke. Empty redis_url disables the bus and degrades wake
latency to a backstop poll.
crow-cli timers is the worker that fires scheduled wakes. A timer is an ordinary
task row with a celery job behind it; when it fires it closes the row, lands the
delivery in the owner's mailbox, and publishes the wake — exactly like a subagent
finishing. It needs redis_url set (it refuses to start against celery's default
broker, which would otherwise retry forever). Run it alongside the agent if you
use scheduled wakes:
MCP servers as services¶
mcpServers entries with transport: http are connected to, not spawned — you run
them yourself (as a container, a process, whatever). stdio entries are spawned per
session. The agent has no builtin tool supply: the client hands it these servers at
session/new. See Configuration for the mcpServers and
agent_servers blocks.