add-top-openrouter-models
БесплатноЗапускает вложенные скриптыНе проверенSync OpenRouter models used by OpenClaw into this installation's config. Fetches the OpenClaw app leaderboard from OpenRouter, verifies model IDs against the…
от modbender★ 21 звезда на GitHubОб этом скилле
OpenRouter Model Sync
Syncs models from the OpenClaw app leaderboard on OpenRouter into this openclaw installation.
Workflow
Step 1: Extract Model IDs via Browser
The app page is a React SPA -- must use browser tool, not web_fetch.
- Open
https://openrouter.ai/apps?url=https%3A%2F%2Fopenclaw.ai%2Fin browser (profile: openclaw) - Take a snapshot, find and click "Show more" to expand full leaderboard
- Take another snapshot after expansion
- Extract model IDs from link hrefs -- they follow the pattern
/<provider>/<model-name>(e.g./moonshotai/kimi-k2.5) - Filter out non-model links (navigation links to
/docs,/chat,/rankings,/pricing,/enterprise,/about, etc.) - Collect the model IDs (without leading slash)
Step 2: Run Sync Script
python3 scripts/sync-openrouter-models.py --models "model/id1,model/id2,..."
Options:
--dry-run— preview changes without writing files--json— machine-readable JSON output on stdout- stdin also accepted (one model ID per line)
The script:
- Verifies each ID against the OpenRouter
/api/v1/modelscatalog (rejects unverified) - Converts verified models to openclaw format (context window, pricing, reasoning, modalities)
- Creates timestamped backups before writing any config file
- Adds missing models to
~/.openclaw/agents/<agent>/agent/models.jsonand~/.openclaw/openclaw.json - Generates aliases (from
references/aliases.jsonor auto-derived)
Step 3: Restart Gateway
openclaw gateway restart
Environment Variables
| Variable | Purpose | Default |
|---|---|---|
OPENCLAW_DIR |
Override openclaw directory | ~/.openclaw |
OPENCLAW_AGENT_DIR |
Override agent directory | auto-detected |
OPENROUTER_API_KEY |
API key (falls back to config) | from config |
Maintaining Aliases
Edit references/aliases.json to add or update short aliases for model IDs. The script loads this file at runtime. If missing, built-in defaults are used.
What Gets Updated
~/.openclaw/agents/main/agent/models.json— openrouter provider models~/.openclaw/openclaw.json— openrouter provider models + aliases- Backups created as
<file>.bak.<timestamp>before each write
Limitations
- Additive only (does not remove delisted models)
- Reasoning detection uses heuristics (architecture field + known model families)
- Requires browser tool for Step 1 (app page is JS-rendered)
Установить add-top-openrouter-models в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл add-top-openrouter-models?
Sync OpenRouter models used by OpenClaw into this installation's config. Fetches the OpenClaw app leaderboard from OpenRouter, verifies model IDs against the API catalog, and adds missing models with correct specs and aliases. Use when asked to "sync openrouter models", "add missing models", "update openrouter config", or "check openrouter models".
Как установить скилл add-top-openrouter-models?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-top-openrouter-models запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic