Skip to content

Claude Code Setup ​

Claude Code is Anthropic's official terminal coding agent. Through Clauddy you can use it without an Anthropic account.

Cheat sheet
API endpointhttps://api.clauddy.com (no /v1)
Token groupClaude (1.0x, Claude Code only) or Unified
Config file~/.claude/settings.json, on Windows %USERPROFILE%\.claude\settings.json
Launchclaude

Choose a setup method ​

One-click script ​

bash
curl -fsSL https://docs.clauddy.com/install.sh | bash -s -- --lang en
  1. Type 1 in the menu for Claude Code. If it is not installed, the script offers to install it.
  2. Create a token in the Claude group when prompted and paste it. The script validates it live.
  3. Open a new terminal and run claude.

The script does not run in Windows PowerShell / CMD. Use CC Switch or the manual setup below. Script details →

Install Claude Code ​

Script and CC Switch users can skip this. The official installer does not need Node.js:

bash
curl -fsSL https://claude.ai/install.sh | bash
powershell
irm https://claude.ai/install.ps1 | iex
bash
npm install -g @anthropic-ai/claude-code

Open a new terminal and run claude --version to confirm.

Manual setup ​

Write three fields into the config file. Create it if it does not exist.

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.clauddy.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-clauddy-token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}
json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.clauddy.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-clauddy-token",
    "CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
  }
}
Windows: how to create and open the file

Run this in PowerShell. It opens the file in Notepad; paste the JSON above and save:

powershell
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.claude" | Out-Null
notepad "$env:USERPROFILE\.claude\settings.json"

Paste only the JSON itself, not the ``` markers.

FieldMeaning
ANTHROPIC_BASE_URLAlways https://api.clauddy.com
ANTHROPIC_AUTH_TOKENYour Clauddy token
CLAUDE_CODE_ATTRIBUTION_HEADER0 disables the attribution header

If settings.json already exists, merge just these three keys into env and keep the rest.

Verify ​

bash
cd your-project-folder
claude

The first launch asks about theme, a security notice and trusting the folder. Press Enter through them. Send any message. A reply means you are done.

Common issues ​

  • Asks you to log in / can't connect: wrong file path or misspelled field. Check the table above, then open a new terminal.
  • Your organization does not have access: ANTHROPIC_BASE_URL is not applied. Confirm it is https://api.clauddy.com with no /v1.
  • This group only allows Claude Code clients: a Claude-group token was used by another tool. Give that tool its own Unified-group token.

More in the Claude Code FAQ.

Stuck? Let an AI assistant walk you through ​

Copy this and send it to Doubao, ChatGPT, Claude, or any assistant that can read web pages
I want to connect Claude Code to Clauddy (an AI API platform). Read this tutorial in full first, then walk me through it step by step:
https://docs.clauddy.com/en/cli/claude-code

Rules:
1. After reading, ask me three things: my operating system (Windows / macOS / Linux), whether Claude Code is already installed, and whether I already have a Clauddy account and API key.
2. Guide me through ONE step at a time. Wait for my reply before moving on.
3. Use only the URLs, file paths, group names and config values from the tutorial. Do not invent model names, group names or UI options. If the tutorial does not cover something, say "not covered by the tutorial".
4. Before I edit any existing config file, remind me to back it up.
5. Write every example key as sk-xxx. Never ask me to paste my real key to you.
6. You cannot operate my computer. Never claim you changed a file for me. Tell me what to do and I will do it.
7. If a step fails, ask me to paste the full error first, then check it against the tutorial's FAQ section.

Open Doubao ↗ · Read the Claude Code guide

Clauddy | AI API 聚合平台