One-click code execution from Claude.ai to your terminal. No more copy/paste.
Claude Bridge connects your Claude.ai chat directly to a local terminal. Code blocks get Send & Run buttons, terminal output feeds back to chat, and screenshots paste directly into conversations.
| Feature | How |
|---|---|
| ⚡ Send & Run | Hover any code block on claude.ai → click → auto-executes in terminal |
| 🖥️ Terminal Output | See live output in a panel on claude.ai, click "Send to Chat" when ready |
| 📸 Screenshot | Click 📸 → Windows snipping tool opens → snip any window → auto-pastes to chat |
| 🔄 Auto-Run | Toggle on/off — skip the Enter key confirmation |
| 🟢 Live Status | Connection indicator right on claude.ai |
- Node.js (v18 or higher) — Download here
- Chromium browser — Chrome, Brave, or Edge
- Windows 10/11, macOS, or Linux
- Git — Download here
Open a terminal (Git Bash on Windows, Terminal on Mac):
git clone https://github.com/AL-ZiLLA/claude-bridge.git
cd claude-bridge/agent
npm install
⚠️ Windows users: Ifnode-ptyfails to install, you may need to install build tools first:npm install --global windows-build-toolsThen try
npm installagain.
- Open your browser and go to:
- Brave:
brave://extensions - Chrome:
chrome://extensions - Edge:
edge://extensions
- Brave:
- Toggle Developer Mode ON (top right corner)
- Click Load unpacked
- Navigate to the
claude-bridge/extension/folder and select it - You should see Claude Bridge appear in your extensions list
Open a terminal window and run:
cd ~/claude-bridge/agent
node index.jsYou should see:
🌉 Claude Bridge v3.1
───────────────────────────
⚡ Auto-execute
💬 Manual feedback
📸 Win+Shift+S capture
───────────────────────────
✓ Ready
Keep this terminal window open — it's your bridge agent running in the background.
- Open claude.ai in your browser
- Look for the 🌉 Connected status bar in the top right corner
- You're live! 🔥
- Ask Claude anything that generates a code block
- Hover over the code block
- Click Send & Run — it auto-executes in your terminal
- Button shows ⚡ Running... then ✅ Done
- Click the 🖥️ Terminal Output bar at the bottom of claude.ai to expand it
- See live output from your terminal
- Click 💬 Send to Chat to paste the output into the chat input
- Add context if needed, then send to Claude
- Click 📸 in the status bar
- Windows Snipping Tool opens — snip any window, tab, or area
- Screenshot auto-pastes into the Claude chat input
- Add a question like "what's wrong here?" and send
| Control | What it does |
|---|---|
| Auto-Run toggle | ON = commands execute immediately. OFF = you press Enter to confirm |
| 📸 button | Opens snipping tool for screenshots |
| ─ button | Minimize the status bar |
Every time you sit down to work:
- Open a terminal and start the agent:
cd ~/claude-bridge/agent node index.js
- Open claude.ai — extension connects automatically
- Work — Send & Run code blocks, screenshot issues, feed output back
- When done — Ctrl+C in the agent terminal to stop it
The extension stays loaded in your browser — you only set that up once.
Claude Bridge runs independently from your projects. Your typical setup:
- Terminal #1: Claude Bridge agent (running in background)
- Terminal #2: Your project (e.g.,
cd ~/my-project && npm run dev) - Browser Tab 1: claude.ai (with bridge connected)
- Browser Tab 2: localhost:3000 (your app preview)
Each project has its own git repo. Claude Bridge has its own. No conflicts.
- Make sure the agent is running (
node index.jsin the agent folder) - Refresh claude.ai (
Ctrl+Shift+R) - Reload the extension in
chrome://extensions(click the 🔄 icon)
- Hard refresh claude.ai:
Ctrl+Shift+R - Check extension is enabled in
chrome://extensions - Open browser DevTools (F12) → Console → look for
[Claude Bridge]messages
# Install Windows build tools first
npm install --global windows-build-tools
# Then retry
cd ~/claude-bridge/agent
npm install# Windows — find and kill the process
netstat -ano | findstr :9876
taskkill /PID <PID_NUMBER> /F
# Mac/Linux
lsof -ti:9876 | xargs kill -9- Make sure you click 📸 while claude.ai is the active tab
- After snipping, click back into the Claude chat input and press
Ctrl+V - The snip is always on your clipboard as a fallback
BRIDGE_PORT=8888 node index.jsclaude-bridge/
├── extension/ # Chrome Extension (load this in browser)
│ ├── manifest.json # Extension config
│ ├── content.js # Code block detection + buttons
│ ├── styles.css # UI styles
│ ├── popup.html # Extension popup
│ ├── popup.js # Popup logic
│ └── background.js # Service worker
├── agent/ # Local Bridge Agent (run this)
│ ├── index.js # WebSocket server + terminal bridge
│ └── package.json # Dependencies
├── package.json
└── README.md
Zilla — AI-first software studio
MIT — use it, fork it, build on it.