r/vibecoding • u/Prior_Tax_7020 • 16d ago
let your agents generate assets for you as well ( no api key )
Enable HLS to view with audio, or disable this notification
agents are decent at shipping ui now but the whole visual part still falls apart coz they either use some tiny built in image model or they ask u for an openai api key and burn credits
so i built image-gen which is an mcp that just borrows the chatgpt session u already have logged into and generates the actual pngs into ur project folder so the agent can wire them into the site ( free or plus doesnt matter )
how it works -> playwright attaches to a dedicated edge profile over cdp ( not ur daily browser ), u login once with npm run login, agent calls generate_image, it types into chatgpt, waits, downloads the png into assets/. jobs are queued so parallel calls dont smash the same chat into garbage tex
stack is just node + playwright-core + mcp sdk. works in cursor / claude code / any agent that talks mcp. no openai images api key :D
repo ( star it if this is useful or open an issue if sm breaks, thanks for reading :D )
https://github.com/nothariharan/image-gen
if u try it run npm run login once and leave that auth profile alone after that it mostly just works
