Openclaw Codex Image Gen
Description
OpenClaw plugin for Codex CLI image generation ($imagegen)
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
openclaw-codex-image-gen
Reference book link:
OpenClaw plugin for generating images via `codex responses` and the `image_generation` tool under the current Codex login session.

Inspired by [hermes-gpt-image-gen](https://github.com/Jinbro98/hermes-gpt-image-gen) and the reference skill [codex-image-generation-skill](https://github.com/Gyu-bot/codex-image-generation-skill), then adapted for the OpenClaw plugin lifecycle and tool interface.
Examples
| Prompt | Result |
|---|---|
| A cute robot cat sitting on a cloud, digital art, vibrant colors | ![]() |
| Korean e-commerce poster | ![]() |
| Korean tech-book promotional hero banner | ![]() |
English first
What this plugin does
It registers a tool named `codex_image_generate` inside OpenClaw. When the tool is called, the plugin:
- checks candidate Codex CLI binaries,
- prefers one machine-specific user-installed Codex path first,
- sends a raw Responses API payload to
codex responses, - requests the
image_generationtool explicitly, - extracts a base64 image when Codex emits the expected streamed JSONL event shape,
- writes the decoded image to disk,
- returns the saved file path back to OpenClaw.
In short, this plugin uses Codex's `image_generation` tool directly, instead of falling back to a code-generated image workaround.
Why this changed
The original version of this repo assumed a `$imagegen` flow through `codex exec`. That turned out to be unreliable in this environment for two separate reasons:
- an older Codex binary on
PATHwas being selected first, - the practical Codex image-generation path that worked consistently was
codex responseswith theimage_generationtool.
S
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11


