codex-image-gen

Installation
SKILL.md

Codex Image Gen

Make images with codex exec and its built-in image tool. A small helper script runs the session, then copies the PNG out of $CODEX_HOME/generated_images/<thread_id>/ to the path you ask for.

Requirements

  • codex CLI on PATH, logged in (codex login status prints "Logged in using ChatGPT" or an API key login).
  • bun for the helper script.
  • The image_generation feature is on: codex features list | grep image_generation shows true. It is stable and on by default.

If a requirement is missing, tell the user. Do not install or log in for them.

Generate

bun scripts/codex-image.ts --out assets/hero.png --prompt "Wide 16:9 photo of a lighthouse at dawn, soft fog, no text"

Options:

Installs
2
GitHub Stars
3
First Seen
6 days ago