Install
openclaw skills install codex-image-serverUse when a user wants to turn local Codex image_generation capability into a local HTTP image server for apps such as Photoshop plugins, design tools, or internal image workflows. Covers adding routes, multi-image generation, cancellation, original reference images, gpt-image-2 size limits, and validation.
openclaw skills install codex-image-serverUse this skill to help a user expose local Codex image generation as a local HTTP API that another app can call.
codex exec when the installed Codex package should stay untouched.GET /healthzGET /v1/capabilitiesPOST /v1/images/generateGET /v1/images/:id/fileAbortSignal. If the HTTP client disconnects or cancels, terminate the full codex exec process group.references/http-contract.md before implementing the API surface.templates/codex-image-server.js as a concrete Node server template when the target repo has no implementation.scripts/smoke-test.mjs to check health, capabilities, and cancellation after the server starts.Run these checks against the local server:
node scripts/smoke-test.mjs http://127.0.0.1:17341
Then test the consuming app:
curl -sS http://127.0.0.1:17341/v1/capabilities
curl -sS -m 3 http://127.0.0.1:17341/v1/images/generate \
-H 'Content-Type: application/json' \
-d '{"prompt":"cancel test","count":4,"size":"1024x1024","quality":"low"}' || true
ps aux | rg -i 'codex exec|codex-image-server'
The process check should not show leftover codex exec workers after cancellation.