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.com3. Start Claude Code
bash
claudeIf Claude Code was already open, close it and start it again so it reloads the settings.
Troubleshooting
| Problem | Fix |
|---|---|
| 404 | Remove /v1 from ANTHROPIC_BASE_URL. |
| 401 | Check that ANTHROPIC_AUTH_TOKEN contains your Claudly API key. |
| Old model still used | Restart Claude Code after changing settings.json. |