Skip to content

CLI reference

relaybay [--version] <command> [options]; without a command, serve runs. python -m relaybay is the same. relaybay <command> --help prints the same options.

Command What it does
serve Start the server (default command).
token Print the access token and how to connect Claude Code.
setup Connect Claude Code on this machine: hooks in user settings, MCP check.
doctor Diagnose the installation: versions, data folder, server, Claude Code.
demo Seed a demo workspace (acme-shop, demo-api) into a data directory.
import Bring a markdown setup (project briefs, task registry, task notes, memory notes) into relaybay. Prints the plan; writes nothing without --apply.
export Write documents, decisions, notes and the task registry back to the markdown layout. Prints what would change; writes nothing without --apply.
desktop Start the desktop program: tray icon, board window and the server (needs relaybay[desktop]); 'desktop config' shows or changes its settings.
hook Forward one hook event from stdin (command hook).

serve

Start the server (default command).

Option Value Meaning
--host HOST Bind address (default 127.0.0.1).
--port PORT Port (default 8765).
--home HOME Data directory (default: per-user data dir).
--reload Restart on code changes (dev).
--claude-home CLAUDE_HOME Folder holding Claude Code's .claude/ and .claude.json for the Integrations page (default: your home directory).

token

Print the access token and how to connect Claude Code.

Option Value Meaning
--home HOME Data directory.
--rotate Generate a new token.

setup

Connect Claude Code on this machine: hooks in user settings, MCP check.

Option Value Meaning
--dry-run Print the plan, the diff and its hash; write nothing (default; with --remove: preview the removal).
--apply Write the plan (with a backup).
--remove Remove relaybay's hooks (with a backup).
--check Check the setup end to end.
--expect HASH With --apply/--remove: write only if the plan still has this hash (printed by the dry run). Without it, the check covers only changes made during this run.
--json With --check: print the results as JSON.
--home HOME relaybay data directory.
--port PORT relaybay port (default 8765).
--claude-home CLAUDE_HOME Folder holding .claude/settings.json and .claude.json (default: your home).
--mode command\|http Hook type: command (default; a small forwarder, silent when relaybay is down) or http (Claude Code posts itself; needs RELAYBAY_TOKEN in its environment). Default: command.
--wake Also add the opt-in wake-up hook (command mode): an asyncRewake hook that wakes an idle session when an owner comment arrives (Claude Code 2.1.309 or later).
--no-wake Remove the wake-up hook.
--force-wake With --wake: install it although this Claude Code is older than 2.1.309 or its version is unknown (one that ignores asyncRewake would hold every turn's end).

doctor

Diagnose the installation: versions, data folder, server, Claude Code.

Option Value Meaning
--json Print the results as JSON.
--home HOME relaybay data directory.
--port PORT relaybay port (default 8765).
--claude-home CLAUDE_HOME Folder holding .claude/settings.json and .claude.json (default: your home).

demo

Seed a demo workspace (acme-shop, demo-api) into a data directory.

Option Value Meaning
--home HOME Data directory for the demo (required). Required.
--force If the folder already holds a board, rename its database aside and start over.

import

Bring a markdown setup (project briefs, task registry, task notes, memory notes) into relaybay. Prints the plan; writes nothing without --apply.

Option Value Meaning
root ROOT The folder holding the layout (optional with --backlog).
--apply Write the plan (default: a dry run, nothing written).
--expect HASH With --apply: write only if the plan still has this hash (printed by the dry run). Without it, you write whatever the plan is at that moment.
--overwrite Take the file's text over a target changed on the board since its import (as a new version; old versions stay).
--aliases FILE JSON file with more column, stage, heading and backlog decision names, in any language.
--retro-project SLUG The project whose document 'retro' receives retro.md (skipped without it).
--backlog FILE A backlog or bug registry under another name, read in place of backlog.md.
--project SLUG Read only the backlog rows of this project (slug or name); a row that matches an open item of it already on the board is recorded against that item, not created.
--match LINE=N With --backlog and --project, repeatable: the row on line LINE of the registry is item N of the project (over the automatic match); LINE=new creates it as a new item.
--home HOME relaybay data directory.

export

Write documents, decisions, notes and the task registry back to the markdown layout. Prints what would change; writes nothing without --apply.

Option Value Meaning
root ROOT The folder to write to. Required.
--apply Write the files (default: a dry run).
--force Also overwrite or remove files changed by hand since the last export.
--aliases FILE The aliases of the import: a hand-written registry that says the same stays as it is.
--home HOME relaybay data directory.

desktop

Start the desktop program: tray icon, board window and the server (needs relaybay[desktop]); 'desktop config' shows or changes its settings.

Option Value Meaning
--background Start with the window hidden, only the tray icon (the autostart entry uses it).
--quit Ask the running program to quit (stops its server); exit 1 when none answers.

desktop config

Show desktop.toml (data folder, server, autostart) or change it with the options.

Option Value Meaning
--home HOME Data folder for the program and the CLI when neither --home nor RELAYBAY_HOME is given; '-' clears it. Moves nothing.
--mode embedded\|external Server mode.
--url URL Base URL of the external server ('-' clears it).
--token-file TOKEN_FILE File holding the external server's token; copied to external-token (0600) beside desktop.toml.
--autostart on\|off Start the program at login.

hook

Forward one hook event from stdin (command hook).

Option Value Meaning
--home HOME Data directory.
--port PORT Port (default 8765).

Exit codes

Code Meaning
0 Success.
1 A failed setup write, a failed check item (setup --check, doctor), demo refused a data folder that already holds a board, or import / export has an item refused, in conflict or failed; desktop --quit found no running program, or a second desktop found one that holds the lock but does not answer.
2 Invalid settings or arguments; desktop without the desktop extra.

relaybay hook always exits 0, so a hook never fails a Claude Code session.