Druzhe
by turman17
README.md
# Druzhe
**A browser agent for your own Chrome that asks before anything leaves it.**
[Website](https://turman17.github.io/Druzhe-website/) · [Install](https://turman17.github.io/Druzhe-website/docs/install/) · [Compare](https://turman17.github.io/Druzhe-website/compare/claude-in-chrome/) · [Changelog](CHANGELOG.md)
[](https://github.com/turman17/druzhe/releases)
[](https://github.com/turman17/druzhe/releases)
[](https://www.npmjs.com/package/druzhe)
[](https://github.com/turman17/druzhe/stargazers)
[](LICENSE)

Ask Claude, Codex or Gemini to do something on the web, and Druzhe does it in your logged-in Chrome,
on the subscription you already pay for. It clicks, types and reads like you would. The moment a
click would send something (a payment, a post, a form), the request is held and you see exactly
what would go out before you approve it. CAPTCHAs are handed to you, never solved. A finished task
can be saved as a **flow** that replays with zero model calls. Rust core, Apache-2.0.
## Start locally
[](https://cursor.com/en/install-mcp?name=druzhe&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImRydXpoZUBsYXRlc3QiLCJtY3AiXX0%3D)
[](https://vscode.dev/redirect/mcp/install?name=druzhe&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22druzhe%40latest%22%2C%22mcp%22%5D%7D)
**1. Install** on macOS with Homebrew:
```sh
brew trust turman17/tap # once; recent Homebrew asks before using a third-party tap
brew install turman17/tap/druzhe
```
On Linux, or macOS without Homebrew:
```sh
curl -fsSL https://raw.githubusercontent.com/turman17/druzhe/main/install.sh | sh
```
With Node.js you can skip the install and run `npx -y druzhe` instead.
**2. Your agents are connected.** 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**. Disconnect any of them there. Headless: `druzhe connect --yes`
(`--print` shows what it would change).

In Claude Code you can use the plugin instead: `claude plugin marketplace add turman17/druzhe`,
then `claude plugin install druzhe@druzhe`.
**3. Add the extension to Chrome.** The Chrome Web Store listing is pending; until then run
`npm --prefix extension ci && npm --prefix extension run build` and **Load unpacked** `extension/dist`
from `chrome://extensions`. The extension opens a setup page that checks for the Druzhe program:
if it's missing it shows the install command for your system, and the page turns green by itself
once Druzhe is installed and linked, with the agents it's connected to and what to do next. You can
also install the extension first; the same page walks you through the rest.
Restart your host app and ask it something like *"book a lakeside cabin for two this weekend, under
$200 a night, with my details"*. The Druzhe skill tells the agent when to reach for Druzhe instead of
its built-in browser tools, and how to use it.
**Works with** Claude Code · Codex · Gemini CLI · Antigravity · Cursor · VS Code, and any MCP client
that can run `druzhe mcp`.
## What you see

- **Companion dock.** A small teal dock in the corner says what Druzhe is doing and has a Stop
button. The cursor glides to each target and a soft ring shows where it acts.
- **Its own tabs.** Druzhe works in a "Druzhe" tab group. It uses one of your tabs only when you
hand it over from the extension.

- **Approvals with a preview.** When a click would send data, the request is held. The side panel,
popup or dashboard shows the method, the site and every field with your real values; the model
only ever sees placeholders like `{{profile.email}}`. Passwords stay hidden. Deny is the default.
- **Take over.** Drive the page yourself from the side panel while Druzhe waits, then hand it back.
- **Recaps and flows.** Each finished task shows what was done, the steps, time and cost, and the
flow it was saved as. Flows run, export, import and schedule from the dashboard (`druzhe ui`) or
the side panel; scheduled runs make no model calls and still wait for your approval.
## Druzhe and Claude in Chrome
Both drive your own logged-in Chrome from a side panel and a tab group. The difference is who can
drive it, what stops a mistake, and what a repeat costs.
| | Druzhe | Claude in Chrome |
|---|---|---|
| Which AI drives it | Claude Code, Codex, Gemini CLI, Antigravity, Cursor, any MCP client; or standalone with your own API keys | Claude only, on a direct Anthropic plan |
| Before something is sent | The click runs, the outgoing request is held, and you see its method, site and fields with your real values; deny and nothing is sent | Manual mode asks before every action; Auto mode lets an AI safety check decide when to pause; Skip mode never asks |
| Clicks that only change the page | Run without asking; Druzhe learns which buttons send data | Asked about in Manual mode, judged by the safety check in Auto |
| Your personal details | Filled from your profile as `{{profile.key}}`; the model never sees the values | Typed by the model, which sees them |
| Repeating a task | Saved as a flow that replays with zero model calls; schedules run the flow | Scheduled tasks run the model again each time |
| CAPTCHAs | Handed to you; the run continues when you've solved it | Handed to you |
| Speed on our bench (Sonnet) | 10.5 s per task | 36.0 s per task |
| Cost on our bench (Sonnet) | $0.037 per task, 6.0 tool calls | $0.054 per task, 13.3 tool calls |
| "Publish it" with nobody to approve | Never sent: 0 of 10 runs, five hosts | Published in 2 of 2 runs |
| Source | Open source, Apache-2.0, Rust core | Closed |
Claude in Chrome's modes are from Anthropic's [permissions guide](https://support.claude.com/en/articles/12902446).
The bench rows are from the run below. Claude in Chrome ran through `claude -p --chrome` in a real
Chrome, with its browser tools allowed for the run and the extension's permission mode as set.
## How it compares
Five hard fixture tasks (a paged search, a late-loading table, a wizard with a missing answer, an
editor with topics, a two-tab price comparison), two runs each, every host with only its browser
tool. With the same model (Sonnet), Druzhe was **3.4× faster** than Claude in Chrome, about 30%
cheaper, and used half the tool calls.
| Host (model) | Passed | Avg time | Avg cost | Avg tool calls |
|---|---|---|---|---|
| Claude Code + Druzhe (Opus) | 10/10 | 10.9 s | $0.066 | 5.4 |
| Claude Code + Druzhe (Sonnet) | 9/10 | 10.5 s | $0.037 | 6.0 |
| Claude Code + Druzhe (Haiku) | 8/10 | 11.0 s | $0.003 | 8.7 |
| Codex + Druzhe | 8/10 | 27.1 s | – | 7.0 |
| Gemini (agy) + Druzhe | 10/10 | 49.5 s | $0.079 | – |
| Claude in Chrome (Sonnet), baseline | 8/10 | 36.0 s | $0.054 | 13.3 |
The editor task ends with "publish it", and nobody is there to approve. With Druzhe the publish
request reached the site in **0 of 10** runs across five hosts; Claude in Chrome published in 2 of 2.
Per-run numbers: [docs/bench/2026-12-03-v2-matrix.md](docs/bench/2026-12-03-v2-matrix.md).
## Safety in short
- Only http(s) sites, and only your allowlist if you set one.
- Clicks and key presses run with outgoing requests held; anything that would send data waits for
your yes.
- Profile values fill placeholders the model never sees.
- Every attempt is written to a local audit log.
- The dashboard and the extension relay never listen on the network.
Details: [docs/safety.md](docs/safety.md).
## If you're an AI agent
Start with [llms-install.md](llms-install.md) for client-specific installation. In short:
```sh
druzhe connect --print # see what would change
druzhe connect # native host + MCP registration, one confirmation per host
druzhe status # daemon and Chrome connection
```
The user adds the Chrome extension and answers approvals; never approve on their behalf, and never
try to solve a CAPTCHA (call `wait_for_user`).
## Choose a guide
| I want to… | Guide |
|---|---|
| Connect a host by hand, run without the extension, understand tabs and CAPTCHAs | [Setup](docs/setup.md) |
| Know the MCP tools, how approvals are asked and learned | [Tools](docs/tools.md) |
| Run tasks with my own API keys and model routing | [Standalone](docs/standalone.md) |
| Drive it from a shell, manage flows, change config | [CLI](docs/cli.md) |
| Understand what the guard allows, holds and records | [Safety](docs/safety.md) |
| See how it was measured | [Benchmark](docs/bench.md) |
| Build, test, contribute or release | [Contributing](CONTRIBUTING.md) · [Releasing](docs/releasing.md) |
[Apache-2.0 license](LICENSE) · [Report a security issue](SECURITY.md) · [Privacy](docs/privacy.md)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues