XuanShu API
Claude Code setup
Configure Claude Code with the public Base URL, placeholder key, and Messages API.
Last verified:
Connection and authentication
Unified OpenAI-compatible Base URL: https://www.xuanshuapi.com/v1
OpenAI-compatible APIs use Authorization: Bearer <YOUR_API_KEY>; Claude Messages also accepts x-api-key: <YOUR_API_KEY>; Gemini v1beta uses x-goog-api-key: <YOUR_API_KEY>.
export ANTHROPIC_BASE_URL="https://www.xuanshuapi.com"
export ANTHROPIC_API_KEY="<YOUR_API_KEY>"Claude Code setup
Set the Anthropic-compatible endpoint and key, then confirm currently available Claude models in the console.
Claude models and tool support depend on the current console configuration.
Next steps
Available models, multipliers, quotas, and some advanced capabilities depend on the current key and console configuration.