CLI tool
Install
chatgpt-imagegen is a single-file Python CLI that generates with your signed-in ChatGPT — no OPENAI_API_KEY.
Install
terminal
# one line from GitHub (recommended)
$ curl -fsSL https://raw.githubusercontent.com/leeguooooo/chatgpt-imagegen/main/install.sh | sh
# or install as an agent skill
$ npx skills add leeguooooo/chatgpt-imagegen -gTwo backends
The default web backend drives your logged-in ChatGPT browser and spends no Codex-usage; codex is a headless fallback that bills Codex-usage. Run
chatgpt-imagegen doctor to check what's ready.by 郭立 · Guo Li · leeguoo · Blog · GitHub