@onrelay/cli
v0.1.16
Published
CLI installer and auth flow for Relay MCP and project memory
Readme
Relay CLI
Relay CLI installs and authenticates Relay MCP for local coding tools.
Install
npm install -g @onrelay/cli
relay installCommands
relay install [--api-base URL] [--no-browser]
relay auth login [--api-base URL] [--no-browser]
relay auth logout
relay auth status
relay brief [projectId] [--profile KEY] [--kind fresh_chat_bootstrap|quick_continuity]
relay status [projectId]
relay projects list
relay projects switch <project-id-or-slug>
relay uninstallBrowserless auth
If you are on SSH, inside a remote dev box, or on a machine without a GUI, use:
relay auth login --no-browserRelay prints the approval URL and session code so you can open it manually on another device.
Supported setup flow
- Detects supported MCP client config locations
- Writes Relay MCP config using each client's native config format
- Installs client setup only where the client exposes an official support surface
- Adds Claude Code and Gemini CLI hooks where supported
- Saves Relay auth in
~/.relay/mcp.json
Uninstall
relay uninstallThis removes the relay MCP entry from detected tool config files, removes client-specific Relay setup where installed, and clears local CLI credentials.
Troubleshooting
- macOS/Linux: make sure your global npm bin path is on
PATH - Windows: restart the shell after global install if
relayis not found - Remote shells / CI: use
--no-browser - Custom Relay host: use
--api-base https://your-relay-host
Release
Local dry run:
pnpm release:cli:dry-runPublish:
pnpm release:cliIf you publish manually, run pnpm release:dry-run first and bump the package version intentionally.
