← Back to Skills Marketplace
2233admin

Openclaw Switch

by 2233admin · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
591
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-switch
Description
Manage multi-provider model switching and fallback chains in OpenClaw. "OpenClaw Switch" helps users set up automatic model failover (e.g. 429 rate-limit → f...
Usage Guidance
This bundle appears to be what it claims: a local tool that reads and updates your ~/.openclaw/openclaw.json (or $OPENCLAW_CONFIG) to change the primary model and show fallbacks. Before installing or running: (1) back up your openclaw.json so you can restore it if needed; (2) review/verify the script (it’s short and readable) to confirm you’re comfortable with it writing your config and optionally restarting the OpenClaw daemon; (3) confirm any 'openclaw' executable on your system is trusted because the script will call it to restart the daemon if present. A minor note: the README's clone URL and the script header comment reference different GitHub paths—this is suspiciously sloppy but does not change the script's local-only behavior. If you need extra assurance, run the commands in a safe/non-production environment first.
Capability Analysis
Type: OpenClaw Skill Name: openclaw-switch Version: 1.0.0 The `set_primary` function in `scripts/openclaw-switch.sh` is vulnerable to Python code injection. The model ID, which is used as input to this function, is directly interpolated into a Python string without proper sanitization. This creates a second-order code injection vulnerability: if the `openclaw.json` file contains a maliciously crafted model ID (e.g., `model-1'; import os; os.system('echo pwned') #`), selecting this model via the `switch` command would execute arbitrary Python code. While the script itself does not exhibit malicious intent, this vulnerability could lead to Remote Code Execution if the configuration file is compromised or contains untrusted entries.
Capability Assessment
Purpose & Capability
Name/description match the actual behavior: the script lists models, shows fallbacks, and sets the primary model by editing openclaw.json. No unrelated binaries or credentials are requested. The optional OPENCLAW_CONFIG env var is appropriate for locating the config file.
Instruction Scope
SKILL.md and the included script are narrowly scoped: they read and write the local OpenClaw config ($OPENCLAW_CONFIG or ~/.openclaw/openclaw.json), parse JSON with python3 stdlib, and display information. The only external action is an optional 'openclaw daemon restart' when the 'openclaw' binary exists; otherwise there are no network calls or reads of other system secrets.
Install Mechanism
There is no automated installer in the bundle (instruction-only plus a script). The README suggests cloning the repo and adding the local bin to PATH — this is standard. No downloads from untrusted URLs or archive extraction are present in the package itself.
Credentials
The skill declares no required env vars and only optionally respects OPENCLAW_CONFIG to locate the config file. It does not request API keys or other credentials. This is proportionate to the declared functionality.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It does modify the user's openclaw.json (expected for a config-management tool) and may invoke 'openclaw daemon restart' if present. Users should be aware it writes to their OpenClaw config file — back up before running in production.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-switch
  3. After installation, invoke the skill by name or use /openclaw-switch
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
OpenClaw Switch 1.0.0 – Initial Release - Manage and switch between multiple AI model providers in OpenClaw. - Configure and visualize fallback chains for automatic model failover. - Easily switch the primary model and list all available models. - Supports heartbeat and subagent routing for cost and reliability optimization. - Secure, dependency-free Bash/Python3 script; never transmits or logs sensitive data.
Metadata
Slug openclaw-switch
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Openclaw Switch?

Manage multi-provider model switching and fallback chains in OpenClaw. "OpenClaw Switch" helps users set up automatic model failover (e.g. 429 rate-limit → f... It is an AI Agent Skill for Claude Code / OpenClaw, with 591 downloads so far.

How do I install Openclaw Switch?

Run "/install openclaw-switch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Openclaw Switch free?

Yes, Openclaw Switch is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Openclaw Switch support?

Openclaw Switch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Openclaw Switch?

It is built and maintained by 2233admin (@2233admin); the current version is v1.0.0.

💬 Comments