Configuration Guides
Step-by-step tutorials for integrating KuaiAPI with your favorite tools.
Using KuaiAPI with OpenClaw
1
Step 1: Get Auth Token
Create an API token from the KuaiAPI dashboard:
- Visit the KuaiAPI dashboard at api.kuaiapi.xyz api.kuaiapi.xyz
- Click "Add Token"
- Select group: Claude Code
- Set quota to unlimited
2
Step 2: Save API Key as Environment Variable
Add your API key to your shell profile so it persists across sessions:
bash
echo 'export ANTHROPIC_API_KEY="your-token-key"' >> ~/.zshrc
source ~/.zshrc3
Step 3: Configure openclaw.json
Create or edit the OpenClaw configuration file:
Path: ~/.openclaw/openclaw.json
json
{
"models": {
"providers": {
"kuaiapi": {
"baseUrl": "https://api.kuaiapi.xyz/v1",
"apiKey": "your-token-key",
"api": "anthropic-messages",
"models": [
{"id": "claude-sonnet-4-6", "name": "Claude Sonnet 4.6"},
{"id": "claude-opus-4-7", "name": "Claude Opus 4.7", "contextWindow": 1000000},
{"id": "claude-haiku-4-5-20251001", "name": "Claude Haiku 4.5"}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "kuaiapi/claude-sonnet-4-6",
"fallbacks": ["kuaiapi/claude-opus-4-7"]
}
}
}
}4
Step 4: Verify
Verify your configuration by listing available models:
bash
openclaw models listNeed help? Have questions?
Contact Support