The cloud subcommands handle authentication, sandbox provider setup, remote workflow execution, and syncing code changes back to your machine.
Log in and inspect account state
agent-relay cloud login
agent-relay cloud whoami
agent-relay cloud logoutloginopens the browser-based cloud auth flow.whoamiprints the current user, organization, workspace, and scopes.logoutclears stored cloud credentials.
Connect a provider
agent-relay cloud connect claude --language typescriptThis command opens an interactive SSH-backed auth session for a provider sandbox. It requires a real TTY. The CLI also accepts provider aliases:
claudemaps toanthropiccodexmaps toopenaigeminimaps togoogle
Run a workflow remotely
agent-relay cloud run relay.yaml --sync-codeUseful follow-up commands:
agent-relay cloud status <run-id>
agent-relay cloud logs <run-id> --follow
agent-relay cloud sync <run-id>statusfetches the latest state for a run.logsstreams workflow or per-agent output.syncdownloads the generated patch and applies it locally.
Inspect a patch before applying it
agent-relay cloud sync <run-id> --dry-runUse --dir <path> if the patch should apply somewhere other than the current directory.
Deprecated alias
The top-level agent-relay connect <provider> command is deprecated. Use agent-relay cloud connect <provider> instead.