✨

GPT-Image-2 for OpenClaw

GPT-Image-2 for OpenClaw · v1.0.1
可以安装,但有提示 HAS_SCRIPTS
安全 unknown 级 作者 kevins9527 公开目录收录
496 下载 0 安装 1.9k 收藏 2 浏览

简介

GPT-Image-2 for OpenClaw

原始描述

Install, verify, repair, and diagnose GPT-Image-2 support for OpenClaw so agents can use model refs like hnbc/gpt-image-2 through the built-in image_generate...

通过你的 Agent 添加

安装目录:gpt-image-2-toolkit/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/gpt-image-2-for-openclaw/
Codex CLI~/.codex/skills/gpt-image-2-for-openclaw/
DeepSeek Harness~/.agents/skills/gpt-image-2-for-openclaw/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: gpt-image-2-toolkit description: Install, verify, repair, and diagnose GPT-Image-2 support for OpenClaw so agents can use model refs like hnbc/gpt-image-2 through the built-in image_generate tool. Use when a user wants to add GPT-Image-2 image generation, re-install the skill on another machine, or fix errors like 'No image-generation provider registered for hnbc'.

GPT-Image-2 for OpenClaw

Use this skill when the user wants GPT-Image-2 image generation available through OpenClaw's built-in image_generate tool.

What this skill does

  • Installs a plugin package into the global OpenClaw extensions directory
  • Registers provider id hnbc
  • Exposes model hnbc/gpt-image-2
  • Verifies installation from file, local runtime, and tool perspectives
  • Diagnoses the common split-brain case where disk/runtime sees hnbc but the running gateway tool view does not
  • Reminds you that a running gateway may need a restart before the tool sees the new provider

When to use

  • "给 OpenClaw 加一个 GPT-Image-2 图像能力"
  • "让 image_generate 支持 hnbc/gpt-image-2"
  • "修复 No image-generation provider registered for hnbc"
  • "把这个能力做成别的 agent / 机器可安装的形式"
  • "检查 GPT-Image-2 provider 为什么工具侧看不到"

Core workflow

Install

  1. Run scripts/install.sh.
  2. Run scripts/self-check.sh.
  3. Note: bundled hnbc under /usr/lib/node_modules/openclaw/dist/extensions/hnbc is also a valid source; missing ~/.openclaw/extensions/hnbc alone does not prove the provider is absent.

Verify

Check both sides:

  1. Local runtime/plugin registry
  2. image_generate(action="list")

Diagnose mismatch

If local runtime sees hnbc but image_generate list does not:

  • explain that the currently running gateway likely still holds an old provider registry
  • ask before restarting the gateway
  • do not restart without explicit user approval
  • after restart, verify again and test a real generation

Deep diagnosis

If anything is unclear, run scripts/diagnose.sh. If you need extra interpretation guidance, read references/troubleshooting.md.

Recommended validation order

  1. scripts/self-check.sh
  2. image_generate(action="list")
  3. If missing from tool list, compare with local runtime using scripts/diagnose.sh
  4. After install or restart, run scripts/e2e-check.sh
  5. Test a real generation with model="hnbc/gpt-image-2"

For next-version release guidance, read references/release-1.0.1.md.

Important compatibility notes

  • hnbc/gpt-image-2 supports generation, not edit.
  • Supported sizes: 1024x1024, 1024x1536, 1536x1024
  • Supported aspect ratios: 1:1, 2:3, 3:2
  • Do not pass resolution; HNBC currently rejects resolution overrides.
  • Auth should come from either:
    • HNBC_API_KEY, or
    • models.providers.hnbc.apiKey, or
    • an auth profile for provider hnbc

Files bundled with this skill

  • assets/plugin/ — the plugin package files
  • scripts/install.sh — installs the plugin into the global OpenClaw extensions dir
  • scripts/self-check.sh — verifies required files and manifest/package basics
  • scripts/diagnose.sh — prints a fuller runtime diagnosis
  • scripts/e2e-check.sh — runs a post-install validation checklist
  • references/troubleshooting.md — quick error-to-fix map
  • references/release-1.0.1.md — next release checklist and publish command

Verification checklist

  • scripts/self-check.sh returns STATUS=ok
  • image_generate(action="list") shows hnbc (default gpt-image-2)
  • generating with model="hnbc/gpt-image-2" works
  • no resolution parameter is sent during generation

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill