Skip to content

Configuration

cadrei.conf is read as KEY=VALUE lines, never run.

Setting Default Meaning
PERMISSION_MODE default the permission mode of the members and your orchestrator
ORCHESTRATOR terminal (the first run sets tmux, or terminal when you press p) where cadrei opens your orchestrator: tmux or terminal. cadrei tmux on|off sets it.
MODEL, EFFORT none (Claude Code’s own) the members’ model and effort, unless a member’s file sets its own (see Models and effort)
ORCHESTRATOR_MODEL, ORCHESTRATOR_EFFORT none (Claude Code’s own) your orchestrator’s model and effort; MODEL and EFFORT don’t apply to it
MEMORY crew where your orchestrator keeps its memory: crew (in .memory/, so your backup carries it) or machine (in Claude Code’s own folder on this machine only). Say “keep my memory on this machine” to your orchestrator to switch.
FORMAT none (format 1) set by cadrei, not by you: a later cadrei that changes how a crew is laid out writes its number here, and an older one then only reads the crew (see Upgrading). Read only from the crew’s own cadrei.conf, never from .claude/local/

Settings for this machine only. A crew’s .claude/local/cadrei.conf, which git leaves out, wins over cadrei.conf on this machine. Today it’s used for ORCHESTRATOR, through cadrei tmux on|off --here, and it may set the model and effort keys and MEMORY for this machine too. MEMORY=machine there keeps this machine’s orchestrator out of the crew’s .memory/ and leaves that folder as it is for your other machines: nothing moves out of it, and nothing is committed. The orchestrator here keeps its own memory in Claude Code’s folder, starting from a copy of the crew’s notes that the next cadrei makes, once, and says so. A note already there with other text keeps its name, and the crew’s comes in beside it as <name>.from-crew.md. A MEMORY=crew there can’t undo a crew’s MEMORY=machine. Crews from 0.2.0 have no ORCHESTRATOR, so they keep opening in the terminal until you ask. An old ORCHESTRATOR_TMUX=1 still counts as tmux.

Keys cadrei doesn’t know, and lines that aren’t KEY=VALUE, are left as they are and ignored. cadrei --check lists them once.

Cross-session messages reach a member without your approval only when your orchestrator and the member run in the same permission-mode class; otherwise they wait for you in the member’s window.

Environment variables: CADREI_HOME (use another crew for one command), CADREI_PERMISSION_MODE (override the mode), CADREI_OFF=1 (a plain Claude Code chat, not an orchestrator), CADREI_TMUX_SOCKET (run sessions on a separate tmux server), NO_COLOR (no colors, plain marks), FORCE_COLOR=1 (colors even through a pipe, for recordings), and Claude Code’s own CLAUDE_CONFIG_DIR.

A switch such as CADREI_OFF is on when it’s set to anything but an empty value, so CADREI_OFF=0 turns it on too; leave it unset to turn it off. The other CADREI_* variables (CADREI_MEMBER, CADREI_ORCHESTRATOR, CADREI_OPENS_IN, CADREI_OPENED_FROM, CADREI_OPENED_PROJECT, and the ones the tests and development builds use) are cadrei’s own, set in the sessions it starts: don’t set them or rely on them. CADRE_PERSONA, which cadre 0.1.x’s sessions carry, is still read, and a release note will say when it goes.

Every cadrei checks the setup and stays silent unless something is wrong. Quick checks run every time; full checks run on the first run, after an upgrade, when a quick check fails, and on cadrei --check. They cover Claude Code (installed, logged in, and new enough: below 2.1.295, a guard that hangs or times out lets the command go on to Claude Code’s own permission check, so cadrei warns you to update, here and each time it opens your orchestrator), tmux and git (and your git name and email), cadrei’s instructions link and the every-chat hook pointing at this program, the cadrei first on your PATH being this one, files at the top of a crew that Claude Code loads into your orchestrator (.claude/settings.json, .claude/settings.local.json, CLAUDE.md, CLAUDE.local.md, .mcp.json), each crew’s pre-push hook, and cadrei’s instructions (put back when something changed them). Missing projects show in cadrei ls and your orchestrator’s greeting instead. Leftovers from 0.1.x (the old hook, a skill link and a cadre link in ~/.local/bin, both into the old clone) are recognized. Each finding says what’s wrong (!) and how to fix it, a fixable one asks right away, and nothing outside cadrei’s own files is changed without your yes. cadrei --check ends with ✓ Everything looks good. (cadrei 0.2.2) when it is.