Fetch and track OpenRouter's AI model usage rankings.
bash
# Fetch current rankings
node scripts/fetch.js
# With options
node scripts/fetch.js --save --push
SectionDataTop ModelsWeekly token usage, growth %Top AppsApps consuming most tokensMarket ShareProvider market distributionHighlightsFastest growing, #1 model/app
Data saved to ~/.openclaw/data/openrouter-rankings/YYYY-MM-DD.json
json
{
"fetchedAt": "2026-03-10T02:15:00.000Z",
"source": "https://openrouter.ai/rankings",
"period": "This Week",
"topModels": [...],
"marketShare": [...],
"topApps": [...],
"highlights": {...}
}
Set up weekly automated fetch:
json
{
"name": "openrouter-weekly",
"schedule": { "kind": "cron", "expr": "0 9 * * 1" },
"payload": { "kind": "agentTurn", "message": "Fetch OpenRouter rankings and push to Feishu" },
"sessionTarget": "isolated"
}
FlagDescription--saveSave to JSON file--pushPush to Feishu (requires config)--compareCompare with last week
See references/data-structure.md for detailed schema.