OpenClaw 接入 HodlAI 免费 API 配置指南

8 天前
 88AI

OpenClaw 接入 HodlAI 接口配置指南

📌 本文适用于已安装 OpenClaw 用户,介绍如何修改配置以接入 HodlAI 接口。详细安装教程请自行搜索,或借助 AI 指导(推荐)。


配置步骤

1️⃣ 编辑配置文件

使用任意编辑器打开 openclaw.json

nano ~/.openclaw/openclaw.json

2️⃣ 替换配置内容

modelsagents 部分替换为以下内容:

⚠️ 如需更换模型,请同步修改所有 gemini-3-pro-preview 相关字段( id 、name 、primary 、models )

"models": {
  "mode": "merge",
  "providers": {
    "HodlAI": {
      "baseUrl": "https://api.hodlai.fun/v1",
      "apiKey": "你的 API Key",
      "api": "openai-completions",
      "models": [
        {
          "id": "gemini-3-pro-preview",
          "name": "Gemini 3 Pro (preview)",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "cost": {
            "input": 0.5,
            "output": 1.5,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "contextWindow": 1048576,
          "maxTokens": 8192
        }
      ]
    }
  }
},
"agents": {
  "defaults": {
    "model": {
      "primary": "HodlAI/gemini-3-pro-preview"
    },
    "workspace": "/root/clawd",
    "userTimezone": "Asia/Hong_Kong",
    "maxConcurrent": 8,
    "subagents": {
      "maxConcurrent": 16
    }
  }
}

3️⃣ 校验并重启服务

openclaw doctor --fix
openclaw gateway restart

关于 HodlAI

持有 $HODLAI 代币,即可免费使用 200+ AI 模型

📋 完整模型列表:https://api.hodlai.fun/pricing


相关链接

平台 链接
🌐 官网 https://hodlai.fun/
🐦 Twitter https://x.com/hodlai_bsc
💬 Telegram https://t.me/hodlai_fun
1368 次点击
所在节点    HodlAI
7 条回复
Ne
8 天前
@88AI

"HodlAI": {
站长写的是
"hodlai": {

还有一个是写 "llm": {

那个才是或随便写?

"api": "openai-completions",
"api": "openai-responses",

这两个的区别是什么
88AI
8 天前
@Ne 不影响 都可以
88AI
8 天前
@Ne openai-completions 接口使用/v1/chat/completions
openai-responses 接口使用/v1/responses
Ne
8 天前
@88AI 明白
dingyaguang117
8 天前
goodryb
7 天前
OP ,好像不能注册了哎
88AI
7 天前
@goodryb 这不是注册使用的,购买代币后访问官网连接钱包获取 API Key

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1189990

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX