Claude Code Integration
1. Prerequisites
- Registered and obtained a platform API Key.
- Node.js environment installed.
2. Installation & Configuration
- Install Claude Code globally:bash
npm install -g @anthropic-ai/claude-code - Configure environment variables:
bash
# Edit or create the `settings.json` file
# MacOS & Linux: `~/.claude/settings.json`
# Windows: `User Directory/.claude/settings.json`
# Add or modify the env field
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_BASE_URL": "https://aiwith.chat",
"API_TIMEOUT_MS": "3000000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1
}
}Replace
YOUR_API_KEYwith your platform API Key.
3. Launch Claude Code
bash
claudeEnter your question in the dialog to experience Claude Code's intelligent programming capabilities.
4. Using Non-Claude Models
bash
# You can use other models by setting the model, for example `gpt-5.3-codex`.
# Note: ANTHROPIC_DEFAULT_HAIKU_MODEL and ANTHROPIC_DEFAULT_SONNET_MODEL
# can be set to cheaper models for simple tasks.
{
"env": {
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "gpt-5.3-codex",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "gpt-5.3-codex",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "gpt-5.3-codex"
}
}