You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GoClaw already has a Chrome MV3 extension for Selected Cookie Sync (extensions/chrome-selected-cookie-sync) plus backend storage/injection for scoped browser sessions. This issue proposes a separate but related feature: Browser Companion, where an agent can operate the user's real browser through an explicitly approved extension session, similar in spirit to Claude for Chrome.
This should be designed as a new security model, not as a simple upgrade of cookie sync.
Summary
GoClaw already has a Chrome MV3 extension for Selected Cookie Sync (
extensions/chrome-selected-cookie-sync) plus backend storage/injection for scoped browser sessions. This issue proposes a separate but related feature: Browser Companion, where an agent can operate the user's real browser through an explicitly approved extension session, similar in spirit to Claude for Chrome.This should be designed as a new security model, not as a simple upgrade of cookie sync.
Current state found in source
Existing cookie sync pieces:
extensions/chrome-selected-cookie-sync/POST /v1/browser/cookies/syncGET /v1/browser/cookiesDELETE /v1/browser/cookiesinternal/http/browser_cookies.gointernal/http/browser_cookies_payload.gointernal/store/browser_cookie_store.gointernal/store/pg/browser_cookies.gointernal/store/sqlitestore/browser-cookies.gocmd/browser_cookie_provider.gopkg/browser/cookies.gopkg/browser/browser_page.gopkg/browser/browser_tabs.gotools.browser.cookie_sync_enabledui/web/src/pages/config/sections/tools-browser-section.tsxCurrent flow:
Desired new flow:
Feature proposal: GoClaw Browser Companion
Create a dedicated extension mode that lets a user explicitly share/control their current browser tab with a selected GoClaw agent.
Goals
Non-goals for MVP
chrome.debugger/CDP in MVP unless explicitly enabled as an advanced mode.Proposed architecture
New tool surface ideas
Potential tool namespace:
user_browser.statususer_browser.snapshotuser_browser.screenshotuser_browser.navigateuser_browser.clickuser_browser.typeuser_browser.scrolluser_browser.pressuser_browser.waituser_browser.stop_sessionSession model
A session should require explicit user action:
Session should be bound to:
MVP security constraints
Safe DOM mode first
Use:
chrome.tabschrome.scriptingAvoid
chrome.debugger/ CDP for MVP because it greatly increases browser-control power and store-review/security risk.Required guardrails
High-risk action confirmation
Require user confirmation for:
Suggested default denylist categories
accounts.google.comlogin.microsoftonline.comImprovements for existing Selected Cookie Sync
While working on the companion feature, tighten the existing cookie sync feature too.
1. Reconsider default enablement
Currently
tools.browser.cookie_sync_enableddefaults to enabled unless set false.Consider:
2. Short-lived pairing instead of long-lived token in extension
Current extension stores gateway URL/token/userId/agentId in
chrome.storage.local.Improve with:
3. Cookie management UI
Add UI to view/revoke synced cookie metadata:
Backend already supports list/delete metadata without returning value.
4. Durable audit logs
Beyond slog, write durable activity records for:
Audit fields:
5. Policy layer
Add policy checks before accepting/injecting cookies:
6. UX warnings
Extension should clearly explain:
7. Extension permissions hardening
Current manifest uses:
Runtime asks for active origin only, which is good. Still consider documenting why
<all_urls>is needed or narrowing if possible.Acceptance criteria
Browser Companion MVP
Cookie Sync hardening
Notes
This is inspired by the interaction pattern of Claude for Chrome, but should align with GoClaw's product strengths: