Client Setup
Below are setups for popular clients. Any app that supports a custom Base URL / API endpoint will work the same way.
Claude Code
bash
export ANTHROPIC_BASE_URL="https://api.nekocloud.vip"
export ANTHROPIC_AUTH_TOKEN="sk-your-key"
claudeTo make it persistent, add it to ~/.claude/settings.json (see the Claude Code docs for the exact fields).
Codex CLI
bash
export OPENAI_BASE_URL="https://api.nekocloud.vip/v1"
export OPENAI_API_KEY="sk-your-key"
codexYou can also define a custom provider in the Codex config file (see the Codex docs).
Cursor / Other AI Editors
Under the editor's "OpenAI API" custom options, set:
- Base URL:
https://api.nekocloud.vip/v1 - API Key:
sk-your-key
Any OpenAI-compatible App
For any app that lets you customize the endpoint:
- Base URL:
https://api.nekocloud.vip/v1 - API Key: your key
CC Switch Import
On the API Keys page there is an "Import to CC Switch" button that writes the configuration for you — no manual copying needed.