Claude Code Setup
Claude Code is Anthropic's AI coding CLI. LAYSO AI's Anthropic-compatible endpoint lets you use one API key across the models available on the platform.
One key for platform models
LAYSO AI bills at the selected model's current price. Every successful request has an itemized charge; failed tasks are not charged.
Before you start
| Requirement | Details |
|---|---|
| LAYSO AI API key | Create and store it securely in the LAYSO AI dashboard |
| Node.js | Required for the npm installation path |
| Project directory | Start Claude Code from the repository root |
Setup workflow
1. Install Claude Code
2. Connect LAYSO AI
Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN with shell commands. No provider-manager UI is required.
3. Add a status line (optional)
4. Add Skills (optional)
Minimum configuration
bash
export ANTHROPIC_BASE_URL="https://api.layso.ai"
export ANTHROPIC_AUTH_TOKEN="$LAYSO_API_KEY"
claudeRun /status inside Claude Code to inspect the active connection and model. Copy exact model IDs from the LAYSO AI dashboard.
Authentication troubleshooting
bash
printf 'Base URL: %s\n' "$ANTHROPIC_BASE_URL"
test -n "$ANTHROPIC_AUTH_TOKEN" && echo 'Auth token: configured' || echo 'Auth token: missing'
claude --version| Symptom | Check |
|---|---|
401 / 403 | The API key and the current shell's ANTHROPIC_AUTH_TOKEN |
404 | A path appended after the root Base URL |
| Unknown model | The exact model ID shown in the dashboard |
| Terminal works, editor fails | Fully restart the editor so it reloads the environment |
Next step
Start with Install Claude Code, then complete LAYSO AI model endpoint setup.
