Discover agents
In the interactive relay shell, run /discover to list the agent adapters
Agent Relay can find on the current machine:
/discoverA safe, read-only check any time you're unsure what's installed or which version of an agent CLI is on your PATH.
Synopsis
In the relay shell:
/discover [flags]From another terminal, for scripts and CI, agent-relay discover takes the same
arguments:
agent-relay discover [flags]Options
discover has no command-specific flags. It honors the root --json and
--quiet output flags.
Sample output
adapter alias version status
────────────── ─────── ───────────── ──────────
claude-code c 1.7.4 ready
codex x 0.12.0 ready
gemini-cli g — not installed
opencode o — readyThe alias column is the short name accepted by /use, /run,
agent-relay run, and other commands that take an agent name.
Examples
The basic listing is a slash command in the relay shell. The JSON and quiet
forms are most useful from a script, where agent-relay discover takes the same
flags.
/discoverPrints the formatted table above. Returns exit code 0 if at least
one adapter is ready.
Exit codes
| Code | Meaning |
|---|---|
0 | At least one adapter is ready. |
1 | No supported agents found. Install Claude Code, Codex, Gemini, or OpenCode and rerun. |