Skip to content

Claude Code Setup ​

Claude Code is Anthropic's official coding assistant CLI. Through model-go, you can use Anthropic-compatible models directly.

Prerequisites ​

  • You have created an API token in model-go
  • You have installed Node.js 18+ Environment Check

Install ​

bash
npm install -g @anthropic-ai/claude-code
powershell
npm install -g @anthropic-ai/claude-code

Verify the installation:

bash
claude --version

Configuration ​

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://model-go.com",
    "ANTHROPIC_AUTH_TOKEN": "your model-go token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}
json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://model-go.com",
    "ANTHROPIC_AUTH_TOKEN": "your model-go token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}

Creating the .claude folder on Windows ​

Windows File Explorer does not let you create folders that start with . directly. Use CMD instead:

powershell
mkdir "%USERPROFILE%\.claude"

Configuration Notes ​

VariablePurpose
ANTHROPIC_BASE_URLmodel-go API endpoint, fixed at https://model-go.com
ANTHROPIC_AUTH_TOKENThe API token you created in model-go
CLAUDE_CODE_ATTRIBUTION_HEADERSet to 0 to disable the attribution header

Launch ​

After saving the config, open a terminal in your project directory and start Claude Code:

bash
cd your-project-folder
claude

On first launch, follow the prompts:

  1. Choose a theme and press Enter
  2. Confirm the security prompt and press Enter
  3. Trust the working directory and press Enter
  4. Start coding

Common Issues ​

If Claude Code still asks you to sign in or fails to connect, check the Claude Code FAQ.

WARNING

Make sure the token belongs to a group that includes Claude models. If the group does not include Claude models, requests will fail.