Image Studio
Generate images directly inside Claude, billed to your own ChatGPT plan, no API keys.
How It Works
Setup
1. Prerequisites
Node.js 18 or later, and an active ChatGPT plan.
Sign in once from a terminal. This creates the local login the connector reuses, so Claude never needs your credentials or an API key.
npx @openai/codex login2. Download the Connector
A single file, nothing to install.
Save it somewhere stable (e.g. your home folder). You will point Claude at this file’s path in the next step.
Download mcp-server.mjs3. Add It to Claude
Choose the surface you use. Both point at the same file.
Run this from a terminal, using the absolute path where you saved the file (keep the quotes on Windows):
claude mcp add image-studio -- node "C:\path\to\mcp-server.mjs"4. Use It
In any chat, ask Claude to “generate an image of …”. Claude calls the generate_image tool with a prompt, a size (square, landscape, or portrait), and a quality (auto, low, medium, or high), and shows the result inline.
Troubleshooting
If it reports that the session expired, run npx @openai/codex login again to refresh the local login.
This relies on an unofficial use of the ChatGPT backend, so behavior can change without notice.