by lidge-jun
Local-first visual generation runtime and studio for people and coding agents, with reproducible image and video workflows across multiple providers.
# Add to your Claude Code skills
git clone https://github.com/lidge-jun/ima2-genLast scanned: 8/15/2026
{
"issues": [
{
"type": "npm-audit",
"message": "body-parser: body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement",
"severity": "low"
},
{
"file": "README.md",
"line": 160,
"type": "secret-exfiltration",
"message": "Instruction appears to send credentials/secrets to an external endpoint",
"severity": "medium"
},
{
"file": "README.md",
"line": 65,
"type": "remote-install",
"message": "Install command (remote install script piped to a shell — review the source before running): \"curl -fsSL https://lidge-jun.github.io/ima2-gen/install-mac.sh | bash\"",
"severity": "low"
}
],
"status": "PASSED",
"scannedAt": "2026-08-15T04:29:42.704Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}ima2-gen is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by lidge-jun. Local-first visual generation runtime and studio for people and coding agents, with reproducible image and video workflows across multiple providers. It has 675 GitHub stars.
Yes. ima2-gen passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/lidge-jun/ima2-gen" and add it to your Claude Code skills directory (see the Installation section above).
ima2-gen is primarily written in TypeScript. It is open-source under lidge-jun on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ima2-gen against similar tools.
No comments yet. Be the first to share your thoughts!
🌐 Live site: lidge-jun.github.io/ima2-gen · 한국어
📖 Developer docs: Documentation site · 한국어
ima2-gen is a local-first visual generation runtime and studio for people and coding agents, with reproducible image and video workflows across multiple providers.
Install globally and generate images and videos from eight core lanes: OpenAI OAuth/API, Grok OAuth/API, Antigravity CLI, Gemini API, AtlasCloud, and MiniMax. Runway and Higgsfield remain separate MCP-backed integrations. Iterate with history, references, node branches, multimode batches, and Canvas Mode cleanup.

npm install -g ima2-gen
ima2 setup
ima2 serve
Then open http://localhost:3333.
docker build -t ima2-gen .
docker run -d -p 3333:3333 -e IMA2_LAN_TOKEN=change-me -v ima2-data:/data ima2-gen
See docs/DOCKER.md for compose usage, required environment, and limitations.
To generate from the CLI, inspect the live lane catalog and choose explicit image/video defaults once:
ima2 models
ima2 defaults set image oauth/gpt-5.6-luna
ima2 defaults set video grok/grok-imagine-video-1.5
ima2 gen "a clean product photo of a red guitar pedal"
ima2 video "a cat playing piano" --duration 5 --resolution 720p
ima2 video "animate this scene" --ref photo.png --duration 10
ima2 gen and generate-mode ima2 video fail closed with NO_DEFAULT_MODEL until a CLI target is configured, unless that call passes --model <lane>/<model> or an explicit --provider <lane>. This prevents an upgrade from silently switching providers or billing lanes.
If 3333 is already occupied, ima2-gen binds the next available port and writes the actual URL to ~/.ima2/server.json. Use ima2 open or the URL printed in the terminal instead of assuming the port.
Using npx? See docs/NPX_QUICKSTART.md for the
npx ima2-gen serveworkflow.
Don't have Node.js or npm? Use the platform install script — it detects your environment, installs Node LTS if needed, then installs ima2-gen.
macOS:
curl -fsSL https://lidge-jun.github.io/ima2-gen/install-mac.sh | bash
Windows (PowerShell):
irm https://lidge-jun.github.io/ima2-gen/install-windows.ps1 | iex
Linux / WSL:
curl -fsSL https://lidge-jun.github.io/ima2-gen/install-linux.sh | bash
Each script checks for nvm/fnm/brew/winget, installs Node LTS through the best available method, and handles stale process cleanup automatically.
ima2 setup offers four authentication choices:
Video generation requires Grok OAuth (option 2 or 3). Run ima2 grok login separately if you already have GPT OAuth configured and want to add video support; it defaults to the manual-paste flow.
Stop the running server with Ctrl+C, then:
npm install -g ima2-gen@latest
Ctrl+C now performs a clean shutdown — closing the database, stopping child processes, and releasing file locks. On older versions (< 1.1.22) or if you see EBUSY on Windows, use the install script which handles stale process cleanup automatically.
ima2-gen ships three packaged skills for AI coding agents. These are Markdown instruction files that agents load to get structured workflows for image/video generation, frontend asset production, and design direction discovery.
| Skill | Command | What It Covers |
|---|---|---|
| Core | ima2 skill |
CLI reference, prompting protocol, provider routing, Korean text, video workflows |
| Frontend | ima2 skill front |
Asset pipeline (parallel gen, variant selection, provider routing), motion/video for web, responsive, a11y, anti-slop, 30+ reference files |
| UI/UX Design | ima2 skill uiux |
Image-first design direction discovery, UX states, design-isms, product personalities, DESIGN.md workflow, 18 reference files |
ima2 skill ls # list available skills
ima2 skill front # print the frontend skill
ima2 skill uiux # print the design skill
ima2 skill front path # print file path (for agents)
ima2 skill front --json # JSON wrapper (for agents)
ima2 skill front refs # list reference modules (35 files)
ima2 skill front ref motion # load one reference module
ima2 skill install --dir <path> # install skills to agent's skill dir
ima2 skill install --tmp # install to temp dir (fallback)
The Frontend and UI/UX skills are production-grade design engineering guides
adapted for the ima2 workflow. They cover typography, color systems, layout
discipline, Korean UX patterns, motion choreography, and visual verification,
with every asset generation step mapped to ima2 gen, ima2 video, and
ima2 multimode commands.
The web UI uses a single GET /api/events Server-Sent Events connection for all generation progress. Multimode, node, and video requests are submitted as async POST (202 { requestId }) and progress events are multiplexed through a shared event bus. This eliminates the browser 6-connection limit that previously caused gallery hangs during concurrent generation. CLI clients that do not send async: true still receive per-request SSE streams for backward compatibility.
Image generation can run through the local Codex/ChatGPT OAuth path, a configured OpenAI API key, the bundled Grok provider, or the Gemini provider via Antigravity CLI.
provider: "oauth" uses the local Codex OAuth proxy.provider: "api" calls the OpenAI Responses API with the hosted image_generation tool.provider: "grok" starts bundled progrok on 127.0.0.1:18645, runs mandatory xAI Web Search plus a planner pass (default: grok-4.5, configurable in settings or via --planner-model), then calls xAI Images API through the local proxy. grok-4.3 remains available as an explicit compatibility override.provider: "grok-api" calls the xAI Images API directly with XAI_API_KEY (no bundled progrok OAuth proxy).provider: "agy" spawns the Antigravity CLI (agy -p) to generate images via Google Gemini's default_api:generate_image tool (model: nano-banana-2). Output is fixed at 1024×1024 JPEG, max 3 reference images. No web search, quality, or size controls.provider: "gemini-api" calls the Google Generative Language API directly. Supports two models: nano-banana-2 (Gemini 3.1 Flash Image) and nano-banana-pro (Gemini 3 Pro Image). Auth is via GEMINI_API_KEY env var, web UI key management, or a Vertex AI service account JSON (VERTEX_SERVICE_ACCOUNT_JSON). When both an API key and Vertex credentials are configured, Vertex takes priority. Supports variable aspect ratios (1:1 through 21:9) and four resolution tiers (512px, 1K, 2K, 4K); these controls are only honored on the direct API path — the Vertex AI endpoint ignores aspect/size because it does not accept the response_format field. Per-model cost differs: `nano-