claude-in-chrome-cli (cic)

Use the Claude in Chrome extension tools natively in Claude Code, or call them from your shell with cic. Both connect through the same MCP server.

Why
Claude Code ships a stdio MCP server, claude --claude-in-chrome-mcp, that bridges to the Claude in Chrome extension. Through it you can drive your real, logged-in Chrome: navigate, read the page, click, type, run JavaScript, read the console and network.
Normally you reach those tools from inside a Claude session. Sometimes you just want one from a script or a terminal: a quick navigation, a page-text dump, a one-off step in a shell pipeline. cic does that. It speaks the MCP handshake over stdio, calls one tool, prints the result, and exits with a code that means something.
The plugin is a second front door. Install it to make navigate, read_page, find, computer, get_page_text, and the rest of the extension tools available natively in new Claude Code sessions.
It also adds one tool the extension cannot provide. The bridge only ever sees tabs inside its own tab group, so "what have I got open?" is unanswerable through it. list_open_tabs answers it by reading Chrome and Chromium session data from disk, with no debugging port, no extension and no tab group. It lists every tab it can recover from each readable profile and reports encrypted, unsupported or unreadable profiles instead of treating them as empty. Measured on one machine: the bridge could see 4 tabs, list_open_tabs saw 29, of which 25 were outside the group. It reads URLs and titles, not page content, and it cannot drive a page.
Where this is going, release by release: see the roadmap.
Requirements
- The Claude Code CLI (
claude) on your PATH.
- The Claude in Chrome extension installed and connected to a running Chrome for the browser-driving tools.
list_open_tabs does not need it.
- Node.js 22 or later. Nothing else: no runtime dependencies, no
python3.
Install
As a Claude Code plugin
/plugin marketplace add hamzahamidi/claude-in-chrome-cli
/plugin install claude-in-chrome@claude-in-chrome-cli
New Claude Code sessions get all the extension tools natively, plus a skill (using-claude-in-chrome) that teaches the agent when your real session is the one that matters, which browser tool to reach for when it is not, and how to avoid the common traps. The plugin also bundles the CLI, reachable as node ${CLAUDE_PLUGIN_ROOT}/bin/cic.js.
As a command line tool
npm install -g claude-in-chrome-cli
That puts cic on your PATH.
Usage
cic list # list available tools
cic call <tool> [json-args] # call a tool, arguments default to {}
cic with-tab <url> <tool> [args] # make a tab, navigate, call one tool, close it
cic tabs # every open tab, read from disk without the bridge
| Option | What it does |
|---|
--timeout <secs> | Ceiling on how long to wait for the reply. Default 30. |
--retries <n> | Retry only failures that never reached the browser (exit 3). Default 0. |
--json | Print the raw result object, or one error object, on one line |
--output <path> | Write the image in the result to a file. call and with-tab. |
--keep-tab | Leave the tab open instead of closing it. with-tab. |
--profile <name> | Only this browser profile. tabs. |
--full-urls | Raw URLs instead of redacted origin and path. tabs. |
-h, --help | Usage |
-v, --version | Print the version |
Each command takes only the options it can act on. cic tabs --timeout 5 exits 64 rather than accepting a flag that could not mean anything, since nothing there can time out.