Skip to content

Set up your coding agent

One base URL. GLM-5.2-class models. Auto-routed to the cheapest model that won't fail your task.

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. Use stratacode/auto to let the router pick the cheapest model that can handle each turn.

Get your API key

The two values you need

Base URL

https://api.stratacode.ai/v1

Model

stratacode/auto — or pin one from the catalog.

Environment (works with most tools)

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

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’re billed at that model’s rate. See how routing works.

Get started See pricing