Skip to content

Claude Code Setup

Claude Code is Anthropic's official AI coding assistant CLI. With Clauddy, you can use it without an Anthropic account.

Prerequisites

Install

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

Verify: claude --version

Configuration

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://clauddy.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-clauddy-token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}
json
// 1. Press Win+R, type %USERPROFILE% and press Enter
// 2. Create a .claude folder (note the dot prefix)
// 3. Create settings.json inside .claude with:
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://clauddy.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-clauddy-token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}

Creating .claude folder on Windows

Windows Explorer won't let you create folders starting with .. Use CMD:

powershell
mkdir "%USERPROFILE%\.claude"

Config Reference

VariableDescription
ANTHROPIC_BASE_URLClauddy API endpoint: https://clauddy.com
ANTHROPIC_AUTH_TOKENYour Clauddy API token
CLAUDE_CODE_ATTRIBUTION_HEADERSet to 0 to disable attribution header

Launch

Navigate to your project directory and start:

bash
cd your-project-folder
claude

First launch setup:

  1. Select theme (press Enter)
  2. Confirm security notice (Enter)
  3. Trust working directory (Enter)
  4. Start coding! 🚀

Troubleshooting

If you see login errors after configuration, see Claude Code FAQ.

WARNING

Make sure your token group includes Claude models.

Clauddy | AI API 聚合平台