Run multiple isolated Claude Code instances side by side. Each one gets its own provider, config directory, plugins, MCP servers, and claude-<name> command.
claude-multi-demo.mov
Claude Code is great. Switching between providers and model setups is not.
If you want to try GLM today and DeepSeek tomorrow, you usually end up editing settings.json by hand, juggling env vars, swapping keys, or maintaining a bunch of shell aliases.
The other option is each provider's own CLI tool. Every tool has its own workflow, its own flags, its own way of doing things. Learning a new harness for every model gets old fast.
So I went the other way: keep one harness I already like, and put the providers behind it. It's still Claude Code under the hood, so /loop, /goal, skills, MCP servers, and plugins all keep working.
claude
claude-glm
claude-deepseek
claude-minimaxRequires Node.js 22+ or Bun 1+, and Claude Code installed globally (npm install -g @anthropic-ai/claude-code).
claude-multi installs globally with bun, npm, or pnpm.
bun add -g claude-multi
# or: npm install -g claude-multi
# or: pnpm add -g claude-multiclaude-multiThat's the only command to remember. Everything else happens in the terminal UI: pick Add new instance, and the wizard walks you through a name, a provider template, and an API key. When it finishes you have a claude-<name> command running real Claude Code against an isolated ~/.claude-<name>/ config.
Two things worth knowing:
- If the menu shows a
!health hint, press!to see what's wrong and fix it. - After upgrading claude-multi, run
claude-multi doctor checkto see pending provider template updates, thenclaude-multi doctor fixto apply them.doctor fixbacks upsettings.jsonfirst and keeps any values you changed yourself.
Full documentation: https://claude-multi.hmziq.xyz
| Provider | Endpoint | Template name |
|---|---|---|
| GLM Coding Plan | api.z.ai |
glm |
| MiniMax | api.minimax.io |
minimax |
| DeepSeek | api.deepseek.com |
deepseek |
| Xiaomi MiMo | api.xiaomimimo.com |
mimo |
| Xiaomi MiMo (Token Plan) | token-plan-cn.xiaomimimo.com |
mimo-token |
| Moonshot Kimi | api.moonshot.ai |
kimi |
| Alibaba Qwen | dashscope-intl.aliyuncs.com |
qwen |
| Alibaba Qwen Coding Plan | coding-intl.dashscope.aliyuncs.com |
qwen-coding |
Templates write ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, and related env vars into ~/.claude-<name>/settings.json. Every template maps ANTHROPIC_DEFAULT_FABLE_MODEL to its primary model, and the templates that set an effort level also set CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1. Provider sync keeps values you changed yourself and restores model slots to the current template.
Each instance is a config dir at ~/.claude-<name>/ plus a wrapper script at ~/.local/bin/claude-<name> that sets CLAUDE_CONFIG_DIR and runs the unmodified claude binary. No fork, no patch. The instance registry lives in ~/.claude-multi/config.json.
#!/bin/sh
export CLAUDE_CONFIG_DIR="/Users/you/.claude-glm"
exec "/Users/you/.local/bin/claude" "$@"Auto-sync symlinks plugins/ and skills/ back to ~/.claude/, so a plugin you install once shows up in every instance that opted in. Skip it (or toggle it later in the menu) if you want an instance fully independent.
claude-<name> command not found. Your ~/.local/bin probably isn't on PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrcBroken plugin or skill symlinks. Pick Re-sync symlinks in the TUI.
The Ink TUI renders wrong. CLAUDE_MULTI_INK=false claude-multi gets you the plain prompts UI with the same flows.
MIT. See LICENSE. Copyright (c) 2026 hmziqrs.