OpenClaw Configuration
What is OpenClaw
OpenClaw is an open-source personal AI assistant framework that supports chatting with AI through Telegram, Discord, WhatsApp, and other platforms.
Installation
macOS / Linux
bash
curl -fsSL https://openclaw.ai/install.sh | bashWindows (PowerShell)
powershell
iwr -useb https://openclaw.ai/install.ps1 | iexnpm Installation
bash
npm install -g openclaw@latestInitialize Configuration
Run the onboard command to initialize:
bash
openclaw onboard --install-daemonConfigure AI-TokenHub
OpenClaw supports OpenAI-compatible protocol and can directly configure AI-TokenHub as an API provider.
Method 1: Using onboard Wizard
? Select your AI provider:
> Custom (Third-party/Aggregation Platform)
? Enter the base URL:
https://ai-tokenhub.ai/api/v1
? Enter your API Key:
$YOUR_API_KEYMethod 2: Manual Configuration
Edit the config file ~/.openclaw/openclaw.json:
json
{
"model": "dola-seed-2-1-turbo-260628",
"models": {
"providers": {
"openai": {
"apiKey": "$YOUR_API_KEY",
"baseURL": "https://ai-tokenhub.ai/api/v1"
}
}
}
}Model Configuration
Using the Anthropic-Compatible Protocol
json
{
"models": {
"providers": {
"anthropic": {
"apiKey": "$YOUR_API_KEY",
"baseURL": "https://ai-tokenhub.ai/api/v1"
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "dola-seed-2-1-turbo-260628"
}
}
}
}Using GPT Models
json
{
"models": {
"providers": {
"openai": {
"apiKey": "$YOUR_API_KEY",
"baseURL": "https://ai-tokenhub.ai/api/v1"
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "openai/dola-seed-2-1-turbo-260628"
}
}
}
}Configure Multiple Models
json
{
"models": {
"mode": "merge",
"providers": {
"anthropic": {
"apiKey": "$YOUR_API_KEY",
"baseURL": "https://ai-tokenhub.ai/api/v1"
},
"openai": {
"apiKey": "$YOUR_API_KEY",
"baseURL": "https://ai-tokenhub.ai/api/v1"
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "dola-seed-2-1-turbo-260628",
"fallbacks": [
"openai/dola-seed-2-1-turbo-260628",
"openai/glm-5-3-flash-260828"
]
}
}
}
}Common Commands
View Configuration
bash
openclaw config showCheck Status
bash
openclaw gateway statusOpen Dashboard
bash
openclaw dashboardSwitch Models
Use the /model command in chat to switch models:
/model openai/dola-seed-2-1-turbo-260628FAQ
API Error
Check if the API Key is correct and the account has sufficient balance.
Connection Timeout
Check network connectivity and ensure you can access https://ai-tokenhub.ai.
Model Not Found
Ensure the model name is spelled correctly, use /model to select from the list.
