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-codepowershell
npm install -g @anthropic-ai/claude-codeVerify the installation:
bash
claude --versionConfiguration
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
| Variable | Purpose |
|---|---|
ANTHROPIC_BASE_URL | model-go API endpoint, fixed at https://model-go.com |
ANTHROPIC_AUTH_TOKEN | The API token you created in model-go |
CLAUDE_CODE_ATTRIBUTION_HEADER | Set 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
claudeOn first launch, follow the prompts:
- Choose a theme and press Enter
- Confirm the security prompt and press Enter
- Trust the working directory and press Enter
- 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.