Skip to Content
EnClaude Code Setup

Claude Code Installation and Configuration

Installation

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

Windows Configuration

  1. Navigate to the .claude folder 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
    claude_win_json
  2. 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

  1. Start using
claude

Method 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-here

Note: Please replace your-api-key-here with the API Key created on the platform

macOS Configuration

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