Back to FAQ
Terminal window
Terminal window
Usage
How do I create a new instance for a provider?
Two ways: the interactive TUI or a single CLI command.
Interactive TUI
claude-multiPick Add new instance from the menu. You’ll walk through these steps:
- Instance Name, a short alias like
deepseekorglm - Provider Template, choose from the list, or skip for a manual setup
- API Key, paste your key (input is masked)
- Paths, confirm the config directory and wrapper script locations
- Copy Options, optionally copy settings from your primary
~/.claudeinstall - Select Plugins, pick which plugins to bring over
- Auto-Sync, turn on symlink-based plugin syncing from
~/.claude
The instance is created and you’re back at the menu.
CLI command
claude-multi add deepseek --provider deepseek --api-key sk-your-keyAvailable flags:
| Flag | What it does |
|---|---|
--provider <name> | Template to use (glm, minimax, deepseek, mimo, kimi, qwen, etc.) |
--api-key <key> | API key for the provider |
--copy-settings | Copy settings from ~/.claude |
--copy-plugins | Copy plugins from ~/.claude |
--copy-mcp | Copy MCP server configs from ~/.claude |
--auto-sync | Enable auto-sync for plugins and skills |
What happens under the hood
Four things:
- A directory is created at
~/.claude-multi/<name>/with its ownsettings.jsonand.claude.json - Provider env vars (base URL, model mappings) are merged into the instance settings
- If auto-sync is on, plugins and skills get symlinked from
~/.claude - A wrapper script is generated that sets
CLAUDE_CONFIG_DIRand execs the realclaudebinary
After that, run claude-<name> (e.g. claude-deepseek) to launch Claude Code with that provider.
Related questions
- How does plugin syncing work?: keep plugins in sync across instances
- How do I manage MCP servers?: copy MCP configs to new instances
- How do I remove an instance?: the reverse of this process
More info
- /blog/inside-claude-multi-every-menu/: detailed walkthrough of the creation wizard
- /docs/getting-started/: first instance setup
- /docs/usage/: full CLI reference
- Run
claude-multiand select Add new instance to try it - src/ink/screens/AddInstance.tsx: the TUI wizard code
- src/config.ts:
addInstance()implementation - src/wrapper.ts: wrapper generation