Environment variables
The variables kebbie reads, the ones it sets for the commands it runs, and how to run it without touching your real state.
Read by kebbie
| Variable | Default | What it does |
|---|---|---|
KEBBIE_CONFIG |
$XDG_CONFIG_HOME/kebbie/config.toml, else ~/.config/kebbie/config.toml |
The machine config. The local backlog/ folder is read next to it. |
KEBBIE_REPOS_DIR |
$XDG_CONFIG_HOME/kebbie/repos, else ~/.config/kebbie/repos |
The folder of repo configs. |
KEBBIE_PROFILES_DIR |
$XDG_CONFIG_HOME/kebbie/profiles, else ~/.config/kebbie/profiles |
The folder of profiles. |
KEBBIE_STATE_DIR |
$XDG_STATE_HOME/kebbie, else ~/.local/state/kebbie |
The state directory. Point it at a temp directory for a throwaway run. |
KEBBIE_REPO_DIRS |
~/projects:~/personal:~/src:~/code |
Colon-separated folders where start --repo looks for checkouts, in them or one level down. |
KEBBIE_LEAD_DIR |
lead in the state directory |
The lead Claude's working directory. |
KEBBIE_BIN |
~/.local/share/kebbie/current/target/release/kebbie |
The binary the sidebar sync runs, and kebbie's skills in a session kebbie did not start. The lead's and the task's roles, and the skills they run, name the binary that starts them by its absolute path, the one their allow rules match. |
KEBBIE_CLAUDE_BIN |
claude |
The Claude Code binary kebbie setup runs to install kebbie's plugin and the vault plugin. |
KEBBIE_GH_BIN |
gh |
The GitHub CLI kebbie watches CI with. |
GH_HOST |
none | A GitHub Enterprise host whose remotes kebbie watches CI for, besides github.com. |
KEBBIE_RELEASES_URL |
https://github.com/<owner>/<repo>/releases/download for the install's GitHub origin |
Where a release's prebuilt binaries are downloaded from. |
KEBBIE_CHANNEL |
update.channel |
Read by scripts/build.sh: release never builds from source. |
KEBBIE_KEEP_BUILDS |
unset | Read by scripts/release.sh: 1 keeps the build output under target/ after a release. |
KEBBIE_VAULT_BIN |
none | A vault command that stands in for vault.command, for tests. |
KEBBIE_IMAGES |
detected | How the board draws images such as a sign-off card's screenshots: kitty, sixel, iterm2, halfblocks or off. |
KEBBIE_QR |
detected | How the hub's QR codes are drawn: octant or halfblock. |
KEBBIE_HUB_DEV |
unset | Use the dev hub at KEBBIE_HUB_DEV_URL instead of [hub] url. |
KEBBIE_HUB_DEV_URL |
http://localhost:8470 |
The dev hub's address while KEBBIE_HUB_DEV is set; plain http only on this machine. |
HERDR_BIN_PATH |
herdr |
The herdr binary. false makes kebbie reach no herdr at all. |
CLAUDE_CONFIG_DIR |
~/.claude |
Where kebbie reads Claude Code's installed plugins and their settings. |
CODEX_HOME |
~/.codex |
Codex's home: where kebbie setup codex installs kebbie's plugin, and where kebbie reads a Codex task's session files and the folders Codex trusts. |
XDG_CONFIG_HOME |
~/.config |
Base for the config files. |
XDG_STATE_HOME |
~/.local/state |
Base for the state directory. |
XDG_DATA_HOME |
~/.local/share |
Where herdr's startup writes the current link. |
KEBBIE_LEAD_DIR: kebbie moves the lead's chat pane there before each start, as Claude Code never remembers trust for the home folder.
KEBBIE_IMAGES:
kitty,sixeloriterm2use that graphics protocol.halfblocksdraws a preview in text cells without querying the terminal.offshows their paths instead.- Detected, it asks the terminal when the first image is about to show. Inside herdr (
TERM_PROGRAM=herdr) it asks nothing and uses Kitty, and the board not on a terminal shows paths.
KEBBIE_QR draws in the terminal's own colours, with the glyphs as the light modules: octant in octant blocks, two modules across and four down a character, halfblock in half blocks, one across and two down. Detected, it is octant in these terminals and halfblock anywhere else:
- Ghostty:
GHOSTTY_RESOURCES_DIRset, as inside herdr in Ghostty,TERM_PROGRAM=ghostty, orTERM=xterm-ghostty, which SSH carries to the other machine; - kitty:
KITTY_WINDOW_IDset orTERM=xterm-kitty; - WezTerm:
WEZTERM_PANEset orTERM_PROGRAM=WezTerm.
KEBBIE_HUB_DEV, set to anything but 0 or false:
- Every
kebbie hubcommand and the board'sHwindow use the dev hub, with a separate identity inhub-dev/in the state directory.[hub] urlandhub/are neither read nor written. kebbie hub status, theHwindow and the connect card saydev hub · localhost:8470.- The keeper posts the board to each hub this machine is connected to,
hub/andhub-dev/alike, whether it was started with the variable or not.
XDG_DATA_HOME: kebbie reads the current link under ~/.local/share, so kebbie doctor warns when this is set elsewhere.
The vault index is located from the vault plugin's options, or from VAULT_PATH, S3_ENDPOINT, S3_BUCKET, S3_PREFIX and VAULT_CACHE_DIR as notes-vault-mcp takes them.
Set by kebbie
For notify.command:
| Variable | Value |
|---|---|
KEBBIE_EVENT |
needs-you, ready, question, summary, ci-failed, ci-green, api-error, routine-findings, routine-failed or device |
KEBBIE_TASK |
The task's name |
KEBBIE_REPO |
The task's repo |
KEBBIE_TEXT |
The notification's one line |
For every command a Codex task runs:
| Variable | Value |
|---|---|
KEBBIE_ADDRESS |
The task's address, <task>@<repo> |
GIT_CONFIG_COUNT, GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> |
The push block: url.kebbie-blocks-push://.pushInsteadOf for every URL with protocol.kebbie-blocks-push.allow = never, so git refuses the push before it starts ssh or any helper, and rules that keep a local path (/, ./, ../) or a file:// URL as it is, so a push to a repo on the disk, such as one a test makes, goes through |
TMPDIR |
The task's temp folder, /tmp/kebbie-<uid>/<worktree>-<hash>, short enough for the Unix sockets tools such as headless Chrome make in it |
KUBECONFIG |
The profile's sandbox.kubeconfig, when it names one. A Claude task gets it in its settings' env too. |
For a Claude task's build, run through the build guard:
| Variable | Value |
|---|---|
PATH |
The guard's folder first, build-guard in the state directory, with one script for each program in builds.commands |
KEBBIE_BUILD_SLOT |
The task's address, while its build holds a slot, so a build a build runs takes no second one |
RUSTC_WRAPPER |
The sccache on PATH, for cargo, when neither RUSTC_WRAPPER nor a cargo config sets a wrapper |
For worktree.dev_server and worktree.dev_worker:
| Variable | Value |
|---|---|
PORT |
The worktree's port: PORT in its .env, else the port in its setup note. Unset when neither has one. |
Internal
KEBBIE_BOARD_STATE, KEBBIE_PUSH_TOKEN and KEBBIE_REVIEWER_BIN pass state between kebbie's own processes. Never set them.
A throwaway run
To run kebbie without touching your real state or herdr:
KEBBIE_STATE_DIR=$(mktemp -d) HERDR_BIN_PATH=false kebbie status