Syncs models from the OpenClaw app leaderboard on OpenRouter into this openclaw installation.
The app page is a React SPA -- must use browser tool, not web_fetch.
https://openrouter.ai/apps?url=https%3A%2F%2Fopenclaw.ai%2F in browser (profile: openclaw)/<provider>/<model-name> (e.g. /moonshotai/kimi-k2.5)/docs, /chat, /rankings, /pricing, /enterprise, /about, etc.)bash
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 stdoutThe script:
/api/v1/models catalog (rejects unverified)~/.openclaw/agents/<agent>/agent/models.json and ~/.openclaw/openclaw.jsonreferences/aliases.json or auto-derived)bash
openclaw gateway restart
VariablePurposeDefaultOPENCLAW_DIROverride openclaw directory~/.openclaw``OPENCLAW_AGENT_DIROverride agent directoryauto-detectedOPENROUTER_API_KEYAPI key (falls back to config)from config
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.
~/.openclaw/agents/main/agent/models.json — openrouter provider models~/.openclaw/openclaw.json — openrouter provider models + aliases<file>.bak.<timestamp> before each write