Client Setup

Claude Code

Configure Claude Code to use Sun API

Before you start

  1. Complete the environment check
  2. Select a Claude group such as Claude-MAX or Claude-anti (see Choosing a Claude group)
  3. Copy an API token

Configuration

Claude Code configuration

export ANTHROPIC_BASE_URL="https://api.sunai.lol"
export ANTHROPIC_API_KEY="sk-your-token"

Windows PowerShell:

$env:ANTHROPIC_BASE_URL="https://api.sunai.lol"
$env:ANTHROPIC_API_KEY="sk-your-token"

Model name

Open Models & Pricing, select your Claude group, and copy the exact model name.

Verify the connection

Start Claude Code and send a short message. If the model is not found, check the token group and model name again. See the FAQ.

On this page