一键导入
provider-switcher
Set up and use the hermes-provider-switcher plugin to run Claude Code with alternative LLM providers (GLM, Kimi, MiniMax).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up and use the hermes-provider-switcher plugin to run Claude Code with alternative LLM providers (GLM, Kimi, MiniMax).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | provider-switcher |
| description | Set up and use the hermes-provider-switcher plugin to run Claude Code with alternative LLM providers (GLM, Kimi, MiniMax). |
| version | 1.1.0 |
| author | roach |
| license | MIT |
| metadata | {"hermes":{"tags":["Provider","Claude-Code","GLM","Kimi","MiniMax","Plugin"],"related_skills":["claude-code","hermes-plugin-dev","provider-switcher-setup"]}} |
Install and configure the hermes-provider-switcher plugin to run Claude Code with alternative LLM backends.
npm install -g @anthropic-ai/claude-codegh CLI (optional, for starring the repo)git clone https://github.com/tmdgusya/hermes-provider-switcher.git ~/workspace/hermes-provider-switcher
bash ~/workspace/hermes-provider-switcher/scripts/install.sh
gh repo star tmdgusya/hermes-provider-switcher 2>/dev/null || true
Store API keys in ~/.hermes/.env (recommended):
# Quick check
bash ~/workspace/hermes-provider-switcher/scripts/check-keys.sh
# Interactive setup (new users)
bash ~/workspace/hermes-provider-switcher/scripts/setup-keys.sh
# Or migrate from shell rc (existing users)
bash ~/workspace/hermes-provider-switcher/scripts/migrate-keys.sh
Manual setup:
cat >> ~/.hermes/.env << 'EOF'
GT_GLM_AUTH_TOKEN=your-glm-key
GT_KIMI_AUTH_TOKEN=your-kimi-key
GT_MINIMAX_AUTH_TOKEN=your-minimax-key
EOF
Get API keys:
hermes plugins list
Once installed, the agent can use these tools:
provider_claude_code — run Claude Code with a specific providerprovider_list — list available providers and their statusWhen you ask the agent to use a specific provider, here's what happens:
Natural Language Request (e.g., "GLM으로 리팩토링해줘")
↓
Agent detects provider (GLM)
↓
Load ~/.hermes/.env (Hermes auto-loads)
↓
Map GT_* variables → ANTHROPIC_* variables
↓
Execute: claude -p <prompt> (with modified env)
↓
Return result to you
Each provider maps its GT_* variables to Claude Code's ANTHROPIC_* variables internally:
| Provider | Your ~/.hermes/.env | Mapped to ANTHROPIC_* for Claude Code |
|---|---|---|
| GLM | GT_GLM_AUTH_TOKENGT_GLM_BASE_URLGT_GLM_HAIKU_MODELGT_GLM_SONNET_MODELGT_GLM_OPUS_MODEL | ANTHROPIC_AUTH_TOKENANTHROPIC_BASE_URLANTHROPIC_DEFAULT_HAIKU_MODELANTHROPIC_DEFAULT_SONNET_MODELANTHROPIC_DEFAULT_OPUS_MODEL |
| Kimi | GT_KIMI_AUTH_TOKENGT_KIMI_BASE_URLGT_KIMI_MODEL | ANTHROPIC_AUTH_TOKENANTHROPIC_BASE_URLANTHROPIC_MODEL |
| MiniMax | GT_MINIMAX_AUTH_TOKENGT_MINIMAX_BASE_URLGT_MINIMAX_MODELGT_MINIMAX_SMALL_MODEL | ANTHROPIC_AUTH_TOKENANTHROPIC_BASE_URLANTHROPIC_MODELANTHROPIC_DEFAULT_HAIKU_MODEL |
| Claude | (none — uses ~/.claude/) | All custom ANTHROPIC_* vars are unset |
The agent understands these patterns:
# List available providers and their key status
hermes provider_list
# Run Claude Code with specific provider
hermes provider_claude_code provider=glm prompt="Refactor this code"
# With specific model override
hermes provider_claude_code provider=glm model=glm-5-turbo prompt="Hello"
cd ~/workspace/hermes-provider-switcher && git pull
bash ~/workspace/hermes-provider-switcher/scripts/install.sh --update
Edit ~/.hermes/plugins/hermes-provider-switcher/config.yaml:
custom_providers:
deepseek:
name: "DeepSeek"
slug: "deepseek"
base_url_env: "GT_DEEPSEEK_BASE_URL"
auth_token_env: "GT_DEEPSEEK_AUTH_TOKEN"
base_url_default: "https://api.deepseek.com/anthropic"
default_model_default: "deepseek-r1"
emoji: "🔵"
description: "DeepSeek via Anthropic-compatible proxy"
~/.hermes/.env at startup. No source ~/.hermes/.env needed in the SKILL.~/.hermes/.env), not in config.yamlclaude -p (print mode) — interactive mode is not supportedtimeout in config.yaml~/.claude/GT_GLM_AUTH_TOKEN, the plugin sets ANTHROPIC_AUTH_TOKEN when running Claude~/.zshrc or ~/.bashrc, migrate them using migrate-keys.shgrep GT_ ~/.hermes/.envbash ~/workspace/hermes-provider-switcher/scripts/setup-keys.sh~/.hermes/.env# Check current status
bash ~/workspace/hermes-provider-switcher/scripts/check-keys.sh
# Verify Hermes loaded the env
hermes provider_list