Skip to content

For Agents

Point Cline, Roo, Kilo, OpenCode, Claude Code, or any OpenAI-compatible tool at StrataCode. One base URL, GLM-5.2-class models, auto-routed.

Point your harness at one URL

StrataCode speaks the OpenAI API. Any tool that lets you set a base URL and an API key works — you keep your workflow and swap only where the tokens come from. Two environment variables; nothing else changes.

The two values you need

Base URL

https://api.stratacode.ai/v1

Model

stratacode/auto — or pin one from the catalogue.

shell
export OPENAI_BASE_URL="https://api.stratacode.ai/v1"
export OPENAI_API_KEY="sk_your_key_here"

opencode --model stratacode/auto

Per-tool setup

In the provider settings, choose OpenAI Compatible and set:

Base URL: https://api.stratacode.ai/v1
API Key: sk_your_key_here
Model ID: stratacode/auto

Why auto

stratacode/auto scores each request and routes simple turns to a cheaper model, hard turns to the full model, and escalates automatically if a cheap answer looks incomplete. The response tells you which model actually answered, and you are billed at that model’s rate.

  • Pin a model — pass any id from the catalogue instead of auto.
  • Streaming, tools and JSON mode — all supported, unchanged.
  • Billed once — at the rate of the model that answered.