← Back to Skills Marketplace
Updating OpenRouter Free Models
by
youshu3008
· GitHub ↗
· v1.0.0
· MIT-0
258
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install updating-openrouter-free-models
Description
Use when needing to fetch, test, and update OpenRouter free model lists in Claude Code or OpenClaw configurations
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install updating-openrouter-free-models - After installation, invoke the skill by name or use
/updating-openrouter-free-models - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Updating OpenRouter Free Models?
Use when needing to fetch, test, and update OpenRouter free model lists in Claude Code or OpenClaw configurations. It is an AI Agent Skill for Claude Code / OpenClaw, with 258 downloads so far.
How do I install Updating OpenRouter Free Models?
Run "/install updating-openrouter-free-models" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Updating OpenRouter Free Models free?
Yes, Updating OpenRouter Free Models is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Updating OpenRouter Free Models support?
Updating OpenRouter Free Models is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Updating OpenRouter Free Models?
It is built and maintained by youshu3008 (@youshu3008); the current version is v1.0.0.
More Skills