mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
fix: update Codex default model to gpt-5.3-codex and add agent model reference (#2540)
The previous PR (#2536) set the Codex default to gpt-5.1-codex, but the latest available on OpenRouter is gpt-5.3-codex. Also adds a rules file documenting each agent's default model to prevent future regressions. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
d2d71b17ef
commit
e640d1bfe5
2 changed files with 24 additions and 1 deletions
23
.claude/rules/agent-default-models.md
Normal file
23
.claude/rules/agent-default-models.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Agent Default Models
|
||||
|
||||
**Source of truth for the default LLM each agent uses via OpenRouter.**
|
||||
When updating an agent's default model, update BOTH the code and this file. This prevents regressions from stale model IDs.
|
||||
|
||||
Last verified: 2026-03-12
|
||||
|
||||
| Agent | Default Model | How It's Set |
|
||||
|---|---|---|
|
||||
| Claude Code | _(routed by Anthropic)_ | `ANTHROPIC_BASE_URL=https://openrouter.ai/api` — model selection handled by Claude's own routing |
|
||||
| Codex CLI | `openai/gpt-5.3-codex` | Hardcoded in `setupCodexConfig()` → `~/.codex/config.toml` |
|
||||
| OpenClaw | `openrouter/openrouter/auto` | `modelDefault` field in agent config; written to OpenClaw config via `setupOpenclawConfig()` |
|
||||
| ZeroClaw | _(provider default)_ | `ZEROCLAW_PROVIDER=openrouter` — model selection handled by ZeroClaw's OpenRouter integration |
|
||||
| OpenCode | _(provider default)_ | `OPENROUTER_API_KEY` env var — model selection handled by OpenCode natively |
|
||||
| Kilo Code | _(provider default)_ | `KILO_PROVIDER_TYPE=openrouter` — model selection handled by Kilo Code natively |
|
||||
| Hermes | _(provider default)_ | `OPENAI_BASE_URL=https://openrouter.ai/api/v1` + `OPENAI_API_KEY` — model selection handled by Hermes |
|
||||
| Junie | _(provider default)_ | `JUNIE_OPENROUTER_API_KEY` — model selection handled by Junie natively |
|
||||
|
||||
## When to update
|
||||
|
||||
- When OpenRouter adds a newer version of a model (e.g., `gpt-5.1-codex` → `gpt-5.3-codex`)
|
||||
- When an agent changes its default provider integration
|
||||
- Verify the model ID exists on OpenRouter before committing: `curl -s https://openrouter.ai/api/v1/models | jq '.data[].id' | grep <model>`
|
||||
|
|
@ -275,7 +275,7 @@ export async function offerGithubAuth(runner: CloudRunner): Promise<void> {
|
|||
|
||||
async function setupCodexConfig(runner: CloudRunner, _apiKey: string): Promise<void> {
|
||||
logStep("Configuring Codex CLI for OpenRouter...");
|
||||
const config = `model = "openai/gpt-5.1-codex"
|
||||
const config = `model = "openai/gpt-5.3-codex"
|
||||
model_provider = "openrouter"
|
||||
|
||||
[model_providers.openrouter]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue