What is Claude Code?
Claude Code is an intelligent coding tool developed by Anthropic that runs in your terminal. It helps developers quickly complete code generation, debugging, refactoring, and other tasks through natural language commands.GPTProto provides a fully Anthropic-compatible API endpoint. Claude Code will display model names like
claude-sonnet-4-20250514, but the actual model running behind the scenes is your chosen model (e.g., GLM-5, Kimi-K2.5, etc.).Step 1: Install Claude Code
Prerequisites: Node.js 18+ Install Claude Code globally via npm:Step 2: Configure GPTProto API
Option A: Quick Setup (Environment Variables)
The fastest way to get started. Set these environment variables before launching Claude Code:Option B: Configuration File (Recommended)
Edit the Claude Code settings file at~/.claude/settings.json:
Step 3: Choose Your Model
By default, Claude Code maps its internal model tiers to specific models. With GPTProto, you can customize which model powers each tier.Default Model Mapping
| Claude Code Tier | Environment Variable | Default Model | Description |
|---|---|---|---|
| Opus (Heavy tasks) | ANTHROPIC_DEFAULT_OPUS_MODEL | claude-opus-4-20250514 | Complex reasoning, architecture |
| Sonnet (Main) | ANTHROPIC_DEFAULT_SONNET_MODEL | claude-sonnet-4-20250514 | Primary coding model |
| Haiku (Light tasks) | ANTHROPIC_DEFAULT_HAIKU_MODEL | claude-haiku-3-5-20241022 | Quick completions, small edits |
Use GLM Models
To use Zhipu GLM models in Claude Code, add to~/.claude/settings.json:
Use Kimi Models
To use Moonshot Kimi models:Use MiniMax Models
To use MiniMax models:Use DeepSeek Models
To use DeepSeek models:Mix and Match (Recommended)
The best approach is to assign different models to different tiers based on their strengths:Step 4: Start Using Claude Code
After configuration, start Claude Code in your project directory:Claude Code will show model names like
claude-sonnet-4-20250514 in the UI, but the actual model running is your configured GPTProto model (e.g., GLM-5, Kimi-K2.5, etc.). This is expected behavior.Available Models
Here are the recommended models available through GPTProto for coding tasks:| Model | Provider | Best For | Speed |
|---|---|---|---|
glm-5 | Zhipu | Complex reasoning, full-stack development | ⭐⭐⭐ |
glm-4.7 | Zhipu | Balanced coding, debugging | ⭐⭐⭐⭐ |
glm-4.5-air | Zhipu | Quick completions, lightweight tasks | ⭐⭐⭐⭐⭐ |
kimi-k2.5 | Moonshot | Long context, code analysis | ⭐⭐⭐⭐ |
MiniMax-M2.5 | MiniMax | General coding, creative tasks | ⭐⭐⭐⭐ |
deepseek-v3.2 | DeepSeek | Code generation, math | ⭐⭐⭐⭐ |
qwen3-235b | Qwen | Multilingual, reasoning | ⭐⭐⭐ |
FAQ
How to switch models?
You can switch models at any time by updating the environment variables in~/.claude/settings.json and restarting Claude Code.
Alternatively, set environment variables directly in your terminal before launching:
Why does the UI still show “Claude” model names?
This is by design. Claude Code internally uses Anthropic model identifiers. GPTProto acts as a transparent proxy — it receives requests with Claude model names and routes them to your configured model. The functionality is identical; only the display name differs.Manual config changes not taking effect?
If you edited~/.claude/settings.json manually:
- Close Claude Code completely (not just the current session)
- If using the IDE plugin, restart the IDE
- Verify the JSON syntax is valid
- Re-launch Claude Code
Recommended Claude Code version?
We recommend using the latest stable version of Claude Code for the best compatibility:Connection issues?
If you encounter connection errors:- Verify your API key is valid: visit gptproto.com dashboard
- Check that
ANTHROPIC_BASE_URLis set tohttps://gptproto.com(no trailing slash) - Test connectivity:
Resources
- GPTProto Dashboard: gptproto.com
- GPTProto API Docs: docs.gptproto.com
- Claude Code Official Docs: docs.anthropic.com/claude-code
- Node.js Download: nodejs.org

