Claude Code / Claude Desktop Setup
Anthropic's official CLI tool and desktop client can both connect through the I Code Easy API gateway.
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"
Do not set CLAUDE_CODE_ATTRIBUTION_HEADER=0; some Claude Code-only channels validate the native client attribution metadata.
If api.icodeeasy.cc is slow from your network, change ANTHROPIC_BASE_URL to https://jp.icodeeasy.cc or https://sg.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 API 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")
If api.icodeeasy.cc is slow from your network, change ANTHROPIC_BASE_URL to https://jp.icodeeasy.cc or https://sg.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")
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 gateway through Developer Mode.
Enable Developer Mode
In the menu bar, click Help -> Troubleshooting -> Enable Developer mode, then restart Claude Desktop.
Configure Gateway
After restart, click Developer -> Configure third-party inference in the menu bar and fill in:
| Field | Value |
|---|---|
| Connection | Gateway |
| Base URL | https://api.icodeeasy.cc |
| API key | your API Key |
If api.icodeeasy.cc is slow from your network, change Base URL to https://jp.icodeeasy.cc or https://sg.icodeeasy.cc.
Set Model
Enter the model name you want to use, such as claude-opus-5, claude-sonnet-4-6, kimi-k2.7, or glm-5.3, save, and restart Claude Desktop. Claude models can use the Claude endpoints.
To pin Claude Fable 5, see the Claude Fable 5 Guide.
Related guides
Claude Fable 5 Guide
Choose Claude Fable 5 for suitable tasks, use the correct model identifier, and verify the model through Claude Code and example requests.
Codex Setup
Install Codex CLI, store the API key in auth.json, configure the I Code Easy provider and Base URL, and start a first Codex session.
FAQ
Troubleshoot API keys, 401 and 429 responses, Windows environment variables, client connectivity, quotas, and support reporting.