Install
openclaw skills install realmrouter-switchZero-friction RealmRouter model manager for OpenClaw. Chat-first workflow for setting API key, guided model picking, switching with availability check, rollb...
openclaw skills install realmrouter-switchChat-first model switching for OpenClaw.
面向 OpenClaw 的对话式模型切换工具。
安装 skill 后,你只需要直接说:
重要:所有操作我都会自动帮你执行,包括重启 gateway。
如果习惯命令行,可以用 rr 快捷命令:
rr show - 查看当前状态rr pick - 列出编号模型列表rr switch <model> - 切换模型rr key <key> - 更新 API Keyrr test - 测试连通性rr rollback - 回滚备份npx clawhub install realmrouter-switch --force
# 方式一:使用安装脚本
bash ~/.openclaw/workspace/skills/realmrouter-switch/scripts/install_rr.sh
# 方式二:手动添加到 PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # 如果用 zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc # 如果用 bash
source ~/.zshrc # 或 source ~/.bashrc
rr show
# 或直接用 Python 脚本
python3 ~/.openclaw/workspace/skills/realmrouter-switch/scripts/realm_manager.py show
npx clawhub install realmrouter-switch --force
# 以管理员权限运行 PowerShell,然后执行:
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.openclaw\workspace\skills\realmrouter-switch\scripts\install_rr.ps1"
关闭当前 PowerShell 窗口,重新打开一个新的。
rr show
# 或直接调用脚本
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.openclaw\workspace\skills\realmrouter-switch\scripts\realm_manager.ps1" show
显示当前配置状态:
列出编号模型列表,方便选择:
[1] claude-opus-4-6-thinking
[2] claude-sonnet-4.6
[3] gpt-5.3-codex
[4] gpt-5.2-codex
[5] qwen3-max
...
切换默认模型。支持三种格式:
rr switch 3 (先用 rr pick 查看编号)rr switch gpt53 (内置别名见下方)rr switch gpt-5.3-codex内置别名:
| 别名 | 实际模型 |
|---|---|
opus | claude-opus-4-6-thinking |
sonnet | claude-sonnet-4.6 |
gpt53 | gpt-5.3-codex |
gpt52 | gpt-5.2-codex |
qwen | qwen3-max |
r1 | deepseek-ai/DeepSeek-R1 |
gemini | gemini-3.1-pro-high |
glm5 | zai-org/GLM-5 |
更新 RealmRouter API Key,会自动验证有效性。
测试当前配置的连通性,验证 Key 和模型是否可用。
恢复最近的备份文件。
进入交互菜单模式,适合不熟悉命令行的用户。
# 1. 安装
npx clawhub install realmrouter-switch --force
bash ~/.openclaw/workspace/skills/realmrouter-switch/scripts/install_rr.sh
# 2. 设置 Key
rr key sk-xxxxxxxxxxxxx
# 3. 查看可选模型
rr pick
# 4. 切换模型
rr switch 3
# 或
rr switch gpt53
# 5. 验证
rr test
rr show
# 1. 安装
npx clawhub install realmrouter-switch --force
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.openclaw\workspace\skills\realmrouter-switch\scripts\install_rr.ps1"
# 2. 重启终端
# 3. 设置 Key
rr key sk-xxxxxxxxxxxxx
# 4. 查看可选模型
rr pick
# 5. 切换模型
rr switch 3
# 或
rr switch gpt53
# 6. 验证
rr test
rr show
~/.openclaw/backups/rr: command not found~/.local/bin 在 PATH 中%USERPROFILE%\bin 在 PATH 中API key verification failedhttps://realmrouter.cn/v1-Force 参数强制跳过验证openclaw gateway restart-RestartGateway 参数