Setup Instructions

Welcome to the CodeMax setup guide. Our gateway operates as a drop-in replacement for the official Anthropic API. Follow the steps below sequentially to configure your environment in minutes.

Desktop Client (CC Switcher)

⭐ Highly Recommended

For the best native chat experience on your computer, we recommend using CC Switcher.

💡

Pro Tip: By using CC Switcher, Claude CLI and VS Code (Cline / Roo) will both automatically work flawlessly without needing any extra manual configuration!

  1. 1
    Download and install CC Switcher from their GitHub repository.
  2. 2
    In the app, open the Configurations tab to create a new profile.
  3. 3
    Copy the JSON below. Replace your specific Base URL and API Key in the env section, then click Save and Enable.
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-cp-your-api-key-here",
    "ANTHROPIC_BASE_URL": "https://api.codemax.pro/v1",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "Haiku 4.5",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "Opus 4.6",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "Sonnet 4.5",
    "ANTHROPIC_MODEL": "Opus 4.6",
    "ANTHROPIC_REASONING_MODEL": "Opus 4.6"
  },
  "model": "opus"
}

Claude Code CLI

Configure the official Anthropic Terminal CLI tool through environment variables.

Mac / Linux Terminal
export ANTHROPIC_API_KEY="sk-cp-your-api-key"export ANTHROPIC_BASE_URL="https://api.codemax.pro/v1"export ANTHROPIC_MODEL="claude-opus-4.6"claude
Windows PowerShell
$env:ANTHROPIC_API_KEY="sk-cp-your-api-key"$env:ANTHROPIC_BASE_URL="https://api.codemax.pro/v1"$env:ANTHROPIC_MODEL="claude-opus-4.6"claude

VS Code Setup (Cline / Roo)

Integrating with compatible AI extensions inside Visual Studio Code.

  1. 1
    Open the configuration panel of your extension (e.g., Cline).
  2. 2
    Change the AI Provider to OpenAI Compatible.
  3. 3
    Set your Custom Base URL to:https://api.codemax.pro/v1
  4. 4
    Enter your API Key: sk-cp-your-api-key
  5. 5
    Explicitly type the Model ID: claude-opus-4.6

Cursor IDE Setup

Using the proxy directly inside Cursor's configuration panel.

  1. 1
    Open Cursor Settings (Ctrl/Cmd + ,).
  2. 2
    Navigate to Models > OpenAI.
  3. 3
    Enable Override OpenAI Base URL and enter:https://api.codemax.pro/v1
  4. 4
    Provide your CodeMax key in the OpenAI API Key field.
  5. 5
    At the bottom of the Models page, click "Add custom model", type claude-opus-4.6, and verify it with the (+) button.