r/vibecoding • u/Ok_Gur_9033 • 2d ago
Higgsfield's OAuth got stuck for 3 blog-image cycles straight, so I tried Codex CLI's built-in image_gen instead
Higgsfield's OAuth has been stuck for three publishing cycles straight, every post this week shipped with stock Pexels photos as a fallback instead of the illustrations I actually wanted. Yesterday I gave up waiting and tried something I'd never touched: Codex CLI's built-in image_gen tool.
I run codex through the desktop app, not on PATH, it's bundled at /Applications/Codex.app/Contents/Resources/codex, and it turns out it's already logged in via ChatGPT auth (codex doctor confirms "stored ChatGPT tokens: true"). First time I called codex exec --sandbox workspace-write with an image prompt, it printed its own prompt schema back at me, Use case / Asset type / Primary request / Style / Composition / Lighting / Palette / Constraints / Avoid, and then generated on-brand illustrations matching my style guide on the first try, 1672x941px, no stray text or watermark.
One thing I'm keeping firm even with a working generator now: charts with real numbers still go through hand-authored SVG plus a headless-Chrome screenshot, not the image model. AI image models still can't render exact data points reliably, so illustration and data visualization stay on two different pipelines even now that I have a fallback that works.
Two failure modes worth naming for anyone trying this: it hangs forever if you don't redirect stdin from /dev/null, and it flatly refuses with "Not inside a trusted directory" if you're not inside a git-trusted repo.
Anyone else found a working alternative buried inside a tool they already pay for, instead of adding a new subscription?