Claude Code Installation and Configuration
Installation
npm install -g @anthropic-ai/claude-codeWindows Configuration
Method 1: Configure settings.json (Recommended)
-
Navigate to the
.claudefolder in your user directory, for example:C:\Users\xxxxxx\.claude- Note: If you cannot see this folder, you may need to enable the option to show hidden items in Windows
-
Create
~/.claude/settings.jsonfile with the following content:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-api-key-here",
"ANTHROPIC_BASE_URL": "https://api.cubence.com",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1
},
"permissions": {
"allow": [],
"deny": []
},
"apiKeyHelper": "echo 'your-api-key-here'"
}Note: Please replace your-api-key-here with the API Key created on the platform
- Start using
claudeMethod 2: PowerShell or CMD Configuration (Current window only)
PowerShell:
$env:ANTHROPIC_BASE_URL="https://api.cubence.com"
$env:ANTHROPIC_API_KEY="your-api-key-here"CMD:
set ANTHROPIC_BASE_URL=https://api.cubence.com
set ANTHROPIC_API_KEY=your-api-key-hereNote: Please replace your-api-key-here with the API Key created on the platform
macOS Configuration
Method 1: Configure settings.json (Recommended)
Create ~/.claude/settings.json file with the following content:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-api-key-here",
"ANTHROPIC_BASE_URL": "https://api.cubence.com",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1
},
"permissions": {
"allow": [],
"deny": []
},
"apiKeyHelper": "echo 'your-api-key-here'"
}Note: Please replace your-api-key-here with the API Key created on the platform
Method 2: Terminal Configuration (Current window only)
Execute in terminal:
export ANTHROPIC_BASE_URL="https://api.cubence.com"
export ANTHROPIC_API_KEY="your-api-key-here"Note: Please replace your-api-key-here with the API Key created on the platform
Last updated on