← 返回
未分类 Key 中文

OpenRouter Free Model Rotate

Scan OpenRouter for available free models (zero cost), benchmark them, score by capability, and auto-update OpenClaw config with the best ones. Use when: "ro...
扫描 OpenRouter 上的可用免费模型(零成本),对其进行基准测试,按能力评分,并将最佳模型自动更新至 OpenClaw 配置。适用于:“ro...
liligit1815 liligit1815 来源
未分类 clawhub v2.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 342
下载
💾 2
安装
1
版本
#auto-rotate#benchmarks#cli#concurrent#free-models#latest#openrouter#scoring

概述

OpenRouter Free Model Rotate v2.0

Capabilities

  • Smart scoring — ranks models by context window, multimodal support, reasoning ability, output length, and latency
  • Concurrent testing — tests multiple models at once (configurable workers)
  • Quality benchmark — PONG instruction-following test
  • Capability filter — text-only / multimodal / image / reasoning / large context
  • Result caching — 1-hour cache to avoid redundant API calls
  • JSON report — export results for analysis
  • Auto config — updates openclaw.json + models.json + optional gateway restart

Quick Start

# Full flow: scan → bench → test → update → restart (recommended)
scripts/rotate_free_models.py --api-key "sk-or-xxx" --restart

# Quick rotate (no bench, just connectivity)
scripts/rotate_free_models.py --api-key "sk-or-xxx" --test 30 --keep 10 --restart

# Scan + show ranked by score (no changes)
scripts/rotate_free_models.py --api-key "sk-or-xxx" --scan --sort score

# Quality benchmark
scripts/rotate_free_models.py --api-key "sk-or-xxx" --bench --json report.json

# Filter: only multimodal models
scripts/rotate_free_models.py --api-key "sk-or-xxx" --filter multimodal --restart

# Use cached results (<1h old), skip retesting
scripts/rotate_free_models.py --api-key "sk-or-xxx" --use-cache --keep 10

# Save JSON report
scripts/rotate_free_models.py --api-key "sk-or-xxx" --json /tmp/report.json

Parameters

FlagDefaultDescription
----------------------------
--api-key$OPENROUTER_API_KEYOpenRouter API key
--test N0 (all)Max models to test
--keep N10Working models to keep in config
--workers N5Concurrent test workers
--timeout N15Per-model timeout (seconds)
--benchoffEnable quality benchmark
--filter TYPEallall/text/multimodal/image/reasoning/fast/large
--sort BYscorescore/latency/name
--use-cacheoffUse 1h cached results
--json FILEnoneSave JSON report
--restartoffRestart gateway after update
--no-updateoffDon't change configs
--scanoffScan only, no testing

Scoring Algorithm

Models are ranked by a weighted composite:

FactorWeightEffect
------------------------
Context window+2 per 100K tokensMore context = higher score
Max output tokens+0.5 per 1KLonger output = higher
Image input+5Multimodal bonus
Audio input+5Multimodal bonus
Video input+3Advanced capability
Reasoning support+8Chain-of-thought bonus
Latency-0.3 per 100msFaster = higher score
Brand quality+2~5Qwen-Coder, Llama-70B, GPT, Gemini recognized

Scheduling

Run via cron every 6 hours for auto-rotation:

0 */6 * * *  python3 rotate_free_models.py --api-key "sk-or-xxx" --restart > /var/log/model-rotate.log 2>&1

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-07 08:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 81 📥 182,960
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 330,849
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,079