Restore Claude Code to Anthropic account auth. Run the bundled switcher and reply with a formatted status panel. Use only when the user invokes /swisher:anthropic.
Clean up ModelSwitcher plugin state and restore original Claude Code settings. Use only when the user invokes /swisher:cleanup.
Switch Claude Code to the Z.ai GLM coding plan. Run the bundled switcher and reply with a formatted status panel. Use only when the user invokes /swisher:glm.
Show ModelSwitcher help and command reference. Use when the user invokes /swisher:help.
Switch Claude Code to the MiniMax M2.7 coding plan. Run the bundled switcher and reply with a formatted status panel. Use only when the user invokes /swisher:minimax.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
ModelSwitcher for Claude Code — switch between Anthropic, Z.ai GLM, and MiniMax API providers without editing config files.
Swisher is a Claude Code plugin that routes your Claude Code sessions through different AI providers by updating ~/.claude/settings.json for you. When you switch providers, Swisher:
Your original Anthropic settings are always preserved and restorable — including any custom API keys or gateway URLs you have configured.
# Add the marketplace
claude plugin marketplace add MisterWonderful/swisher
# Install the plugin
claude plugin install swisher@swisher-marketplace
./scripts/install-from-github.sh
Both options do the same thing. After installing, restart Claude Code (or start a new terminal session) for the plugin to be recognized.
After installing, configure your API key:
zai_api_keyminimax_api_key/swisher:status to confirm the setup is correct/swisher:glm # Switch to Z.ai GLM
/swisher:minimax # Switch to MiniMax M2.7
/swisher:anthropic # Switch back to Anthropic (default)
/swisher:status # Full status report
/swisher # Overview + command reference
/swisher:cleanup # Restores your original settings and removes plugin state
Then run in your terminal:
claude plugin uninstall swisher
Restart Claude Code (or open a new terminal) after switching providers — changes take effect on the next session.
| Command | Description |
|---|---|
/swisher | Overview — all commands, key status, setup guide |
/swisher:status | Detailed report: active provider, key config, managed env |
/swisher:anthropic | Restore Anthropic auth (default) |
/swisher:glm | Switch to Z.ai GLM Coding Plan |
/swisher:minimax | Switch to MiniMax M2.7 |
/swisher:cleanup | Restore original settings and remove plugin state |
Swisher manages these environment variables in ~/.claude/settings.json:
| Variable | Purpose |
|---|---|
ANTHROPIC_AUTH_TOKEN | API key for the active provider |
ANTHROPIC_BASE_URL | Provider endpoint URL |
ANTHROPIC_MODEL | Default model |
ANTHROPIC_SMALL_FAST_MODEL | Fast/cheap model alias |
ANTHROPIC_DEFAULT_SONNET_MODEL | Sonnet alias |
ANTHROPIC_DEFAULT_OPUS_MODEL | Opus alias |
ANTHROPIC_DEFAULT_HAIKU_MODEL | Haiku alias |
API_TIMEOUT_MS | Request timeout (50 min for third-party providers) |
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC | Set for MiniMax compatibility |
Before any change, Swisher snapshots your current settings to ~/.claude/plugins/data/swisher/state.json. The snapshot is restored exactly when you switch back to Anthropic or run /swisher:cleanup.
Settings backups are saved to ~/.claude/plugins/data/swisher/backups/ before every write. The 10 most recent backups are retained automatically.
| Claude alias | GLM model | Context |
|---|---|---|
| Opus / Sonnet / default | glm-4.7 | 200K tokens |
| Haiku | glm-4.5-air | 128K tokens |
| Fast model | glm-4.7-flash | 128K tokens |
| Claude alias | MiniMax model | Context |
|---|---|---|
| All aliases | minimax-m2.7 | 204K tokens |
| Haiku / fast | minimax-m2.7-highspeed | 204K tokens |
MiniMax note: API keys are region-specific. The default endpoint is
api.minimax.io(international). For the China endpoint, setminimax_base_urltohttps://api.minimaxi.com/anthropicin plugin settings. MiniMax is text-only — no image/vision input support.
When you switch to GLM or MiniMax, Swisher makes a real test API call using a provider-appropriate model to verify the key works. If validation fails:
/swisher:status to see the current stateReal-time project structure, filesystem, task, Git, agent, and runtime visualization for Claude Code and Codex.
npx claudepluginhub misterwonderful/swisher --plugin swisherSpawn any third-party LLM provider with an Anthropic-compatible API (e.g. DeepSeek, GLM, Kimi, Qwen, MiniMax) as real Claude Code agent-team teammates or one-shot subagents — driven exactly like native teammates. Your main session's own auth is untouched (OAuth subscription or API key, either works); provider workers bill the provider API key via apiKeyHelper (the key never enters env/argv/history). Requires the `cc-fleet` binary on PATH, installed separately.
Teach Claude to detect, wire, and troubleshoot FreeRide — a local OpenAI-compatible gateway routing across free-tier providers (OpenRouter, Groq, NVIDIA NIM, Cloudflare Workers AI, HuggingFace).
When calling LLM APIs from Python code. When connecting to llamafile or local LLM servers. When switching between OpenAI/Anthropic/local providers. When implementing retry/fallback logic for LLM calls. When code imports litellm or uses completion() patterns.
Flagship+ skill pack for OpenRouter - 30 skills for multi-model routing, fallbacks, and LLM gateway mastery
Intelligent model routing for Claude Code - routes queries to optimal Claude model (Haiku/Sonnet/Opus) based on complexity, with persistent knowledge system, context forking, and multi-turn awareness
Delegate plan execution to Codex CLI via ASP. Part of cc-multi-cli-plugin. Requires the `multi` plugin.