← 返回
未分类

OpenCode Free Models

自动从 opencode.ai 获取并增量配置包含“free”关键词的免费 AI 模型到 OpenClaw 或 QClaw 的本地配置文件。
自动从 opencode.ai 抓取并增量配置含“free”关键词的免费 AI 模型到 OpenClaw 或 QClaw 本地配置文件。
pinke pinke 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 402
下载
💾 0
安装
1
版本
#latest

概述

OpenCode Free Models

自动配置 opencode.ai 的免费 AI 模型到 OpenClaw/QClaw。

触发词

  • "配置 opencode 免费模型"
  • "添加 opencode 模型"
  • "opencode 免费"
  • "free model"

功能

  1. 查询免费模型: 从 opencode.ai API 获取可用免费模型
  2. 自动配置: 将模型添加到 ~/.openclaw/openclaw.json (或 ~/.qclaw/openclaw.json)
  3. 增量更新: 只添加新模型,跳过已存在的

使用方式

AI 工具会自动执行以下步骤:

  1. 查询模型列表: curl -sS https://opencode.ai/zen/v1/models
  2. 筛选免费模型 (包含 "free" 的模型 ID)
  3. 读取现有配置: ~/.openclaw/openclaw.json
  4. 将免费模型添加到 models.providers 配置中
  5. 使用公开凭据 "public" 作为 API Key

模型配置格式

{
  "opencode-free": {
    "baseUrl": "https://opencode.ai/zen/v1",
    "apiKey": "public",
    "api": "openai-completions",
    "models": [
      {
        "id": "minimax-m2.5-free",
        "name": "MiniMax M2.5 Free",
        "reasoning": true,
        "input": ["text"],
        "cost": { "input": 0, "output": 0 },
        "contextWindow": 131072,
        "maxTokens": 8192
      }
    ]
  }
}

注意事项

  • 无需 API Key: 使用公开的 "public" 作为凭据
  • 免费模型: 包含 "free" 关键词的模型
  • 端点: https://opencode.ai/zen/v1/chat/completions
  • 配置文件: ~/.openclaw/openclaw.json 或 ~/.qclaw/openclaw.json

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 04:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 320,994
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,886
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,282