Setup Guide

Connect any IDE or CLI in under 30 seconds

Claude Code CLI

Recommended

Official Anthropic terminal-based AI coding assistant

1

Install Claude Code

Install the CLI globally via npm:

Terminal
npm install -g @anthropic-ai/claude-code
2

Run Setup & Start Coding

Run our one-liner — it will ask for your API key, configure everything automatically, and you're ready to go:

Recommended
Terminal (All Platforms)
npx codemax-code
Alternative: PowerShell script
PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm https://api.codemax.pro/setup.ps1 | iex

After setup completes, just run claude in any project directory to start coding.

What the setup script does
Validates your API key with Codemax servers
Configures Claude Code environment variables
Sets up ~/.claude/settings.json
Routes Claude Code to api.codemax.pro
Activates web search & image understanding
Installs Claude Code CLI if missing

Automatic Setup

Recommended

One command to configure everything

Run one command and you're done. Requires Node.js.

Recommended
Terminal (All Platforms)
npx codemax-code
Alternative: PowerShell script
PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm https://api.codemax.pro/setup.ps1 | iex
What the script does
Validates your API key
Sets Claude Code environment
Configures ~/.claude/settings.json
Routes requests to api.codemax.pro
Activates search & image understanding
Installs Claude Code CLI
Idempotent

Re-run anytime to update your key or reconfigure. The script safely merges settings without overwriting your existing config.

Manual Configuration

Step-by-step manual setup if you prefer full control

1

Configure Environment

Create or edit %USERPROFILE%\.claude\settings.json:

settings.json
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-cm-your-api-key",
    "ANTHROPIC_BASE_URL": "https://api.codemax.pro",
    "ANTHROPIC_MODEL": "claude-opus-4-8",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5-20251001",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-8",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
  }
}
2

Restart

Restart Claude Code or your IDE to apply settings.

That's all you need

Web search and image understanding are included with every Codemax key. Just point your client at https://api.codemax.pro — both work automatically, no additional configuration.

Available Models

All Claude models available through the Codemax API

Opus 4.8
Default
claude-opus-4-8

Most capable model for complex tasks

Sonnet 4.6
Balanced
claude-sonnet-4-6

Best balance of speed and intelligence

Haiku 4.5
Fast
claude-haiku-4-5-20251001

Fastest model for simple tasks

API Reference

Endpoint details for direct API integration

Base URL
https://api.codemax.pro
Endpoints
POST/v1/messages
POST/v1/chat/completions
GET/v1/models