cookie-sync
Sync local browser cookies to Browserbase persistent contexts.
Developer Setup
Setup & Installation
npx skills add https://github.com/browserbase/skills --skill cookie-syncnpx skills add https://github.com/browserbase/skills --skill cookie-syncOverview
What This Skill Does
Syncs authenticated cookies from local Chrome instances to persistent Browserbase browser contexts.
Application
When to use this Skill
- When you want to run Browserbase sessions using your own authenticated user state.
- When you need to bypass complex login flows or MFA checks by copying active local sessions.
- When syncing local Chrome/Brave browser cookies to a Browserbase persistent context.
- When you want to target specific domains for session cookie sync rather than copying all data.
- When you need to refresh existing contexts with new cookies without recreating resources.
Documentation
Show Skills.md file
Cookie Sync — Local Chrome → Browserbase Context
Exports cookies from your local Chrome and saves them into a Browserbase persistent context. After syncing, use the browse CLI to open authenticated sessions with that context.
Supports domain filtering (only sync cookies you need) and context reuse (refresh cookies without creating a new context).
Prerequisites
- Chrome (or Chromium, Brave, Edge) with remote debugging enabled
- If your browser build exposes
chrome://flags/#allow-remote-debugging, enable it and restart the browser - Otherwise, launch with
--remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debugand setCDP_URL=ws://127.0.0.1:9222 - At least one tab open in Chrome
- Node.js 22+
- Environment variable:
BROWSERBASE_API_KEY
Setup
Install dependencies before first use:
cd .claude/skills/cookie-sync && npm install
Usage
Recommendations
Explore other random skills
attach-db
Attach a DuckDB database file for interactive querying with automatic schema exploration
query
Run SQL queries against attached databases or ad-hoc against files using Friendly SQL dialect
read-file
Read any data file (CSV, JSON, Parquet, Avro, Excel, spatial) locally or from remote storage