OpenCode Free Models

v1.0.0

自动从 opencode.ai 获取并增量配置包含“free”关键词的免费 AI 模型到 OpenClaw 或 QClaw 的本地配置文件。

0· 115·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for pinke/opencode-free-models.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "OpenCode Free Models" (pinke/opencode-free-models) from ClawHub.
Skill page: https://clawhub.ai/pinke/opencode-free-models
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install opencode-free-models

ClawHub CLI

Package manager switcher

npx clawhub@latest install opencode-free-models
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description claim to fetch and configure free opencode.ai models. The included script and SKILL.md perform exactly that: GET https://opencode.ai/zen/v1/models, filter IDs containing 'free', and add entries under a single provider key in ~/.openclaw/openclaw.json or ~/.qclaw/openclaw.json. No unrelated credentials or subsystems are requested.
Instruction Scope
Runtime instructions and the Python script only read/write the declared config paths and call the opencode.ai endpoint. They do not access other system files, environment secrets, or external endpoints beyond opencode.ai. The agent instructions explicitly limit the modification to models.providers and use a public API key.
Install Mechanism
No install spec is provided; the skill is instruction-only with a small included script. Nothing is downloaded from arbitrary URLs or installed to system locations.
Credentials
The skill requests no environment variables or credentials and uses the public API key 'public' as documented. There are no disproportionate or unexplained secrets requested.
Persistence & Privilege
The skill writes to the user's OpenClaw/QClaw JSON config in the home directory (expected for a configuration helper). It does not require always:true and does not modify other skills or system-wide settings. Users should be aware it will change a file in their home directory when run.
Assessment
This skill appears to do exactly what it says: fetch free models from opencode.ai and add them under an 'opencode-free' provider in your ~/.openclaw or ~/.qclaw config. Before installing or running: (1) back up your existing openclaw.json/qclaw file so you can revert changes, (2) verify you trust opencode.ai as the source of model metadata (the script will insert whatever the endpoint returns), and (3) if you need provenance, check the README's GitHub link manually to confirm the repository and author. No secrets are required, but be aware the script will write to files in your home directory.

Like a lobster shell, security has layers — review code before you run it.

latestvk9784k9y1adea1k9e74t9ft4dh857qb8
115downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

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

Comments

Loading comments...