Claude Code / Claude Desktop Setup

Anthropic's official CLI tool and desktop client can both connect through the relay service.

MacOS users are encouraged to use iTerm2 for a better terminal experience.

Step 1: Install Claude Code

MacOS / Linux / WSL

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell

irm https://claude.ai/install.ps1 | iex

Windows CMD

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

The native installer updates Claude Code automatically in the background.

npm installation (after completing Environment Setup)

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

Step 2: Configure API

Linux / MacOS

Add the following to ~/.bashrc or ~/.zshrc (default model recommendation: kimi-k2.7):

export ANTHROPIC_AUTH_TOKEN="your API Key"
export ANTHROPIC_BASE_URL="https://api.icodeeasy.cc"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
export CLAUDE_CODE_ATTRIBUTION_HEADER="0"

If api.icodeeasy.cc is slow from your network, change ANTHROPIC_BASE_URL to https://jp.icodeeasy.cc.

Save the file and run source ~/.bashrc or source ~/.zshrc.

Windows

Run in PowerShell:

# Set API key
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "your API Key", "User")

# Set relay base URL
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://api.icodeeasy.cc", "User")

# Disable non-essential traffic
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC", "1", "User")

# Disable attribution header
[Environment]::SetEnvironmentVariable("CLAUDE_CODE_ATTRIBUTION_HEADER", "0", "User")

If api.icodeeasy.cc is slow from your network, change ANTHROPIC_BASE_URL to https://jp.icodeeasy.cc.

Open a new PowerShell window after setting environment variables.

Verify user-level environment variables in the new window:

[Environment]::GetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "User")
[Environment]::GetEnvironmentVariable("ANTHROPIC_BASE_URL", "User")
[Environment]::GetEnvironmentVariable("CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC", "User")
[Environment]::GetEnvironmentVariable("CLAUDE_CODE_ATTRIBUTION_HEADER", "User")

SetEnvironmentVariable writes persistent user-level variables. It does not update the current PowerShell session. Open a new PowerShell window before starting claude.


Step 3: Start Claude Code

cd your-project-folder
claude

Claude Desktop Configuration

Claude Desktop can connect to a third-party relay through Developer Mode.

Enable Developer Mode

In the menu bar, click Help -> Troubleshooting -> Enable Developer mode, then restart Claude Desktop.

Configure Relay

After restart, click Developer -> Configure third-party inference in the menu bar and fill in:

FieldValue
ConnectionGateway
Base URLhttps://api.icodeeasy.cc
API keyyour API Key

If api.icodeeasy.cc is slow from your network, change Base URL to https://jp.icodeeasy.cc.

Set Model

Enter the model name you want to use, such as claude-sonnet-4-6, kimi-k2.7, or glm-5.2, save, and restart Claude Desktop.