Getting started
LunaRoute is an LLM gateway. You send OpenAI-, Anthropic-, or Responses-shaped requests to one endpoint and LunaRoute routes them to a model on our GPU fleet, or to your own provider key when you bring one.
There is no SDK to install for the basics — the API is HTTP.
1. Get an API key
Section titled “1. Get an API key”Create one in the dashboard. Keys are prefixed
lr_. Treat them as secrets; a key authenticates one organization (and,
optionally, one project).
2. Send a request
Section titled “2. Send a request”curl https://gw.lunaroute.com/v1/chat/completions \ -H "LUNAROUTE-API-KEY: $LUNAROUTE_API_KEY" \ -H "content-type: application/json" \ -d '{ "model": "glm-5.3", "messages": [{"role": "user", "content": "Say hello in one sentence."}] }'See Authentication for the header variants, and First request for OpenAI, Anthropic, and streaming examples.
3. Point your coding agent at it
Section titled “3. Point your coding agent at it”The @lunaroute/cli configures the coding agent you already use — Claude Code,
opencode, pi, Copilot CLI, or any OpenAI-compatible client — against LunaRoute
in one command:
npx @lunaroute/cli setup pi # or: claude-code | opencode | openclaw | hermes | copilot-cli | generic- Lanes & scheduling — concurrency caps, realtime vs background work, and what happens when you exceed them.
- Usage & billing — flat-rate plans, no metering.