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 RecommendedFor 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!
- 1Download and install CC Switcher from their GitHub repository.
- 2In the app, open the Configurations tab to create a new profile.
- 3Copy the JSON below. Replace your specific Base URL and API Key in the
envsection, 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.
- 1Open the configuration panel of your extension (e.g., Cline).
- 2Change the AI Provider to OpenAI Compatible.
- 3Set your Custom Base URL to:
https://api.codemax.pro/v1 - 4Enter your API Key:
sk-cp-your-api-key - 5Explicitly type the Model ID:
claude-opus-4.6
Cursor IDE Setup
Using the proxy directly inside Cursor's configuration panel.
- 1Open Cursor Settings (Ctrl/Cmd + ,).
- 2Navigate to Models > OpenAI.
- 3Enable Override OpenAI Base URL and enter:
https://api.codemax.pro/v1 - 4Provide your CodeMax key in the OpenAI API Key field.
- 5At the bottom of the Models page, click "Add custom model", type
claude-opus-4.6, and verify it with the (+) button.