Skip to main content
Point Claude Code’s model endpoint at WaveAPI to use Claude, GPT, Gemini, DeepSeek, GLM, Kimi, Qwen and other text models in Claude Code.

Prerequisites

  • Claude Code CLI installed; claude --version prints a version. See the Claude Code docs for installation.
  • An API key created in the console.

Configure

Edit ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json) and add env:
Restart Claude Code after saving.
Do not put these in a project’s .claude/settings.json; that file is committed with the repository.

Option 2: environment variables

These apply to the current terminal only; for permanent use add them to ~/.zshrc or the system environment.
When using a non-Claude model, set ANTHROPIC_MODEL and all three ANTHROPIC_DEFAULT_*_MODEL variables to WaveAPI model IDs. Otherwise Claude Code sends background requests with its built-in Claude model names.

VS Code extension

Set the same variables in your VS Code user settings (Preferences: Open User Settings (JSON)):

Verify

A reply means the configuration works.

Available models

Every text model can be used in Claude Code except:
  • The GPT-5.6 and GPT-6 series: gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra, gpt-6-luna, gpt-6-sol
  • gpt-5-pro, gpt-5.2-pro, gpt-5.4-pro, gpt-5.3-codex, o3-pro
Model IDs and prices are in the Text models overview. Switch models in Claude Code with /model <model ID>.

Generate images and videos

Claude Code can also generate images, videos and audio through WaveAPI’s MCP tools; see MCP & Skill.

Common errors