XuanShu API
Gemini CLI setup
Configure Gemini CLI with Gemini v1beta, x-goog-api-key, and the public endpoint.
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 GEMINI_API_KEY="<YOUR_API_KEY>"
export GOOGLE_GEMINI_BASE_URL="https://www.xuanshuapi.com"Gemini CLI setup
Gemini CLI uses native v1beta paths; check Models for available models and actions before calling.
Available actions and model capabilities depend on Models responses and current configuration.
Next steps
Available models, multipliers, quotas, and some advanced capabilities depend on the current key and console configuration.