macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash
claude --versionWindows
winget install Anthropic.ClaudeCode
claude --version設定 TokenPilot
bash / zsh
export ANTHROPIC_BASE_URL="https://api.tokentpilot.com"
export ANTHROPIC_AUTH_TOKEN="$TOKENPILOT_API_KEY"
claude --model REPLACE_WITH_MODEL_IDPowerShell
$env:ANTHROPIC_BASE_URL = "https://api.tokentpilot.com"
$env:ANTHROPIC_AUTH_TOKEN = $env:TOKENPILOT_API_KEY
claude --model REPLACE_WITH_MODEL_ID確認連線
先設定 TOKENPILOT_API_KEY。在專案目錄啟動 Claude Code,執行 /status 後發出一條簡短提示,並檢查 TokenPilot 用量記錄。/v1/messages 成功即可確認基本路由,個別功能可能另需其他端點。