Skip to content

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 ​

RequirementDetails
LAYSO AI API keyCreate and store it securely in the LAYSO AI dashboard
Node.jsRequired for the npm installation path
Project directoryStart Claude Code from the repository root

Setup workflow ​

1. Install Claude Code ​

Open the installation guide →

2. Connect LAYSO AI ​

Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN with shell commands. No provider-manager UI is required.

Open model endpoint setup →

3. Add a status line (optional) ​

Configure CCometixLine →

4. Add Skills (optional) ​

Open the Skills guide →

Minimum configuration ​

bash
export ANTHROPIC_BASE_URL="https://api.layso.ai"
export ANTHROPIC_AUTH_TOKEN="$LAYSO_API_KEY"
claude

Run /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
SymptomCheck
401 / 403The API key and the current shell's ANTHROPIC_AUTH_TOKEN
404A path appended after the root Base URL
Unknown modelThe exact model ID shown in the dashboard
Terminal works, editor failsFully restart the editor so it reloads the environment

Next step ​

Start with Install Claude Code, then complete LAYSO AI model endpoint setup.

LAYSO AI API 文档