actionow-ai/c2c_img

88 stars · Last commit 2026-09-30

Native-feeling image generation for Claude Code, powered by your local Codex (ChatGPT) image_gen. No API key needed.

README preview

# c2c-img — built-in image generation for Claude Code, powered by Codex

**English** | [简体中文](README.zh-CN.md)

If you have both **Claude Code** and **Codex** (ChatGPT), this plugin lets Claude generate and edit images with Codex's built-in `image_gen` tool. It runs on your ChatGPT login, so **you don't need an `OPENAI_API_KEY`**.

It is designed to feel native. You say "draw me a…", and a moment later the image appears in the conversation. Say "make it brighter" or "now a portrait version", and Claude edits the last image. Claude writes the prompt, checks the result itself, and never shows you the plumbing.

| Chinese poster, text rendered exactly | Edit: change dawn to an aurora night, and nothing else | Transparent sticker (`-t -s 512x512 -f webp`) |
|---|---|---|
| ![poster](docs/images/poster-zh.jpg) | ![before](docs/images/edit-before.jpg) → ![after](docs/images/edit-after.jpg) | ![sticker](docs/images/sticker-transparent.png) |

## Install

Requirements:
- The Codex CLI, from the ChatGPT desktop app or `npm i -g @openai/codex`, signed in with `codex login` using a ChatGPT account.
- Python 3.9 or later.

**As a Claude Code plugin (recommended)**:

View full repository on GitHub →