DocsIntegrationClaude Code

Claude Code

Anthropic Messages. Base is the site root.

Prerequisites
Signed in with balance · key created in the right group (create a key) · model IDs from the models table or /v1/models

Protocol details: protocol checklist. Get Messages working first:

bash
curl https://api.daoxe.com/v1/messages \
  -H "x-api-key: sk-xxxx" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "copy from /v1/models",
    "max_tokens": 64,
    "messages": [{"role":"user","content":"ping"}]
  }'

Environment variables / settings

bash
export ANTHROPIC_BASE_URL="https://api.daoxe.com"
export ANTHROPIC_API_KEY="sk-xxxx"
json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.daoxe.com",
    "ANTHROPIC_API_KEY": "sk-xxxx"
  }
}

Directory: ~/.claude. Verify with claude. If curl works but the CLI fails: check for a stray /v1 or overriding env vars. Original doc: CLAUDE_CODE.md. Prefer a GUI? See CC Switch.