← 返回
未分类 中文

image-agent-plus

Use image-agent-plus CLI to generate images, prioritizing image2 for high-quality text and prompt-following, with Codex/Gemini fallback.
使用 image-agent-plus CLI 生成图像,优先使用 image2 以获得高质量文字和遵循提示,Codex/Gemini作为备用。
webkubor webkubor 来源
未分类 clawhub v2.0.5 1 版本 100000 Key: 无需
★ 0
Stars
📥 321
下载
💾 0
安装
1
版本
#codex#gemini#image#image2#latest#openclaw

概述

image-agent-plus

Direct CLI invocation. No HTTP server required.

!AI 时代,我们应该沉淀下来的是什么

Showcase

The image above was generated locally from this prompt:

AI 时代,我们应该沉淀下来的是什么,中文社论海报

It is included as a ClawHub store preview so users can see the intended output style before installing the skill.

What Went Wrong During Setup

We first tried to treat Codex image generation like a normal nested CLI provider. That was wrong.

The working Codex flow is:

  1. Generate the image inside the active Codex session.
  2. Codex saves the result under ~/.codex/generated_images//ig_*.png.
  3. Run image-agent-plus collect-codex to copy the latest generated image into your chosen output path.

Do not rely on nested codex exec for image generation. It can hang or fail because the interactive Codex image tool event is not the same as a normal non-interactive shell command.

Runtime Rule

Before asking for an API key, run:

image-agent-plus check

If an OpenAI API key (IMAGE_AGENT_OPENAI_API_KEY or OPENAI_API_KEY) is set, the tool defaults to image2. If Codex CLI or Gemini CLI is installed (no OpenAI key), use those without API keys. API keys are only for direct provider API mode or for machines without local runtimes.

Quick Start

image-agent-plus generate \
  --prompt "一只橘猫坐在雨天窗台上,电影感光线" \
  --aspect-ratio "16:9"

Common Commands

image-agent-plus check

# Default: image2 via OpenAI (when API key available)
image-agent-plus generate \
  --prompt "AI 时代,我们应该沉淀下来的是什么,中文社论海报" \
  --aspect-ratio "16:9"

# Fallback: Codex CLI (no API key needed)
image-agent-plus generate \
  --prompt "AI 时代,我们应该沉淀下来的是什么,中文社论海报" \
  --provider codex \
  --aspect-ratio "16:9"

For Codex image generation, use the active Codex image tool first. After Codex reports Generated Image and saves under ~/.codex/generated_images, run:

image-agent-plus collect-codex

Options

FlagDescription
-------------------
--promptImage description, required
--provideropenai, codex, or gemini
--filenameOutput file path. If omitted, save to ~/Desktop/image-agent-plus-output/
--aspect-ratio16:9, 9:16, 1:1, 4:3, 3:4, 21:9
--modelProvider model ID. Do not pass this for default Codex CLI image generation
--output-countNumber of images, 1-8

Codex Collection

image-agent-plus collect-codex --filename ~/Desktop/output.png

If --filename is omitted, the copied image goes to ~/Desktop/image-agent-plus-output/.

Environment

Prefer local runtime. For image2 direct API mode, configure the OpenAI key in your normal shell or agent secret manager before running the CLI.

Legacy NANOBANANA_* variables are accepted as fallback reads by the CLI.

版本历史

共 1 个版本

  • v2.0.5 当前
    2026-05-08 00:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

UI/UX Pro Max

xobi667
提供 UI/UX 设计智能与实现指导,帮助打造精美界面。适用于 UI 设计、UX 流程、信息架构、视觉风格、设计系统/标记、组件规格、文案/微文案、无障碍及前端 UI(HTML/CSS/JS、React、Next.js、Vue、Svelte
★ 229 📥 49,009
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 435 📥 118,012
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 137 📥 53,250