Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
CLICommands

orl mcp serve

Serve OpenRelay API tools over MCP stdio, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl mcp serve [flags]

Speaks the Model Context Protocol on stdin/stdout so agent clients (Claude Code, Claude Desktop) can call the OpenRelay API as tools. The default exposure is a curated core set; add groups with --toolset (see orl --help for group names) or expose everything with --all. A tool that creates or grows a billable resource (cost class resource: vms create, pods create, a deposit, ...) is hidden from every toolset until --allow-spend; a tool billed per call (cost class metered: chat, messages, embeddings, decisions, batches) stays capped at --max-cost either way. The API key and organization resolve exactly like the rest of the CLI (run orl auth login first). Remote HTTP transport for hosted agents is a separate, future increment.

Flags

FlagTypeRequired
--allboolnoexpose every available tool regardless of toolset
--allow-spendboolnoalso expose tools that create or grow a billable resource (cost class resource), uncapped
--max-costfloat64noper-call cost cap in dollars on tools billed per call (cost class metered: chat, messages, embeddings, decisions, batches_create); a call may lower it, never raise it (default: ORL_MAX_COST_USD, else 1)
--read-onlyboolnoexpose only read tools (GET operations)
--toolsetstringSlicenoexpose an additional tool group (repeatable or comma separated)

On this page