Router One
Router One

Router One Documentation

A concise guide from account setup to calling the OpenAI-compatible API gateway.

Get started

  1. 1

    Create an account

    Open the console and create a Router One account.

    Sign up
  2. 2

    Create an API key

    Generate a project key in Dashboard -> API Keys.

    API Keys
  3. 3

    Send your first request

    Use curl, the OpenAI SDK, or the Anthropic SDK with Authorization: Bearer <key>.

    Quickstart

One-click setup (recommended)

One command installs the CLI, writes the gateway config, and verifies your key with a 1-token test request. Existing config files are backed up automatically.

The key is only inserted into the command locally in your browser; it is never uploaded.

bash
curl -fsSL https://router.one/install/claude-code.sh | bash -s -- sk-your-api-key

Config takes effect immediately — run claude to start.

Review the script before running: /install/claude-code.sh · /install/claude-code.ps1

Example request

bash
curl https://api.router.one/v1/chat/completions \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

What is Router One?

Router One is a unified LLM API gateway. It gives your application one OpenAI-compatible endpoint for model calls, smart routing, fallback, budgets, and request-level observability.

Core value

Use one API key and one base URL for common LLM tools and models. Router One handles provider differences, cost tracking, and routing behind the gateway.

Main API entry points:

text
OpenAI-compatible API / Codex CLI / OpenClaw / Hermes Agent:
https://api.router.one/v1

Claude Code / Anthropic-compatible endpoint:
https://api.router.one

API reference

Guides

Common error codes

Common error codes
CodeMeaningWhat to do
401Invalid or missing API keyCheck the Authorization header.
402Insufficient balanceTop up or adjust the budget.
429Rate limit exceededCheck Dashboard -> Logs, then reduce request rate or contact support to raise limits.
500Internal server errorRetry shortly; contact support if it persists.