Claude Code

Prerequisites

ItemValue
Commandclaude
Modelauto (not configurable)
JoyToken Base URLhttps://api.joytokens.ai/anthropic
API key envANTHROPIC_API_KEY

Configure

Replace sk-xxx with your JoyToken API key:

export ANTHROPIC_BASE_URL="https://api.joytokens.ai/anthropic"
export ANTHROPIC_API_KEY="sk-xxx"

Start

cd /path/to/your/project
claude --model auto

Verify

claude --model auto -p "Reply with exactly: pong"

A successful response includes pong.

Common Errors

ErrorFix
401 UnauthorizedCheck that ANTHROPIC_API_KEY contains a valid JoyToken API key
Claude Code uses another endpointCheck that ANTHROPIC_BASE_URL is set in the current shell
Model not foundStart Claude Code with --model auto

Resources