Approvals and safety

Druzhe acts in the browser where you are logged in, so it is built to stop before anything leaves it. Clicks run; the request they would send waits for your yes.

Updated

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.
  • CAPTCHAs are handed to you, never solved.
  • The dashboard and the extension relay never listen on the network.

Held requests

When Druzhe clicks or presses a key, it holds the page's outgoing requests for that action. Reads (GET, HEAD, OPTIONS) continue at once. The first request that would send data (a POST, a form submit, a publish) waits, and you see its method, site and every field with your real values before it goes. Passwords and token-like fields stay hidden. Deny is the default: deny, or no answer, and nothing is sent ("the click ran, nothing was sent").

You can answer in the extension popup or side panel (the Druzhe icon turns amber), on the dashboard, in Claude, or in the OS dialog. The first answer counts and the others close. If nobody answers within confirm_timeout_secs (default 300 seconds), the action is denied.

Some actions are asked before they run, because their request can't be held: submits that open a new tab, pages controlled by a service worker, key presses with unknown focus, and every file upload.

Learned approvals

Druzhe learns which buttons matter. A click that sent nothing (it only opened a preview or a menu) is remembered as safe on that site and runs freely next time. One that sent data keeps asking, and the question says what it sent last time.

You can also tick Always allow on this site or Always ask. Settings lists what Druzhe remembers.

Profile placeholders

Your personal details live in profile.toml in the config dir. The model only ever sees placeholders like {{profile.email}}; Druzhe fills the real value when the action runs. Placeholders never resolve in a URL, and page output is masked back to placeholders.

email = "ada@example.com"
password = { value = "…", origins = ["bank.example"] }

A key bound to origins fills only on those sites. A key with no origins, or a use anywhere else, asks you once per site.

Allowlist and uploads

Only http(s) URLs are allowed; about:blank only when no allowlist is set. Set the allowlist and the folders uploads may read from in config.toml:

[guard]
allowlist = ["example.com", "*.example.org"]   # empty: any http(s) origin
upload_dirs = ["~/Documents/cv"]               # empty: refuse every upload

Patterns are example.com (that host), *.example.com (subdomains, not the apex) or a full origin. A single run can also be limited with --allow ORIGIN,... on druzhe run and druzhe flow run.

Which tabs it may use

Druzhe opens its own tabs in a "Druzhe" tab group and closes only tabs it opened. It uses one of your tabs only when you attach it from the popup, or when you turn on Any tab. The extension enforces this, so the model can't change it. You can also take over: drive the page yourself from the side panel while Druzhe waits, then hand it back.

CAPTCHAs

Druzhe never solves CAPTCHAs. When one appears it brings the tab to the front and asks you: a Chrome notification ("Druzhe needs you: solve the check on <site>"), the amber icon and the popup's Go to tab, and a banner on the dashboard. Solve it, and Druzhe notices and continues by itself; it waits up to 5 minutes.

Audit log

Every attempt and its outcome is appended to audit.jsonl in the data dir (~/.local/share/browser-agent/ by default), readable only by you (mode 0600). Profile values appear there as placeholders.

Local services and page content

  • Dashboard. druzhe ui listens on 127.0.0.1 only, needs the exact Host, and a Bearer token that is new on each start. Writes also need a same-host Origin. Responses carry a strict CSP, X-Frame-Options: DENY and nosniff.
  • Extension relay. Chrome starts the native host only for the Druzhe extension, and it talks to the program over a Unix socket with mode 0600. There is no network port and no pairing secret.
  • Loopback. The agent never attaches to, reads, acts on or navigates to the dashboard or relay ports.
  • Page content (snapshots, text, tab titles, web results) is wrapped in random untrusted-content markers, so the model treats it as data, not instructions.

The full design is in the repository's safety notes. What data goes where: Privacy policy.