API

Sign in to manage your API keys.

Sign in

Use it from your agent

GPU Router is an MCP server. Claude Code, Codex and Cursor can call it with your API key.

  1. Get a key

    Sign in, then name a key on this page, select Create key and copy it. The key is shown once.

  2. Add it to your agent

    Claude Code: run in a terminal
    claude mcp add --transport http gpu-router https://gpu-router.com/mcp --header "Authorization: Bearer <your key>"

    Then start claude and type /mcp: gpu-router shows as connected. Added it before? Run claude mcp remove gpu-router first.

    Codex: run
    codex mcp add gpu-router --url https://gpu-router.com/mcp --bearer-token-env-var GPU_ROUTER_API_KEY

    and in the shell that starts codex: export GPU_ROUTER_API_KEY=<your key>

    Cursor: add to .cursor/mcp.json
    {
      "mcpServers": {
        "gpu-router": {
          "url": "https://gpu-router.com/mcp",
          "headers": {"Authorization": "Bearer <your key>"}
        }
      }
    }
  3. Try it

    • list gpu-router samplesfree
    • compare GPU prices for H100free
    • route the lora sample with a $1 budgetfree, picks a GPU only
    • run the lora sample with a $1 budget and waita real run on your Modal account. Connect Modal under Connections first, otherwise it runs simulated

Everything the agent does appears under Jobs, Admin and Overview for the same account.