DOC 03Clients
Claude Code Setup Guide
Install Claude Code and configure the spiderai endpoint and API key on Windows, macOS and Linux.
Install and connect with the setup script. It detects Node.js and Claude Code, helps install what is missing, and writes the configuration. The copied command does not contain your key.
Choose the setup script for your system
Copy the command for your system, run it, and enter your API key when prompted.
irm https://spiderai.fun/install/claude-code.ps1 | iexcurl -fsSL https://spiderai.fun/install/claude-code.sh | bashAlternative: install Claude Code manuallyExpand this to review the commands or if the setup script is unavailable.
Step 1: Install Claude Code
npm install -g @anthropic-ai/claude-codesudo npm install -g @anthropic-ai/claude-codenpm install -g @anthropic-ai/claude-codemacOS / Linux / WSL:
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell:
irm https://claude.ai/install.ps1 | iexVerify installation:
claude --versionStep 2: Configure environment variables
Set these values in your current terminal or in your system environment.
ANTHROPIC_BASE_URLEndpoint, without /v1https://api.spiderai.funANTHROPIC_AUTH_TOKENYour API keyyour-keyANTHROPIC_MODELDefault modelclaude-opus-5-5CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICTurns off nonessential telemetry; keep it1
Temporary (current terminal only):
set ANTHROPIC_BASE_URL=https://api.spiderai.fun
set ANTHROPIC_AUTH_TOKEN=your-key
set ANTHROPIC_MODEL=claude-opus-5-5
set CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
cd your-project
claude$env:ANTHROPIC_BASE_URL="https://api.spiderai.fun"
$env:ANTHROPIC_AUTH_TOKEN="your-key"
$env:ANTHROPIC_MODEL="claude-opus-5-5"
$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
cd your-project
claudeexport ANTHROPIC_BASE_URL="https://api.spiderai.fun"
export ANTHROPIC_AUTH_TOKEN="your-key"
export ANTHROPIC_MODEL="claude-opus-5-5"
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
cd your-project
claudePersistent (applies to new terminals):
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://api.spiderai.fun", [System.EnvironmentVariableTarget]::User)
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "your-key", [System.EnvironmentVariableTarget]::User)
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_MODEL", "claude-opus-5-5", [System.EnvironmentVariableTarget]::User)
[System.Environment]::SetEnvironmentVariable("CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC", "1", [System.EnvironmentVariableTarget]::User)echo 'export ANTHROPIC_BASE_URL="https://api.spiderai.fun"' >> ~/.bashrc
echo 'export ANTHROPIC_AUTH_TOKEN="your-key"' >> ~/.bashrc
echo 'export ANTHROPIC_MODEL="claude-opus-5-5"' >> ~/.bashrc
echo 'export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1' >> ~/.bashrc
source ~/.bashrcecho 'export ANTHROPIC_BASE_URL="https://api.spiderai.fun"' >> ~/.zshrc
echo 'export ANTHROPIC_AUTH_TOKEN="your-key"' >> ~/.zshrc
echo 'export ANTHROPIC_MODEL="claude-opus-5-5"' >> ~/.zshrc
echo 'export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1' >> ~/.zshrc
source ~/.zshrcyour-key with an API key copied from API Keys.Start using Claude Code
Run the following from your project directory:
claudeClaude Code analyzes the current project and helps you work with its code. For more information, see the Anthropic documentation.