Quickstart
Get a complete interactive Relay session working in five steps. Total time: about three minutes from a fresh install to your first handoff-ready session.
Wire local hooks and fallback order
Inside any git repo, let Relay install its local daemon, supported hooks, and automatic fallback order. This is idempotent.
terminalrelay installIf Relay detects at least two supported agents, it persists a handoff order such as
claude -> codex. Override it withrelay install --handoff-order claude codex gemini opencodeif you want a different chain.Start the interactive layer
Run the no-args
relaycommand. The first launch may ask which default agent to use and whether to wrap the shell in tmux.terminalrelayInside the shell, use
/use claude,/use codex,/use gemini, or/use opencodeto pick the active agent. Bare text goes to that agent and is persisted into the current Relay session.Send your first task
Type a normal prompt without a slash:
textFix the failing auth testsRelay forwards it to the active agent, streams the response, and stores the prompt/output artifacts under
.agent-relay/sessions/.Switch or hand off
If you want to switch manually, use
/use:text/use codexRelay prepares a handoff packet from the active session and starts the target with that context. If a configured hook reports a rate limit while the REPL is running, Relay can do the same handoff automatically using the configured fallback order.
Inspect sessions and cost
In the REPL, slash commands map to the same command logic as the scriptable CLI:
text/status /metricsOutput is local-first. Session artifacts live in the repo; REPL preferences live under
~/.config/relay/; daemon events and snapshots live under~/.relay/.
Next steps
Sessions
Understand the on-disk layout of .agent-relay/ and what each turn
artifact contains.
Handoffs
Read the resume-packet schema and learn how the next agent picks up mid-task.
Watch & Metrics
Stream live sessions and roll up token + cost across the chain.
Run workflow
Start with the interactive shell, then use scriptable commands when needed.