一键导入
model-route-guard
Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | model-route-guard |
| description | Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides. |
Fix model routing and provider endpoint conflicts.
Model routing issues cause:
# Check global config
$cfg = Get-Content "$HOME/.openclaw/openclaw.json" -Raw | ConvertFrom-Json
$globalBase = $cfg.models.providers.bailian.baseUrl
$globalModel = $cfg.agents.defaults.model.primary
# Check agent overrides
$agentCfgPath = "$HOME/.openclaw/agents/main/agent/models.json"
if (Test-Path $agentCfgPath) {
$agentCfg = Get-Content $agentCfgPath -Raw | ConvertFrom-Json
$agentBase = $agentCfg.providers.bailian.baseUrl
}
"Global baseUrl = $globalBase"
"Global model = $globalModel"
"Agent baseUrl = $agentBase"
# Detect conflicts
if ($globalBase -ne $agentBase) {
Write-Warning "Provider URL mismatch between global and agent config"
}
# Correct endpoint (coding.dashscope, not coding-intl)
$correctUrl = "https://coding.dashscope.aliyuncs.com/v1"
# Update global config
$cfg.models.providers.bailian.baseUrl = $correctUrl
$cfg | ConvertTo-Json -Depth 10 | Out-File "$HOME/.openclaw/openclaw.json" -Encoding UTF8
# Remove conflicting agent override
if (Test-Path $agentCfgPath) {
Remove-Item $agentCfgPath -Force
}
# Restart
openclaw gateway restart
# Test model call
openclaw models list
# Check active route
openclaw status
| Criteria | Verification |
|---|---|
| Single provider URL | Only one bailian.baseUrl in config |
| Correct endpoint | URL is coding.dashscope.aliyuncs.com |
| No duplicate overrides | models.json removed or aligned |
| Model call succeeds | openclaw models list works |
Use when:
One route. One source of truth.
Fix OpenClaw connectivity to foreign apps for users in China without resetting existing tasks or tokens. Use when WhatsApp/Telegram/Discord linking fails with WebSocket timeout or handshake errors (for example status=408 Request Time-out, Opening handshake has timed out), when direct outbound access is blocked but VPN/proxy is available, or when OpenClaw can reach local dashboard but channels remain "Not linked".
Coordinate between local skills and discovered ClawHub patterns. Integrates phoenix-loop, agent-audit-trail, HEARTBEAT, and autonomy skills with external best practices.
Publish skills to ClawHub via web dashboard only. No CLI login, no device flow. Reuse existing browser session.
When blocked, report exact blocker + attempts made + minimum user input needed. Enable fast unblock without back-and-forth.
Verify evidence URLs are real and accessible. Check that artifact links resolve to actual content, not placeholders.
Diagnose and fix gateway token mismatches causing 401 errors. Align tokens across config, service, and CLI surfaces.