← 返回 Skills 市场
youshu3008

Updating OpenRouter Free Models

作者 youshu3008 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
258
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install updating-openrouter-free-models
功能描述
Use when needing to fetch, test, and update OpenRouter free model lists in Claude Code or OpenClaw configurations
安全使用建议
This package appears to implement exactly what it claims (fetching/testing OpenRouter free models and updating Claude/OpenClaw config), but take these precautions before installing or letting an agent run it automatically: - Metadata vs runtime mismatch: The registry lists no required environment variables, but test_models.py expects ANTHROPIC_AUTH_TOKEN or OPENROUTER_API_KEY (or will read an apiKey from ~/.openclaw/openclaw.json). Do not assume it will work without providing a token; also be aware it may read stored tokens from your OpenClaw config. - Inspect code before running: Review fetch_models.py, test_models.py, apply_updates.py / apply_updates_openclaw.js, and restart_openclaw.sh. They will overwrite ~/.claude/settings.json and ~/.openclaw/openclaw.json and may kill/restart processes (pkill / launchctl / nohup). Confirm the JSON updates match your desired config structure. - Backup configs: Make backups of ~/.claude/settings.json and ~/.openclaw/openclaw.json before running apply/update steps so you can restore if something is wrong. - Prefer manual/apply-review workflow: Run python3 fetch_models.py and python3 test_models.py to produce /tmp/verified_models.txt, inspect that file, and only then run the updater scripts manually. Avoid giving an autonomous agent the instruction in README that copies and executes these files without human confirmation. - Secrets handling: Prefer setting environment variables for API tokens (OPENROUTER_API_KEY) for testing rather than relying on stored tokens in other config files. Check whether openclaw.json contains sensitive apiKey entries you don't want scripts to read or modify. - Test in a safe environment first: Run the complete_test.sh in a container or a throwaway user account to observe behavior (it will try to update and validate configs and call node/openclaw). Confirm restart behavior is acceptable for your system. - Provenance: The skill's 'Source' and 'Homepage' are unknown. If you require stronger trust guarantees, request the author/source, or prefer using officially maintained tooling or a vetted plugin. If you want, I can list the exact lines in each file that read/write configs, call external endpoints, or restart services so you can review them quickly.
功能分析
Type: OpenClaw Skill Name: updating-openrouter-free-models Version: 1.0.0 The skill bundle automates the synchronization of OpenRouter free models by fetching data from the OpenRouter API and updating local configuration files. It exhibits high-risk behaviors including reading API keys from environment variables and configuration files (test_models.py), modifying sensitive application settings in ~/.claude/settings.json and ~/.openclaw/openclaw.json (apply_updates.py, apply_updates_openclaw.js), and restarting system services using launchctl or pkill (restart_openclaw.sh). While these actions are consistent with the stated purpose, the broad permissions and potential for configuration corruption or credential exposure justify a suspicious classification.
能力评估
Purpose & Capability
The name/description match the included code: scripts fetch models from openrouter.ai, test them, and update Claude and OpenClaw configs. However the registry metadata declares no required environment variables while the runtime scripts clearly expect authentication tokens (ANTHROPIC_AUTH_TOKEN or OPENROUTER_API_KEY or an apiKey inside ~/.openclaw/openclaw.json). That metadata omission is an incoherence the user should notice.
Instruction Scope
SKILL.md and README instruct the agent/user to read and overwrite user config files (~/.claude/settings.json and ~/.openclaw/openclaw.json), read potential API keys from those files, write /tmp/verified_models.txt, and restart the OpenClaw gateway (pkill/launchctl/nohup). Those are within the stated purpose, but they are intrusive (modify persistent user configs and kill/start processes). The README also contains explicit prompts that encourage an AI to copy and install the skill files into user directories — that automation increases risk if run without review.
Install Mechanism
There is no external install/download step: all code is bundled in the skill. No archive downloads or remote installers are used. This reduces installation risk compared to fetching arbitrary binaries, but the included scripts themselves perform filesystem and process operations when run.
Credentials
The runtime scripts require an API token (ANTHROPIC_AUTH_TOKEN or OPENROUTER_API_KEY) or will read an apiKey from ~/.openclaw/openclaw.json, yet the skill metadata lists no required env vars. Reading an existing OpenClaw config to extract an apiKey is reasonable for convenience but is also a capability to access stored credentials; this should have been declared. The scripts also write to user config files which is a privilege that should be proportionally justified and visible to users up front.
Persistence & Privilege
always:false and normal autonomous invocation are used (no 'always' flag). The skill modifies persistent user configuration files and offers a restart script that kills/starts processes (launchctl, pkill, nohup). This level of system interaction is consistent with the declared purpose (updating runtime configs) but increases the blast radius if run by an agent without human review.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install updating-openrouter-free-models
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /updating-openrouter-free-models 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release introducing automated, test-driven updating and syncing for OpenRouter free model lists across Claude Code and OpenClaw. - Automates fetching, testing, and verification of OpenRouter free models before config updates. - Synchronizes model allowlists and fallback arrays between Claude Code and OpenClaw. - Adds self-test and validation steps to prevent config errors. - Includes OpenClaw-specific update scripts and restart helper. - Documents common pitfalls, real-world usage, and a checklist for safe updates.
元数据
Slug updating-openrouter-free-models
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Updating OpenRouter Free Models 是什么?

Use when needing to fetch, test, and update OpenRouter free model lists in Claude Code or OpenClaw configurations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 258 次。

如何安装 Updating OpenRouter Free Models?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install updating-openrouter-free-models」即可一键安装,无需额外配置。

Updating OpenRouter Free Models 是免费的吗?

是的,Updating OpenRouter Free Models 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Updating OpenRouter Free Models 支持哪些平台?

Updating OpenRouter Free Models 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Updating OpenRouter Free Models?

由 youshu3008(@youshu3008)开发并维护,当前版本 v1.0.0。

💬 留言讨论