RelayRouterRelayRouter
HomeModelsPricingDocsGuides
Get API Key →

Docs / Integrations / Cline

Cline and Roo Code with RelayRouter

Cline and its fork Roo Code are VS Code coding agents that accept any OpenAI-compatible or Anthropic-compatible endpoint. RelayRouter offers both, so you can choose the provider type that matches the group your key belongs to.

#Option A: OpenAI Compatible provider

FieldValue
API ProviderOpenAI Compatible
Base URLhttps://relayrouter.io/v1
API KeyA RelayRouter key for an OpenAI-protocol group
Model IDExact id from the models page, for example gpt-6-astra

#Option B: Anthropic provider with a custom base URL

FieldValue
API ProviderAnthropic
Use custom base URLhttps://relayrouter.io
Anthropic API KeyA RelayRouter key for a Claude group
Modelclaude-sonnet-4-6, claude-opus-5-5 or any Claude id in the group
Prompt caching and extended thinking toggles in Cline are passed through unchanged. The Claude groups on the models page differ in rate; the group you pick when creating the key decides the price.

#Verify the key

terminalbash
curl https://relayrouter.io/v1/chat/completions \
  -H "Authorization: Bearer sk-your-relayrouter-key" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-4-6","messages":[{"role":"user","content":"ping"}]}'

#Troubleshooting

SymptomFix
401Wrong or disabled key, or empty balance
404Model not in the key's group, or the provider type does not match the group's protocol
Context window errorsSet the model's context size in Cline to the value your model supports; long tasks are cheaper on a Fast group