π¦ ClawHub
Codex Imagen
by @darkamenosa
Generate or edit raster images by calling the ChatGPT/Codex Responses image_generation tool directly with local Codex or OpenClaw OAuth credentials, then sav...
π‘ Examples
Run the helper through Node for macOS, Linux, and Windows compatibility:
node {baseDir}/scripts/codex-imagen.mjs --timeout 300 '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 --timeout 300 --prompt 'generate a small blue lotus icon'
Ask for multiple outputs in the prompt. There is no --count flag:
node {baseDir}/scripts/codex-imagen.mjs --timeout 300 -o out/ --prompt 'generate 3 images of a monk mage'
Use --verbose or --debug for event-level progress, and --quiet when only stdout paths/JSON should be emitted.
TERMINAL
clawhub install codex-imagen