OpenAI-Compatible IDEs (Cline, Roo, Continue)
Configure Cline, Roo Code, Continue, and any OpenAI-compatible IDE to use the OpenAI API through LLMsRelay's /v1/chat/completions endpoint.
LLMsRelay is an independently operated API gateway. It is not affiliated with or endorsed by Anthropic, PBC. Product and model names are used only to describe compatibility.
Base URL: https://api.llmsrelay.com/v1. Endpoint: POST /v1/chat/completions. API key: sk-cs4-* (Codex group). Models: latest OpenAI models (e.g. gpt-5.5).
When to use this guide
Most IDE assistants speak the OpenAI /v1/chat/completions format and let you set a custom base URL. That's the path for Cline, Roo Code, Continue, and similar tools.
Using OpenAI's own Codex CLI or the Codex extension? Those use the Responses API — see the Codex CLI & Extension guide instead.
Prerequisites
- An
sk-cs4-…key from the Codex group in the dashboard. - For Claude/Anthropic models, create or select a separate key in Basic or Pro.
Cline
- Open Cline settings → API Provider.
- Choose OpenAI Compatible.
- Base URL:
https://api.llmsrelay.com/v1 - API Key: your
sk-cs4-…key. - Model ID:
gpt-5.5
Roo Code
- Settings → Providers → OpenAI Compatible.
- Base URL:
https://api.llmsrelay.com/v1 - API Key: your
sk-cs4-…key. - Model:
gpt-5.5
Continue
Edit ~/.continue/config.json:
~/.continue/config.jsonjson
{
"models": [
{
"title": "OpenAI (LLMsRelay)",
"provider": "openai",
"model": "gpt-5.5",
"apiKey": "sk-cs4-your-key",
"apiBase": "https://api.llmsrelay.com/v1"
}
]
}Direct SDK usage
Python (openai SDK)
pythonpython
from openai import OpenAI
client = OpenAI(
api_key="sk-cs4-your-key",
base_url="https://api.llmsrelay.com/v1",
)
resp = client.chat.completions.create(
model="gpt-5.5",
messages=[{"role": "user", "content": "Write a Python quicksort."}],
)
print(resp.choices[0].message.content)cURL
bashbash
curl https://api.llmsrelay.com/v1/chat/completions \
-H "Authorization: Bearer sk-cs4-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hello in 3 words"}],
"stream": true
}'Notes
- Use
GET /v1/modelswith your key to enumerate available OpenAI model ids. /v1/messages(Anthropic format) is not used with Codex-group keys — stick to the OpenAI endpoints.- OpenAI usage is billed against your LLMsRelay credits at the published token rates.