AgentRail Docs
CLI Reference

Team & Runner

Sign in to a workspace, run the local worker, and open the console.

These commands are the core workflow: login links your machine to the AgentRail workspace, and runner is the local worker that claims and executes queued issues. See Dashboard & hosted runner for the bigger picture and setup steps.

login

login [--url BASE_URL]

Sign this machine into an AgentRail workspace via an OAuth device flow. Credentials are saved to ~/.agentrail/credentials.json. Use --url BASE_URL to point at a self-hosted server instead of the default.

Login is required for all CLI commands — the only exempt commands are login, logout, whoami, and --help.

agentrail login

logout

logout

Sign this machine out of its workspace.

agentrail logout

whoami

whoami

Show the logged-in workspace for this machine.

agentrail whoami

runner

runner [--idle SECONDS] [--once] [--concurrency N]

Run the local worker that executes queued issues — it polls the workspace queue, claims available work, and runs it on your machine with your own LLM keys.

FlagDescription
--idle SECONDSHow long to wait for work before idling out.
--onceProcess one batch, then exit.
--concurrency NNumber of issues to run in parallel.
agentrail runner --concurrency 2

console

console [--target DIR]

Open the interactive console.

agentrail console