Connect an agent
One command. Every agent.
It finds the agents you already have, writes their configs, and points them at Sideren. Your key stays on your machine.
npxsiderenOr set one up by hand: Claude Code · Codex CLI · opencode
- Claude Code
- Codex CLI
- Cursor
- opencode
- OpenClaw
- Hermes
- Goose
- Cline
- Aider
- Continue
- Windsurf
- Crush
- Qwen Code
- OpenHands
- Zed
- Kilo Code
01 / Claude Code
Claude Code
Claude Code speaks the Anthropic Messages dialect, and Sideren serves the catalog's models on it, with tools, streaming and thinking carried through. Four environment variables, or one command.
- ANTHROPIC_BASE_URL is the origin only. Do not add /v1: Claude Code adds /v1/messages itself.
- ANTHROPIC_MODEL takes any catalog id. ANTHROPIC_DEFAULT_HAIKU_MODEL is the fast model for quick helper calls.
- Still on your Anthropic account? Run /status to see which credential is active, and /logout once if Claude Code warns about two.
One command
npx sideren setup --tool claude-codeOr by hand
{ "env": { "ANTHROPIC_BASE_URL": "https://api.sideren.io", "ANTHROPIC_AUTH_TOKEN": "sdn_your_key", "ANTHROPIC_MODEL": "@sdn/glm-5.3", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "@sdn/glm-5.3-flash" }}export ANTHROPIC_BASE_URL=https://api.sideren.ioexport ANTHROPIC_AUTH_TOKEN=sdn_your_keyexport ANTHROPIC_MODEL="@sdn/glm-5.3"export ANTHROPIC_DEFAULT_HAIKU_MODEL="@sdn/glm-5.3-flash"02 / Codex CLI
Codex CLI
Codex talks the OpenAI Responses protocol. One provider block in config.toml points it at Sideren; the key lives in that block, so Codex Desktop and new terminals work without an environment variable.
- The base URL includes /v1, and wire_api is responses.
- Keep model and model_provider above the [model_providers.sideren] header: TOML puts every key after a header into that table.
- The model catalog file is needed too, so Codex knows each model's limits. The setup command writes it.
- Empty replies from a reasoning model? Raise max_output_tokens (4,000 or more): thinking spends from it first.
One command
npx sideren setup --tool codexOr by hand
model = "auto"model_provider = "sideren"model_catalog_json = "/home/you/.codex/model-catalogs/sideren.json" [model_providers.sideren]name = "Sideren"base_url = "https://api.sideren.io/v1"experimental_bearer_token = "sdn_your_key"requires_openai_auth = falsewire_api = "responses"03 / opencode
opencode
opencode speaks the OpenAI Chat Completions dialect, so Sideren is a provider like any other OpenAI-compatible one: the gateway, an sdn_ key, and catalog ids as model names.
- Put it in the project root, or in ~/.config/opencode/opencode.json for every project.
- Model keys must match catalog ids exactly.
- Check the values landed with opencode debug config. On a 401, register the key with opencode auth login, as "Other" with the id sideren.
One command
npx sideren setup --tool opencodeOr by hand
{ "$schema": "https://opencode.ai/config.json", "provider": { "sideren": { "npm": "@ai-sdk/openai-compatible", "name": "Sideren", "options": { "baseURL": "https://api.sideren.io/v1", "apiKey": "sdn_your_key" }, "models": { "@sdn/gpt-oss-120b": { "name": "Sideren fast" }, "@sdn/glm-5": { "name": "Sideren coding" } } } }, "model": "sideren/@sdn/gpt-oss-120b"}04 / Every other harness
The rest, one guide each.
The setup command writes these too. Each guide has the config by hand, where it lives, and what to check.
05 / Check it works
One key for all of them.
The same sdn_ key runs every harness above, on every model in the catalog, on one bill. To check the key with no agent in the loop, run the test.
npx sideren test --key sdn_your_keyEverything the setup command can do is in the setup helper guide.