fix: revert OpenClaw default model to openrouter/auto (#2509)

OpenClaw requires the openrouter/ provider prefix for model IDs.
The previous default (moonshotai/kimi-k2.5) was missing the prefix,
causing "Unknown model" warnings. Reverted to openrouter/openrouter/auto
which uses OpenRouter's auto-router to pick the best model per prompt.

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:
Ahmed Abushagur 2026-03-11 22:06:50 -07:00 committed by GitHub
parent 129f72d8e1
commit 553cbad7bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -57,7 +57,7 @@
"interactive_prompts": {
"model_id": {
"prompt": "Enter model ID",
"default": "moonshotai/kimi-k2.5"
"default": "openrouter/openrouter/auto"
}
},
"icon": "https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/assets/agents/openclaw.png",

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.16.14",
"version": "0.16.15",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -623,7 +623,7 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
name: "OpenClaw",
cloudInitTier: "full" satisfies AgentConfig["cloudInitTier"],
preProvision: detectGithubAuth,
modelDefault: "moonshotai/kimi-k2.5",
modelDefault: "openrouter/openrouter/auto",
install: async () => {
await installAgent(
runner,
@ -637,7 +637,7 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
"ANTHROPIC_BASE_URL=https://openrouter.ai/api",
],
configure: (apiKey: string, modelId?: string, enabledSteps?: Set<string>) =>
setupOpenclawConfig(runner, apiKey, modelId || "moonshotai/kimi-k2.5", dashboardToken, enabledSteps),
setupOpenclawConfig(runner, apiKey, modelId || "openrouter/openrouter/auto", dashboardToken, enabledSteps),
preLaunch: () => startGateway(runner),
preLaunchMsg: "Your web dashboard will open automatically. If it doesn't, check the terminal for the URL.",
launchCmd: () =>