Back to use cases
Developer with existing accounts · GLMDeepSeekMiniMax

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

Terminal window
claude-multi

Pick Add new instance. The wizard walks you through:

  1. Name your instance — something short like glm, deepseek, minimax
  2. Pick a template — claude-multi sets the base URL, model name, and required env vars
  3. Paste your key — it is masked while you type and stored in the instance’s own settings.json
  4. Confirm paths — config at ~/.claude-<name>/, binary at ~/.local/bin/claude-<name>
  5. Done — run claude-glm (or whatever you named it)
Terminal window
claude-glm "explain this concurrency bug"

That is a full Claude Code session, using your GLM key, with its own config directory.

Available templates

TemplateProviderWhat it sets
glmGLM / Z.aiANTHROPIC_BASE_URL, ANTHROPIC_MODEL
minimaxMiniMaxEndpoint and model for MiniMax
deepseekDeepSeekEndpoint and model for DeepSeek
mimoXiaomi MiMoXiaomi’s coding endpoint
kimiMoonshot KimiMoonshot’s API
qwenAlibaba QwenAlibaba’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.

Terminal window
# Check what is stored
claude-multi
# Pick: Instance details
# Select your instance to see the full config

Multiple keys, multiple instances

You are not limited to one. Create an instance for each provider you have access to:

Terminal window
claude-glm # your GLM account
claude-deepseek # your DeepSeek account
claude-minimax # your MiniMax account

All of them run the same Claude Code binary. Same interface, same skills, different brain behind the curtain.