codex-imagen
Installation
SKILL.md
Codex Imagen
Generate images by calling the ChatGPT/Codex backend directly with OAuth credentials already stored on the machine. This does not start codex app-server, does not need the Codex CLI binary, and does not require OPENAI_API_KEY.
Quick Start
Run the helper through Node for macOS, Linux, and Windows compatibility:
node {baseDir}/scripts/codex-imagen.mjs 'generate image follow this prompt, no refine: "a cinematic fantasy city at sunrise"'
Normal generation prints one generated image path per line. Diagnostics and progress go to stderr.
Use --json when the caller needs machine-readable metadata:
node {baseDir}/scripts/codex-imagen.mjs --json --prompt 'generate a small blue lotus icon'