spiderai
Log inGet an API key

DOC 03Clients

Claude Code Setup Guide

Install Claude Code and configure the spiderai endpoint and API key on Windows, macOS and Linux.

Tested 2026-11-04 · Claude Code 2.1.317
Your system

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.

BASH
curl -fsSL https://spiderai.fun/install/claude-code.sh | bash
Tip
Restart open terminals and Claude Code sessions after the configuration is saved.
Tip
A key from any Claude group works with Claude Code. Create one on API Keys. The Claude for Claude Code group works only with Claude Code.
Alternative: install Claude Code manuallyExpand this to review the commands or if the setup script is unavailable.
Note
Before installing manually, complete the Node.js installation guide.

Step 1: Install Claude Code

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

Verify installation:

TERMINAL
claude --version

Step 2: Configure environment variables

Set these values in your current terminal or in your system environment.

ANTHROPIC_BASE_URLEndpoint, without /v1
https://api.spiderai.fun
ANTHROPIC_AUTH_TOKENYour API key
your-key
ANTHROPIC_MODELDefault model
claude-opus-5-5
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICTurns off nonessential telemetry; keep it
1

Temporary (current terminal only):

BASH
export 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
claude

Persistent (applies to new terminals):

BASH
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 ~/.bashrc
Tip
Replace your-key with an API key copied from API Keys.

Start using Claude Code

Run the following from your project directory:

TERMINAL
claude

Claude Code analyzes the current project and helps you work with its code. For more information, see the Anthropic documentation.