Overview
- Skill Key
- dalomeve/model-route-guard
- Author
- dalomeve
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/dalomeve/model-route-guard
- Latest Commit SHA
- 143e217bd9608413a97c4c2406692a36ad52e7c8
Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 model-route-guard 技能。 若已安装,则直接安装 model-route-guard 技能。
# Model Route Guard
Fix model routing and provider endpoint conflicts.
## Problem
Model routing issues cause:
- Wrong provider endpoint used
- Duplicate provider definitions
- Agent overrides conflicting with global config
- Silent fallback to wrong model
## Workflow
### 1. Route Audit
```powershell
# 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"
}
```
### 2. Fix Conflicts
```powershell
# 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
```
### 3. Verification
```powershell
# Test model call
openclaw models list
# Check active route
openclaw status
```
## Executable Completion Criteria
| 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 |
## Privacy/Safety
- No API keys in audit output
- Redact key values (show first 4 chars)
- Config files only, no exte...
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Attio CRM integration for managing companies, people, deals, notes, tasks, and custom objects. Use when working with Attio CRM data, searching contacts, managing sales pipelines, adding notes to records, creating tasks, or syncing prospect information.
capt-marbles
Web scraping and crawling with Firecrawl API. Fetch webpage content as markdown, take screenshots, extract structured data, search the web, and crawl documentation sites. Use when the user needs to scrape a URL, get current web info, capture a screenshot, extract specific data from pages, or crawl docs for a framework/library.
caqlayan
Tweet Processor Skill
carlosarturoleon
Connect to Windsor.ai MCP for natural language access to 325+ data sources including Facebook Ads, GA4, HubSpot, Shopify, and more.