Your signed-in Chrome, built for CLI QA.

An open-source QA workbench for engineers running Claude Code, Codex, or Antigravity from the terminal. Drive one authenticated Chrome tab at a time on playwright-core—with before/after PNG filmstrips, observed locators, and local triage before anything becomes a test.

Runs in a background tab without stealing your cursor or exposing your other tabs.


              

Built for daily QA from the terminal

When you run Claude Code, Codex, or Antigravity from the CLI, you don't have an IDE browser—and isolated headless browsers can't reach your SSO-gated work tabs. Latch gives CLI agents safe, auditable access to your real Chrome.

Works across CLI agent subscriptions

One flat latch CLI and a 3 KB skill prompt—no MCP tool bloat. Hop between Claude Code, Codex, Antigravity, and Cursor in the terminal using the exact same browser commands.

Single-tab safety in your work Chrome

Attach one signed-in tab with latch connect <tabId> and per-session locks (-s). Your email, Slack, and other tabs stay isolated and untouched on disconnect. Finished session groups collapse by default; --close-tabs (or the popup's On session finish setting) closes only tabs Latch opened.

Zero repo clutter & background focus

Active sessions and large ARIA snapshots spill to OS app data—never dirtying git status. Background focus emulation lets agents explore without stealing your cursor.

Exploratory QA filmstrips & triage

Pass --record to capture before/after PNGs, ARIA/DOM locator candidates with ambiguity warnings, and checkpoints that never fabricate assertions—reviewed locally at 127.0.0.1.

Install in four steps

Requires Node.js 22 or newer and Google Chrome 125 or newer. External Playwright browser downloads and ffmpeg are never needed.

Package source
Shell

Step 1. Install the CLI and register the local bridge

Install @mihaamiharu/latch globally, register the local Chrome bridge, and link agent integrations.


                
              

Step 2. Load the Chrome extension

Open chrome://extensions in Chrome, turn on Developer mode, click Load unpacked, and select the Extension path printed by Step 1. Confirm the ID is dlkpkeiejlgggeoibejpoajedoelfcli.

Step 3. Pair Chrome and verify connectivity

With Chrome open, auto-discover the running extension instance and check bridge health.

latch pair
latch doctor

Step 4. Verify your agent plugins

Check that Antigravity, Claude Code, Codex, and Cursor links are active, then ask your agent to inspect a tab.

latch agents status

Tab-scoped access, local-first by design

Your agent runs short CLI commands over a local bridge. Latch attaches Chrome's debugger only to the single tab you explicitly open or connect—never persistent content scripts or full-profile access.

Agent CLI communicates over local IPC to native-host and Chrome debugger transport AI Coding Agent Antigravity, Claude, Codex, Cursor latch <command> IPC native-host (Node.js) Named Pipe (Win) / Unix Socket (macOS, Linux) playwright-core connectOverCDP Exploration Library 127.0.0.1 reviewer CDP Chrome MV3 Explicit tab ownership No host_permissions chrome.debugger

Keep your logins and open tabs

Attach directly to corporate SSO, staging apps, and authenticated sessions already open in Chrome. Disconnecting leaves every tab intact.

Zero external binaries to babysit

Playwright Core runs inside the native messaging host over a private loopback CDP relay. No browser downloads or ffmpeg required.

Clean repositories and smart defaults

Active workspace sessions bind under your local app data directory, never writing dotfiles into your codebase. Profile and session flags default automatically.

Built for modern AI toolchains

Works out of the box with Antigravity plugins, Claude Code skills, Codex, and Cursor using a compact 3 KB skill prompt and flat CLI output.

Exploration Library for QA review

Pass --record or --objective on open or connect to capture before/after PNG filmstrips, ARIA snapshots, and locator candidates—so you can review observed behavior locally before deciding what becomes a bug report or a Playwright test.

Before action

After action

Actual local Exploration Library UI (http://127.0.0.1) opened from the Chrome popup
Latch Exploration Library showing a real before and after PNG filmstrip, automation handoff links, and QA review decision form

Observed locator candidates

Local QA triage & cleanup

Click Open Library in the Chrome popup to open the 127.0.0.1 reviewer immediately, triage runs into automate / investigate / report_bug / closed separately from observed evidence, or clean up finished runs via latch library delete.

Command reference and support matrix

All commands support --json for structured automation output, -s for explicit multi-agent session isolation, --profile, and --workspace.

Command Purpose

Agent integrations

Client Installed path
Antigravity ~/.gemini/config/plugins/latch
Claude Code ~/.claude/skills/latch
Codex / Cursor ~/.agents/skills/latch

Platform requirements

Platform / Runtime Support detail
Windows 10 / 11 Named Pipes (\\.\pipe\latch-*), HKCU Native Messaging, Explorer folder picker; real-browser suites run headless on Chrome for Testing in Windows CI
macOS & Linux Unix domain sockets, standard NativeMessagingHosts, Finder / zenity picker
Node.js & Chrome Node.js >= 22.0.0, Google Chrome >= 125

Local-first security guarantees

Latch never installs persistent website content scripts or telemetry. Known credentials, tokens, cookies, and internal CDP endpoints are redacted automatically, and uninstalling leaves your configuration and saved library intact until you delete them.