Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Install the [**chrome-use** extension from the Chrome Web Store](https://chromew
```bash
chrome-use extension install # register the native-messaging host (one-time)
chrome-use open https://x.com/home
chrome-use status # relay, profile, extension, and session health
chrome-use status # Chrome process, native host, relay, and session health
```

On macOS/Linux, `chrome-use extension install` also registers the native host in existing custom data directories of running Chromium-family browsers started with `--user-data-dir=<path>`. For a browser that is not running or cannot be discovered, use `chrome-use extension install --user-data-dir "/path/Chrome Data"`; `--user-data-dir=<path>` is also accepted and the option may be repeated. Every explicit directory must already exist. The command lists written manifests and reads back their name and launcher path. This confirms registration only: reopen the side panel in that Chrome or wait for automatic reconnection. Windows uses HKCU registration and rejects this option. Discovery scans only the current user’s processes. Failures in discovered directories warn and skip that registration; default and explicit directory failures remain errors (retry with `--user-data-dir`). Successful custom registrations are recorded in `~/.chrome-use/custom-host-dirs.json` for status and uninstall even when the browser is stopped. Recording failures warn that uninstall may leave manifests behind.
Expand All @@ -285,6 +285,8 @@ start because it is missing or has an unsupported executable format. Execution
permission denials and errors from an already-started SQLite query remain
explicit errors; locked or corrupt databases are not retried with another tool.

If the relay is offline, run `chrome-use status` and `chrome-use browsers`. Open the intended profile if Chrome is stopped. If the native host needs repair or the extension popup in that profile says **Not paired**, run `chrome-use extension install --all-profiles`, fully quit Chrome, and reopen it. If the extension is paired and the relay stays offline, reopen the popup or reload the extension at `chrome://extensions`. Retry `chrome-use connect --browser <profile>` to verify the connection.

`extension install` is the one-time setup. `chrome-use extension connect` (alias `chrome-use reconnect`) re-attaches to an already-installed extension's relay without reinstalling anything. Chrome still shows its "chrome-use started debugging this browser" bar on attached agent tabs; `chrome-use extension connect --silent` removes it by restarting Chrome once with `--silent-debugger-extension-api` (tabs and logins are restored; it refuses when several Chrome instances are running). `--keep-banner` leaves Chrome alone, and without either flag it asks first in an interactive terminal. `chrome-use reconnect` and `extension connect --browser <profile>` restart Chrome only with `--silent`, and never when the selected profile's relay is refusing connections.

All AI sessions in a Chrome profile share one background agent window, with one tab group per session; your own window stays separate. Existing windows with verified agent ownership are reused, including fullscreen windows. Unknown ownership or failed placeholder cleanup refuses instead of creating more windows. User tabs are never moved or deleted to reclaim a window. If you open or drag your own tabs into the agent window, that window becomes yours: agent tabs already there keep working, and new agent tabs go to one fresh agent window that later sessions share.
Expand Down Expand Up @@ -455,7 +457,7 @@ Regular Human pointer clicks now use a seeded 60–200ms settling pause after mo
| `chrome-use auth login --bwu [--item <id\|name>]` | Fill the current login page from Bitwarden; handles TOTP and supported passkey second factors |
| `chrome-use auth login --bwu --passkey` | Sign in with a vault passkey in `--launch` mode (bwu 0.9.0+) |
| `chrome-use auth login --1password [--item <id\|name>]` | Fill the current login page from 1Password (username, password and TOTP; no passkeys) |
| `chrome-use status` | Relay transport, recent debugger timeouts, duplicate installs, extension version skew, and session health. With ab-connect 0.5.50+, host disconnect schedules a first retry after 1s, with repeated failures backing off to 30s. Dead-socket command/event waits fail; old replies are not replayed. Failed sends/lost replies report action_outcome_unknown with retryable: false. Check the page before repeating an interrupted write |
| `chrome-use status` | Chrome process state, native host registration, relay transport, recent debugger timeouts, duplicate installs, extension version skew, and session health. With ab-connect 0.5.50+, host disconnect schedules a first retry after 1s, with repeated failures backing off to 30s. Dead-socket command/event waits fail; old replies are not replayed. Failed sends/lost replies report action_outcome_unknown with retryable: false. Check the page before repeating an interrupted write |
| `chrome-use close --forget-untracked` | Explicit recovery for stale ownership records with no tab identity. Requires two valid registry absence reads; reports ownershipDropped and does not claim those Chrome tabs were closed. Cannot be combined with a tab or --all |

`set device "iPhone 13"` uses a 390 × 844 CSS viewport at 3× scale and an iOS 15 user agent.
Expand Down Expand Up @@ -498,6 +500,12 @@ Chrome keeps the discarded tabs. Older relays without `ABExt.inspectTab` rely on
Tab creation, selection, and adoption stay in the background by default. On macOS,
a page that opens a tab itself can briefly bring Chrome to the front. The click
reports `focusRestored` and, when restoration is unconfirmed, a `focusNote`.
If Chrome appears before the relay lists the popup, chrome-use checks once more
after 150 ms. On that check, the popup must name the clicked tab as its opener.
For a read-only link with an ordinary `href`, `click @ref --new-tab` opens the
destination in a background tab and skips the page’s click handler. In a
same-origin loopback test on Chrome 155, the first request carried the
`SameSite=Strict` session cookie and the source tab stayed selected.
`--activate` (alias `--front`) and `bringToFront` are the explicit exceptions:
they change the visible tab, focus that Chrome window and leave the tab in the
foreground, so agents are told to use them only when you ask. If new-tab initialization
Expand Down Expand Up @@ -736,6 +744,8 @@ Use independent detectors to evaluate fingerprints. [Botcheck](https://botcheck.

## Permissions & safety

The Smart Effort review prompt in Cursor accepts rules about security-related code changes. When a field triggers payment confirmation during a fill, the description can identify the field attribute and the kind of payment cue it matched. Include that reason when reporting a false positive.

On your own Chrome, chrome-use checks every agent action against the site it lands on before running it. By default it asks you first on banking, brokerage, crypto exchange and government ID sites (a [maintained list](cli/src/native/sensitive_sites.json)), and before typing into payment card fields and purchases. Asking before password fields and downloads is off by default, since agents sign in and download on their own; turn it on per category. You answer in the side panel, its notification or the options page: **Allow once**, **Always allow on this site**, or **Decline**. The options page keeps the approved and blocked sites and a permission history. The gated command exits with code 3 and the agent runs `chrome-use confirm <id>` to wait for your choice. Turn the defaults off on the options page, with `CHROME_USE_SENSITIVE_SITES=0`, or in the `sites` block of an `--action-policy` file. Organizations can pin allowed and blocked domains, the action policy and disabled agents through Chrome enterprise policy (`chrome.storage.managed`). The check runs in the CLI, so pages see nothing new. See [Permissions & Safety](https://chrome-use.leeguoo.com/en/permissions.html).

## More in the docs
Expand Down Expand Up @@ -825,6 +835,8 @@ Apache-2.0

`debugger_access_denied` lists browser-wide candidate extension names and IDs when available. Verify which extension injects a frame into the blocked tab before disabling it; the list does not prove the cause.

If a snapshot stays blocked, `data.extensionFrameCleanup` reports this command’s cleanup status and reason. Leave the form open. Ask the user to close the visible extension menu or hide its autofill prompt on this site, then run `snapshot -i` in the same session.

A refused dynamic-form ref now reports `code: "stale_ref"` with `retryable: false`. Refresh `snapshot -i`, then use the current dialog's ref or a unique stable CSS/semantic locator; no input is sent by the refusal. Keep verification enabled and do not replace trusted input with a DOM click. For `debugger_access_denied`, close a visible autofill menu or save-login bar first; hiding a tab may not dismiss a save-login bar. Candidate-extension lookup is best effort and never replaces the original access denial.

Video publisher sources and cover review: `wechat-channels/publish` still comes from bundled OpenCLI; it was not removed. OpenCLI 1.8.8 also provides Xiaohongshu image-note publishing, not a video publisher, and its TikTok manifest has no upload/publish command. Use `site info` to check the installed command and source. The bundled WeChat and Douyin video publishers now default to a chrome-use `--cover-mode review` preflight that refuses an implicit platform cover before invoking the adapter (`code: "cover_selection_required"`, `retryable: false`). WeChat `--manual true` or `--draft true` prepares the form without automatic publication; `--cover-mode keep` explicitly accepts the upstream platform-selected cover, without claiming to preserve a cover chosen in a previous form. Douyin's existing `--cover <image>` remains supported; `--cover-mode upload` requires it. Unsupported cover arguments and AI/frame modes are refused rather than silently ignored. Added OpenCLI sources keep their own schemas. Local frame extraction is available only on opted-in native adapters; existing-work cover updates remain unimplemented.
Expand Down
Loading
Loading