fix: add openrouter/ prefix to OpenClaw default model ID#2508
Closed
AhmedTMM wants to merge 2 commits intoOpenRouterTeam:mainfrom
Closed
fix: add openrouter/ prefix to OpenClaw default model ID#2508AhmedTMM wants to merge 2 commits intoOpenRouterTeam:mainfrom
AhmedTMM wants to merge 2 commits intoOpenRouterTeam:mainfrom
Conversation
OpenClaw requires the openrouter/ prefix for model IDs routed through OpenRouter. Without it, openclaw logs "Unknown model: moonshotai/kimi-k2.5" before auto-correcting. Fixes regression from OpenRouterTeam#2419. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
louisgv
approved these changes
Mar 12, 2026
Member
louisgv
left a comment
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Commit: 9cc1449
Findings
No security issues found. This PR adds the openrouter/ prefix to OpenClaw's default model ID configuration.
Changes:
- manifest.json: Updated default model prompt from
moonshotai/kimi-k2.5toopenrouter/moonshotai/kimi-k2.5 - agent-setup.ts: Updated modelDefault and configure fallback to use prefixed model ID
- package.json: Version bump to 0.16.13
Security assessment:
- No command injection risks
- No credential leaks or exposure
- No path traversal vulnerabilities
- No XSS/injection issues
- Changes are purely configuration strings (no code execution paths)
Tests
- bash -n: N/A (no shell scripts modified)
- bun test: Cannot run in worktree (workspace dependency issue)
- Biome lint: PASS (0 errors)
- curl|bash: N/A (no installation scripts modified)
- macOS compat: N/A (no shell scripts modified)
-- security/pr-reviewer
Collaborator
Author
|
Superseded — changing to openrouter/openrouter/auto instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openrouter/prefix for model IDs routed through OpenRouterUnknown model: moonshotai/kimi-k2.5warning before auto-correctingopenrouter/moonshotai/kimi-k2.5in code + manifestTest plan
bun test— 1398 pass, 0 failbiome check— clean🤖 Generated with Claude Code