Installation
Agent Relay ships as a Python package on PyPI as agent-relay-tool and
requires Python 3.11 or newer. Pick the path that matches your setup
below — each one is a complete walkthrough from a fresh shell to working
relay and agent-relay commands.
macOS
Tested on macOS 12 Monterey and newer, both Intel and Apple Silicon.
Check your Python version
macOS ships with an older system Python. Confirm you have 3.11+ available (install via
brew install python@3.12if not).terminalpython3 --versionYou should see
Python 3.11.xor higher. If the system Python is older, install a newer one with Homebrew before continuing.Run the installer
The installer bootstraps
uvif it's missing, then installs Agent Relay into its own isolated environment and dropsrelayandagent-relayon your PATH.terminalcurl -fsSL https://agent-relay.dev/install.sh | shNo
sudois required — everything lands under~/.local/.Reload your shell
The installer appends
~/.local/binto your PATH in~/.zshrc. Either start a new terminal tab or source it manually:terminalsource ~/.zshrcVerify the install
terminalagent-relay --versionExpected output: a version line like
agent-relay 0.7.0.If `agent-relay: command not found`
The installer couldn't write to your shell config, or you're using a non-default shell (fish, nu, etc). Add the install directory to your PATH manually:
terminalecho 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
Post-install setup
After any install method, run this once from a repo where you use coding agents:
relay installThis wires supported local hooks, registers or starts the daemon, and tries to infer the automatic fallback order used after rate limits. Then start the interactive layer:
relayIf Relay cannot infer your preferred fallback chain, set it explicitly:
relay install --handoff-order claude codex geminiUpgrading
Each install path has its own upgrade command. Run whichever matches the path you used above.
# macOS / Linux
curl -fsSL https://agent-relay.dev/install.sh | sh# Windows
irm https://agent-relay.dev/install.ps1 | iexThe installer is idempotent — re-running it upgrades in place.
Uninstalling
Remove the binary and (optionally) the install directory:
# macOS / Linux
rm ~/.local/bin/agent-relay# Windows
Remove-Item "$env:USERPROFILE\.local\bin\agent-relay.exe"