← Back to Skills Marketplace
williamwg2025

Openclaw Model Switch

by williamwg2025 · GitHub ↗ · v0.1.3 · MIT-0
cross-platform ⚠ suspicious
433
Downloads
0
Stars
2
Active Installs
4
Versions
Install in OpenClaw
/install openclaw-model-switch-2
Description
OpenClaw AI 模型切换技能 - 用自然语言切换和添加 AI 模型。 支持 9+ 预置提供商(Gemini/GPT/Claude/Qwen/Kimi 等),智能判断模型特性,一键配置 API Key。 自动备份配置,安全重启网关。 关键词:openclaw, model, switch, ai, mult...
Usage Guidance
This package appears to do what it says: it edits your OpenClaw config, optionally stores any API key you provide (in plaintext) and restarts the OpenClaw gateway. Before installing/running: 1) backup ~/.openclaw/openclaw.json (the scripts also create backups). 2) Ensure the 'openclaw' CLI is installed and behaves as expected. 3) If you supply API keys, be aware they will be written unencrypted to ~/.openclaw/openclaw.json — set strict file permissions (chmod 600) or use an external secret manager if you require stronger protection. 4) Test in a non-production environment first to observe gateway restart behavior. If you want extra assurance, inspect the bundled Python scripts locally before running them.
Capability Analysis
Type: OpenClaw Skill Name: openclaw-model-switch-2 Version: 0.1.3 The skill provides functionality to switch and add AI models by modifying the core OpenClaw configuration file (~/.openclaw/openclaw.json) and restarting the system gateway via shell commands (os.system). While these high-risk operations are documented and align with the stated purpose in SKILL.md and add-model-guide.py, the practice of handling plaintext API keys and executing system-level restarts represents a significant attack surface. No evidence of intentional malice, data exfiltration, or unauthorized network activity was found.
Capability Assessment
Purpose & Capability
Name/description (model switching, adding providers, API key config, gateway restart) align with the included scripts and config files. The scripts only touch ~/.openclaw/openclaw.json and the skill's models.json, and call the OpenClaw CLI to restart the gateway — all expected for a model-switching utility.
Instruction Scope
SKILL.md explicitly documents the files read/written (~/.openclaw/openclaw.json and the skill's config/models.json) and the gateway restart. The Python scripts implement exactly that behavior: read/update JSON, backup the main config, and invoke 'openclaw gateway restart'/'openclaw gateway status'. The scripts do not perform hidden network calls or attempt to read unrelated system files.
Install Mechanism
No install spec or external downloads; all scripts and config are bundled. The README/SKILL.md suggest only chmod +x and running the Python scripts. This is low install risk.
Credentials
The skill requests no environment variables, which is consistent. It does accept API keys interactively and writes them into ~/.openclaw/openclaw.json in plaintext (this is intentional and documented). Storing keys unencrypted is a security/privacy concern but is proportional to the skill's function (it needs credentials to call provider APIs).
Persistence & Privilege
The skill modifies the global OpenClaw configuration (~/.openclaw/openclaw.json) and updates the agents.defaults.model.primary value — this is expected for a model switcher. It is not configured always:true and does not alter other skills' code. Because it can be invoked autonomously (platform default), users should be aware that an agent with this skill could change the active model if given permission, but that is consistent with the skill's purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-model-switch-2
  3. After installation, invoke the skill by name or use /openclaw-model-switch-2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.3
- Updated skill name and metadata to "openclaw-model-switch" and clarified description and tags. - Expanded description with more keywords and clearer provider list in SKILL.md. - Improved README and documentation structure. - Clarified security and API/network practices in safety section. - No functional changes to scripts; documentation improvements only.
v0.1.2
- Updated documentation with detailed safety notices about configuration and system changes. - Clarified that the skill modifies OpenClaw config files and restarts the gateway when switching models. - Added explicit instructions for installation, file permissions, and backup procedures. - Enhanced security recommendations regarding API key storage and file access. - No changes to scripts or functional code in this version; documentation only.
v0.1.1
openclaw-model-switch-2 v0.1.1 - Added script utilities: switch, add, check status, and list models. - Introduced models.json configuration file for model management. - Added usage and safety details to documentation. - Improved overall documentation with new README files. - Security section now clarifies local execution and data safety.
v0.1.0
Initial release of Model Switch: natural language AI model management - Switch and add AI models using simple natural language commands. - Provides interactive guides for switching or adding models. - Smartly detects model features (e.g., image or inference support). - One-click API key configuration and automatic saving of settings. - Supports major model providers and custom configurations. - Optimized, streamlined workflow for managing multiple models.
Metadata
Slug openclaw-model-switch-2
Version 0.1.3
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 4
Frequently Asked Questions

What is Openclaw Model Switch?

OpenClaw AI 模型切换技能 - 用自然语言切换和添加 AI 模型。 支持 9+ 预置提供商(Gemini/GPT/Claude/Qwen/Kimi 等),智能判断模型特性,一键配置 API Key。 自动备份配置,安全重启网关。 关键词:openclaw, model, switch, ai, mult... It is an AI Agent Skill for Claude Code / OpenClaw, with 433 downloads so far.

How do I install Openclaw Model Switch?

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

Is Openclaw Model Switch free?

Yes, Openclaw Model Switch is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Openclaw Model Switch support?

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

Who created Openclaw Model Switch?

It is built and maintained by williamwg2025 (@williamwg2025); the current version is v0.1.3.

💬 Comments