V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录

HodlAI 简介

HodlAI 是一个将 Web3 经济模型与 AI API 使用结合的平台。持有 $HODLAI 代币即可获得每日免费额度,用于调用 200+ 顶级 AI 模型,包括 GPT-5.2 、Claude 4.5 、Gemini 3 Pro 等。AI API 兼容 OpenAI 、Anthropic 和其他主流接口。

核心特点

  • 🧠 200+ AI 模型一站调用
  • 🪙 持币领取免费额度(每日自动刷新)
  • 📊 链上透明,资产始终在用户钱包
  • 🔗 全端兼容 OpenAI / Claude / Gemini 接口
  • 🔑 链接钱包即可获取 API Key

经济机制

  • 每笔交易收取 3% 作为资金池保障
  • 每 5000 $HODLAI = 约 $1 每日额度
  • 钻石手机制:持有越久额度释放越快

相关链接

平台 链接
🌐 官网 https://hodlai.fun/
🐦 Twitter https://x.com/hodlai_bsc
💬 Telegram https://t.me/hodlai_fun
kkcity
V2EX  ›  HodlAI

怎么配置 codex?

  •  
  •   kkcity · 1 天前 · 577 次点击

    我是这么配的:

    1. 修改 .zshrc 加入以下两行:
    export OPENAI_BASE_URL=https://api.hodlai.fun/v1
    export OPENAI_API_KEY=sk-<api-key>
    
    1. 修改 .codex/auth.json 如下:
    {
      "OPENAI_API_KEY": "sk-<api-key>"
    }
    

    同样的配置在 mac 上可以工作,在 linux 上不工作,错误信息是:

    ■ stream disconnected before completion: error sending request for url ( https://api.hodlai.fun/v1/responses)
    

    而用下面的 curl 命令可以工作:

     curl https://api.hodlai.fun/v1/responses \
      -H "Authorization: Bearer $OPENAI_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "gpt-5.2",
        "input": "Hello!"
      }'
    

    codex 版本都是 0.93.0. 有大佬知道原因吗?

    5 条回复    2026-02-03 10:14:43 +08:00
    andy777x
        1
    andy777x  
       1 天前   ❤️ 1
    先清空原本的
    rm -rf ~/.codex/auth.json
    # 编辑配置文件
    nano ~/.bashrc

    # 在文件末尾添加以下两行
    export OPENAI_API_KEY="你的 HODLAI-API-KEY"
    export OPENAI_BASE_URL="https://api.hodlai.fun/v1"

    #保存生效
    source ~/.bashrc
    kkcity
        3
    kkcity  
    OP
       1 天前
    @andy777x Thx! 发现了是我 linux 网络配置问题。
    daj2
        4
    daj2  
       1 天前
    OP 你的环境会不会报错 `Reason: Encrypted content organization_id did not match the target organization.`,多次重试有概率可以工作
    kkcity
        5
    kkcity  
    OP
       1 天前
    @daj2 会,不知道原因。重试几次可以工作。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4734 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:06 · PVG 11:06 · LAX 19:06 · JFK 22:06
    ♥ Do have faith in what you're doing.