quick start

Claude Code setup

Configure Claude Code once through settings.json. No terminal exports, no extra SDK setup. settings.json

1. Get your API key

Open the dashboard, copy your Claudly API key, and keep it private.

2. Create or edit Claude Code settings

Use this file:

  • macOS / Linux: ~/.claude/settings.json
  • Windows: %USERPROFILE%\.claude\settings.json
~/.claude/settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.claudly.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-ant-api03-...",
    "ANTHROPIC_MODEL": "claude-fable-5",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5"
  }
}
Important: use the bare host. Do not add /v1 for Claude Code, it appends the Anthropic API path itself. https://api.claudly.com

3. Start Claude Code

bash
claude

If Claude Code was already open, close it and start it again so it reloads the settings.

Troubleshooting

ProblemFix
404Remove /v1 from ANTHROPIC_BASE_URL.
401Check that ANTHROPIC_AUTH_TOKEN contains your Claudly API key.
Old model still usedRestart Claude Code after changing settings.json.