Codex CLI
~/.codex/config.toml
[providers.jatevo]
type = "openai"
base_url = "https://2.lb.jatevo.ai/backend-api/codex"
api_key = "sk-clb-..."Your sk-clb-… key works as a standard Bearer token against Jatevo's compatible /v1 surface. These examples use https://2.lb.jatevo.ai; if the gateway moves to jatevo.ai, only the host changes.
Chat completions endpoint for compatible clients (streaming supported).
Responses endpoint for stateful model sessions.
List models available to your key (free, no quota cost).
Codex CLI compatibility endpoint.
~/.codex/config.toml
[providers.jatevo]
type = "openai"
base_url = "https://2.lb.jatevo.ai/backend-api/codex"
api_key = "sk-clb-..."~/.config/opencode/opencode.json
{
"providers": {
"jatevo": {
"type": "openai",
"base_url": "https://2.lb.jatevo.ai/v1",
"api_key": "sk-clb-..."
}
}
}request.ts
const response = await fetch("https://2.lb.jatevo.ai/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer sk-clb-...",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "auto",
messages: [{ role: "user", content: "ping" }]
})
});
console.log(await response.json());shell
curl https://2.lb.jatevo.ai/v1/chat/completions \
-H "Authorization: Bearer sk-clb-..." \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"messages": [{"role": "user", "content": "ping"}]
}'