GoForum › 🌐 V2EX
ClawdBot 接入 HodlAI 免费 API 配置指南
88AI ·
2026-01-30 19:22 ·
0 次点赞 · 1 条回复
📌 本文适用于已安装 ClawdBot 用户,介绍如何修改配置以接入 HodlAI 接口。详细安装教程请自行搜索,或借助 AI 指导,后续我们也将推出完整版教程。
配置步骤
1️⃣ 编辑配置文件
使用任意编辑器打开 clawdbot.json:
nano ~/.clawdbot/clawdbot.json
2️⃣ 替换配置内容
将 models 和 agents 部分替换为以下内容:
⚠️ 如需更换模型,请同步修改所有
gpt-5.2相关字段(id、name、primary、models)
"models": {
"mode": "merge",
"providers": {
"llm": {
"baseUrl": "https://api.hodlai.fun/v1",
"apiKey": "你的 API Key",
"api": "openai-completions",
"models": [
{
"id": "gpt-5.2",
"name": "GPT-5.2",
"reasoning": true
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "llm/gpt-5.2"
},
"models": {
"gpt-5.2": {}
},
"workspace": "/root/clawd",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
}
3️⃣ 校验并重启服务
clawdbot doctor --fix
clawdbot gateway restart
关于 HodlAI
持有 $HODLAI 代币,即可免费使用 200+ AI 模型
📋 完整模型列表:https://api.hodlai.fun/pricing
相关链接
| 平台 | 链接 |
|---|---|
| 🌐 官网 | https://hodlai.fun/ |
| https://x.com/hodlai_bsc | |
| 💬 Telegram | https://t.me/hodlai_fun |
1 条回复
添加回复
你还需要 登录
后发表回复
试试看