Skip to main content

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.
With GPTProto, you can use 160+ AI models from top providers (GLM, Kimi, MiniMax, DeepSeek, and more) directly in Claude Code — all with a single API key and no code changes required.
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:
After installation, navigate to your project directory and start Claude Code:
During your first run, Claude Code will prompt you to log in to your Anthropic account. You can skip this step — we will configure GPTProto API in the next step.

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:
To make this permanent, add the export lines to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile).
Edit the Claude Code settings file at ~/.claude/settings.json:
If you manually edit settings.json, you must restart Claude Code for the changes to take effect. If running inside an IDE plugin, restart the IDE as well.

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

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:
The best approach is to assign different models to different tiers based on their strengths:
Mix and match for best results! Use a powerful model like GLM-5 for complex tasks (Opus), a balanced model like Kimi-K2.5 for main coding (Sonnet), and a fast model like DeepSeek-V3.2 for quick completions (Haiku).

Step 4: Start Using Claude Code

After configuration, start Claude Code in your project directory:
You can now use natural language to interact with your codebase:
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:
GPTProto supports 160+ models. You can use any model from the model list as long as it supports the chat completions API.

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:
  1. Close Claude Code completely (not just the current session)
  2. If using the IDE plugin, restart the IDE
  3. Verify the JSON syntax is valid
  4. Re-launch Claude Code
We recommend using the latest stable version of Claude Code for the best compatibility:

Connection issues?

If you encounter connection errors:
  1. Verify your API key is valid: visit gptproto.com dashboard
  2. Check that ANTHROPIC_BASE_URL is set to https://gptproto.com (no trailing slash)
  3. Test connectivity:

Resources