Install Druzhe
Three steps: install the program, connect your agents, add the Chrome extension. Most people are done in one command and one click.
Requirements
- macOS or Linux. Native Windows is not supported.
- Google Chrome, for the Druzhe extension. Without the extension, Chrome 144+ can be attached directly.
- An agent app (Claude Code, Codex, Gemini CLI, Antigravity, Cursor, VS Code or any MCP client), or your own API keys for standalone mode.
- Node.js only if you want to run it through
npx.
1. Install the program
macOS with Homebrew:
brew trust turman17/tap
brew install turman17/tap/druzheLinux, or macOS without Homebrew:
curl -fsSL https://raw.githubusercontent.com/turman17/druzhe/main/install.sh | shWith Node.js you can skip the install and run any command through npx:
npx -y druzhe2. Connect your agents
The installer opens the Druzhe dashboard (run druzhe any time to open it again). It finds Claude Code, Codex, Gemini CLI and Antigravity, gives each one the Druzhe MCP server and the Druzhe skill, installs the native host for the extension, and shows Connected to your agents. You can disconnect any of them there.
Without the dashboard, for scripts and servers:
druzhe connect --print # show what would change
druzhe connect --yes # every detected client: MCP server + Druzhe skill, and the native host
druzhe status # daemon and Chrome connectionThe Druzhe skill tells the agent when to reach for Druzhe instead of its built-in browser tools, and how to use it. druzhe setup installs only the native host for the extension, if you connect your agents by hand.
Connect one agent by hand
Every host starts the same command, druzhe mcp, over stdio. Choose one route per client, so you don't end up with two Druzhe servers.
Claude Code, as a plugin:
claude plugin marketplace add turman17/druzhe
claude plugin install druzhe@druzheor as an MCP server:
claude mcp add --transport stdio --scope user druzhe -- druzhe mcpCodex: codex plugin marketplace add turman17/druzhe, or:
codex mcp add druzhe -- druzhe mcpor in ~/.codex/config.toml:
[mcp_servers.druzhe]
command = "druzhe"
args = ["mcp"]Gemini CLI: gemini extensions install https://github.com/turman17/druzhe, or:
gemini mcp add -s user druzhe druzhe mcpor in ~/.gemini/settings.json:
{ "mcpServers": { "druzhe": { "command": "druzhe", "args": ["mcp"] } } }Antigravity, from a checkout of the repository:
agy plugin install ./integrations/antigravityClaude Desktop. Edit ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, then restart the app:
{ "mcpServers": { "druzhe": { "command": "druzhe", "args": ["mcp"] } } }Cursor and VS Code. Use the install buttons in the README, or add a server with command druzhe and args ["mcp"]. Any other MCP client works the same way.
3. Add the Chrome extension
The Chrome Web Store listing is pending. Until then, build the extension from a checkout of the repository and load it unpacked:
npm --prefix extension ci && npm --prefix extension run buildOpen chrome://extensions, turn on Developer mode, choose Load unpacked and pick extension/dist.
The extension opens a setup page that checks for the Druzhe program. If it's missing, the page shows the install command for your system; once Druzhe is installed and linked it turns green by itself, with the agents it's connected to and what to do next. You can also install the extension first and let that page walk you through the rest.
Check that it works
Restart your agent app, then ask for a small read-only task, for example "what's the top story on news.ycombinator.com". Druzhe opens its own tabs in a "Druzhe" tab group and a small teal dock shows what it is doing, with a Stop button.
druzhe statusThen try something real, like "book a lakeside cabin for two this weekend, under $200 a night, with my details". When a click would send data, you'll be asked: see Approvals and safety.
Without the extension
Chrome 144+ can be driven directly: open chrome://inspect/#remote-debugging and turn it on once; Chrome then asks you to Allow each new connection. druzhe attach connects and lists your tabs, and druzhe status shows the connection.
For a throwaway browser, start Chrome with its own profile and attach to its port:
# start Chrome with --remote-debugging-port=9222 --user-data-dir=/tmp/druzhe-chrome, then:
druzhe attach --port 9222In direct mode, whether Druzhe may use any tab comes from [chrome] any_tab in the config instead of the extension.
Troubleshooting
| Problem | Fix |
|---|---|
| The agent doesn't see Druzhe | Restart the agent app after connecting. Run druzhe connect --print to see what is registered. |
| Claude Desktop can't start the server | Use the absolute path to druzhe as the command if the app can't find it on PATH. |
| Druzhe shows up twice | Keep one route per client: the plugin or mcp add, not both. |
| The extension's setup page stays grey | Install the program, then run druzhe (or druzhe setup for just the native host). |
| "Refused": another session is driving Chrome | Only one process may drive Chrome. A running dashboard (druzhe ui) or a second MCP session is refused; close the other one. To watch a session, run druzhe ui while it is open. |
| "stale ref" | A ref is valid only until the next snapshot or navigation. Take a new snapshot. |
| An action was denied without asking | If nobody answers within confirm_timeout_secs (default 300), the action is denied. Answer in the popup, side panel or dashboard. |
| Your agent never shows the approval | Approvals go to the dashboard queue or the host (MCP elicitation, verified in Claude Code), then the OS dialog, then the terminal. |
Config lives in ~/.config/browser-agent/ and data in ~/.local/share/browser-agent/ (override with BAGENT_CONFIG_DIR and BAGENT_DATA_DIR). druzhe config path prints where.