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 endpoint | https://api.clauddy.com (no /v1) |
| Token group | Claude (1.0x, Claude Code only) or Unified |
| Config file | ~/.claude/settings.json, on Windows %USERPROFILE%\.claude\settings.json |
| Launch | claude |
Choose a setup method
One-click script
curl -fsSL https://docs.clauddy.com/install.sh | bash -s -- --lang en- Type
1in the menu for Claude Code. If it is not installed, the script offers to install it. - Create a token in the Claude group when prompted and paste it. The script validates it live.
- 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:
curl -fsSL https://claude.ai/install.sh | bashirm https://claude.ai/install.ps1 | iexnpm install -g @anthropic-ai/claude-codeOpen 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.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.clauddy.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-clauddy-token",
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0"
}
}{
"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:
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.
| Field | Meaning |
|---|---|
ANTHROPIC_BASE_URL | Always https://api.clauddy.com |
ANTHROPIC_AUTH_TOKEN | Your Clauddy token |
CLAUDE_CODE_ATTRIBUTION_HEADER | 0 disables the attribution header |
If settings.json already exists, merge just these three keys into env and keep the rest.
Verify
cd your-project-folder
claudeThe 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_URLis not applied. Confirm it ishttps://api.clauddy.comwith 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
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.
