Use Your Own API Key from Any Provider
The problem
You already have API keys and billing set up with providers like GLM, DeepSeek, or MiniMax. You want to use those accounts through Claude Code without switching tools or rewriting configs.
The fix
Use claude-multi's provider templates to wire your existing key into an isolated Claude Code instance. One setup, one command, done.
Bring what you already have
If you are paying for API access to GLM, DeepSeek, MiniMax, or any OpenAI-compatible provider, you should not have to learn a new tool to use it. claude-multi takes the key you already have and wraps it in the Claude Code interface you already know.
The setup
claude-multiPick Add new instance. The wizard walks you through:
- Name your instance — something short like
glm,deepseek,minimax - Pick a template — claude-multi sets the base URL, model name, and required env vars
- Paste your key — it is masked while you type and stored in the instance’s own
settings.json - Confirm paths — config at
~/.claude-<name>/, binary at~/.local/bin/claude-<name> - Done — run
claude-glm(or whatever you named it)
claude-glm "explain this concurrency bug"That is a full Claude Code session, using your GLM key, with its own config directory.
Available templates
| Template | Provider | What it sets |
|---|---|---|
glm | GLM / Z.ai | ANTHROPIC_BASE_URL, ANTHROPIC_MODEL |
minimax | MiniMax | Endpoint and model for MiniMax |
deepseek | DeepSeek | Endpoint and model for DeepSeek |
mimo | Xiaomi MiMo | Xiaomi’s coding endpoint |
kimi | Moonshot Kimi | Moonshot’s API |
qwen | Alibaba Qwen | Alibaba’s international endpoint |
What happens with your key
The key gets written to ~/.claude-<name>/settings.json as part of the ANTHROPIC_AUTH_TOKEN env var. claude-multi does not send it anywhere. It stays on your machine, in a file that only you (and the Claude Code process) can read.
# Check what is storedclaude-multi# Pick: Instance details# Select your instance to see the full configMultiple keys, multiple instances
You are not limited to one. Create an instance for each provider you have access to:
claude-glm # your GLM accountclaude-deepseek # your DeepSeek accountclaude-minimax # your MiniMax accountAll of them run the same Claude Code binary. Same interface, same skills, different brain behind the curtain.