Installation
Requirements
- Node.js >= 18
- Chromium (installed automatically by
imugi init)
Install
npm install -g imugi-aiOne-Click Setup
Run the init command to auto-detect your project, install Playwright’s Chromium browser, and create a default config:
imugi initThis will:
- Detect your framework (React, Vue, Svelte, etc.)
- Detect your CSS method (Tailwind, CSS Modules, etc.)
- Install Playwright Chromium for screenshot capture
- Create
imugi.config.jsonwith sensible defaults
Authentication
MCP Mode (No API key needed)
When used as an MCP server with Claude Code or Cursor, no API key is required. imugi provides visual tools (capture, compare, heatmap) while your AI editor handles the reasoning and code generation. Zero additional cost.
CLI / Agent Mode
For standalone usage, imugi needs Claude API access for code generation and vision analysis:
Option A: API Key
export ANTHROPIC_API_KEY=sk-ant-...Option B: OAuth (Interactive Agent only)
imugi auth loginThis opens a browser for OAuth authentication. Tokens are stored securely at ~/.imugi/auth.json with restricted permissions.
Verify Installation
imugi --versionimugi --helpNext: Quick Start