API, CLI, and MCP.
Start and drive sessions from scripts, CI, or another agent.
REST API
Everything you do with a session in the app, you can do over HTTPS at /api/v1: start a session on a repository or pull request, send it messages and images, stream what it does, read each run's result and tokens, and pause, archive, or delete it. The OpenAPI document is at /api/v1/openapi.json.
- Create personal keys in Settings → Developer, and org keys in Settings → Org → Developer (admins only). A key is shown once and expires after 30 days to a year.
- Send it as
Authorization: Bearer <key>, or as Basic auth with the key as the user name. - Each key can make 120 calls and start 10 sessions per minute.
CLI
npx outrunner@latest signs you in, connects your agents, and drives sessions from your terminal. Every command takes --json and --org, and OUTRUNNER_API_KEY works in place of signing in, so it fits in CI.
- Account: login, logout, whoami, claude, codex-auth, sandbox connect gcp.
- Sessions: list, get, create (with --repo, --model, --agent, --effort, --size, --plan, --branch, --wait), send, read, wait, delete.
- triage adds an item to triage.
- wait exits with 0 when the turn is done, 3 when the agent needs input, and 4 on timeout.
outrunner create --repo acme/web --model sonnet "Fix the flaky checkout test and open a PR" --wait
outrunner send <id> "Also add a test for it." --waitMCP server
Connect another agent to Outrunner’s MCP server at /api/mcp with an API key. Its tools create sessions, send messages and images, read conversations, wait for turns, list runs and their tokens, list artifacts and models, answer questions, provide secrets, approve plans, switch models, read changes, and archive sessions.
claude mcp add --transport http outrunner https://app.outrunner.sh/api/mcp --header "Authorization: Bearer $OUTRUNNER_API_KEY"Something unclear? Let us know ↗