Tired of AI agents hallucinating broken SVGs? imgcmd is a secure CLI that generates real PNGs directly to disk via Gemini. Teach Cursor/VS Code to use it natively, keep API keys local, and enforce model governance to prevent rogue AI spending.
Hey Product Hunt! π I'm excited to share imgcmd with you today.
We built this because we were completely stuck in the "AI Image Code Trap." Every time we asked our IDE agents (Cursor/Copilot) to design a simple asset, they would hallucinate thousands of lines of broken SVGs or corrupted Base64 strings. It was a mess. We didn't want code; we just wanted real PNG files on our disk!
So, we built imgcmd β a secure, local-first CLI that connects to Gemini and generates perfect images with one command.
But we didn't stop at just a CLI. We built it for the Agentic Era:
π€ Agentic Tooling: Run imgcmd --create-rule cursor to instantly teach your AI editor to use the CLI natively instead of trying to write image code.
π‘οΈ Absolute Governance: AI agents can go rogue and use expensive models. We added IMGCMD_FORCE_MODEL in the .env to enforce model usage globally, preventing surprise API bills.
π Security First: Your API keys never leave your machine.
Itβs completely free and open-source, maintained by our team at Smoonb.
Iβd love to hear your thoughts, feedback, and how your AI agents handle it! Let me know if you have any questions. π
imgcmd