Hướng dẫn Config OpenClaw với model từ Claudible
Tìm tới file .openclaw/openclaw.json và thay các giá trị sau
Thay các giá trị:
• YOUR_TELEGRAM_BOT_TOKEN - Lấy từ @BotFather
• YOUR_CLAUDIBLE_API_KEY - API key claudible.io
• YOUR_TELEGRAM_USER_ID - ID Telegram (lấy từ @userinfobot)
• YOUR_SECRET_TOKEN - Tự đặt token bảo mật
``
``
{
"env": {
"TELEGRAM_BOT_TOKEN": "YOUR_TELEGRAM_BOT_TOKEN"
},
"browser": {
"attachOnly": false
},
"models": {
"providers": {
"claudible": {
"baseUrl": "https://claudible.io/v1",
"apiKey": "YOUR_CLAUDIBLE_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "claude-sonnet-4.5",
"name": "Claude Sonnet 4.5",
"api": "openai-completions",
"reasoning": false,
"input": ["text", "image"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 200000,
"maxTokens": 16384
},
{
"id": "claude-opus-4.5",
"name": "Claude Opus 4.5",
"api": "openai-completions",
"reasoning": false,
"input": ["text", "image"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 200000,
"maxTokens": 16384
},
{
"id": "claude-haiku-4.5",
"name": "Claude Haiku 4.5",
"api": "openai-completions",
"reasoning": false,
"input": ["text", "image"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 200000,
"maxTokens": 16384
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "claudible/claude-opus-4.5"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto"
},
"channels": {
"telegram": {
"enabled": true,
"dmPolicy": "pairing",
"allowFrom": ["YOUR_TELEGRAM_USER_ID"],
"groupPolicy": "allowlist",
"streamMode": "block"
}
},
"gateway": {
"mode": "local",
"auth": {
"token": "YOUR_SECRET_TOKEN"
},
"remote": {
"token": "YOUR_SECRET_TOKEN"
}
},
"plugins": {
"entries": {
"telegram": {
"enabled": true
}
}
}
}
Bình luận
Chưa có bình luận nào
Đăng nhập để bình luận