Prerequisites
- Node.js 18+ installed
- A Next.js 14+ or Vite 5+ React project
- npm, pnpm, yarn, or bun
Step 1: Install Glue
Install via Homebrew (includes both the desktop app and CLI):Update or uninstall Glue
Update or uninstall Glue
Step 2: Initialize Your Project
Navigate to your React app directory and run:.glue/ directories, configures your bundler, and adds the required packages to devDependencies.
- Next.js
- Vite
After Packages added:
glue init, your next.config.js (or .ts) will include:next.config.js
@getglue/next-plugin, @getglue/jsx-runtimeAll Glue packages are added to
devDependencies. Glue is dev-only and never impacts production builds.Step 3: Start Your Dev Server
Run your dev server with Glue instrumentation:GLUE_INSTRUMENT=1, starts your dev server, and automatically opens the Glue desktop app when the server is ready.
Step 4: Create Your First Annotation
In the Glue desktop app:- Hover and click any element to select it
- Type your comment — be specific (e.g., “Change button background to #3b82f6 and add 4px border radius”)
- Save — press Enter or click Save
Step 5: Hand Off to Claude Code
Export your annotations and hand off to Claude Code:.glue/handoff/latest.md— Human-readable spec.glue/claude-plugin/— Claude Code plugin files
/glue:apply-latest to implement all your annotations.
Claude Code is currently the only fully supported coding agent. Support for Codex and Gemini CLI is coming soon.