claude-code-chrome

Claude Code Workspace

Run Claude Code CLI directly in Chrome — side panel terminal with ANSI colors, folder picker, and multi-session support.

Status Platform


What It Does

Opens Claude Code CLI inside a Chrome side panel (or full tab). No terminal app needed.


Architecture

Chrome Extension (claudecode-workspace/)
    │
    │  Native Messaging Host (NMH)
    ▼
Node.js Companion (claudecode-runtime/)
    │
    │  PTY (node-pty)
    ▼
Claude Code CLI

The extension is a renderer only — all state lives in the companion.
The companion spawns Claude Code in a PTY (full terminal emulation) and streams output to Chrome via NMH.


Install

Prerequisites

Step 1: Clone the repo

git clone https://github.com/RudraMind/claude-code-chrome.git
cd claude-code-chrome

Step 2: Install companion

cd claudecode-runtime
npm install

This installs @homebridge/node-pty-prebuilt-multiarch (PTY emulation). It also runs scripts/setup.js which registers the Native Messaging Host with a placeholder Extension ID — you must complete Step 4 with the real ID before the companion will connect.

Step 3: Load extension in Chrome

  1. Open chrome://extensions
  2. Enable Developer mode (top right)
  3. Click Load unpacked → select the claudecode-workspace/ folder
  4. Copy the Extension ID shown

Step 4: Register NMH with your Extension ID

Windows:

cd claudecode-runtime
$env:CLAUDE_EXTENSION_ID = "YOUR_EXTENSION_ID_HERE"
node scripts/setup.js

Mac / Linux:

cd claudecode-runtime
CLAUDE_EXTENSION_ID=YOUR_EXTENSION_ID_HERE node scripts/setup.js

Step 5: Reload extension

Go to chrome://extensions → click ↻ reload on Claude Code Workspace.

Step 6: Open

Click the Claude Code Workspace icon in your Chrome toolbar. The side panel opens.


Usage

  1. Click extension icon → side panel opens, green dot = companion connected
  2. Open Project Folder → native OS folder picker
  3. Launch Claude Code → full Claude Code TUI appears in panel
  4. Type prompts, get responses — full Claude Code experience
  5. ⤢ Full Tab button → expand terminal to full browser tab
  6. 🗑 button → start new session (with confirmation)

Troubleshooting

Red dot / companion not connected

# Windows (PowerShell)
Get-Content "$env:USERPROFILE\.claudecode-runtime\companion.log" -Tail 50
# Mac / Linux
tail -50 ~/.claudecode-runtime/companion.log

Claude Code not found

claude --version   # must work in terminal

Folder picker doesn’t appear (Windows)

Blank terminal after launch


Known Limitations (v2 Backlog)


Privacy

This extension communicates only with a locally-installed companion process on your machine. No data is sent to external servers.

See Privacy Policy.


License

MIT