Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cookie-sync

Skill by browserbase

Sync cookies from your local Chrome into a Browserbase persistent context. The browse CLI can then open sites where you are already logged in.

  • Score 85
  • 3.8k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cookie-sync

Built from the published package, never by AI.

git clone --depth 1 https://github.com/browserbase/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cookie-sync ~/.claude/skills/cookie-sync

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cookie-sync in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Cookie Sync exports cookies from a local Chromium-based browser such as Chrome, Brave or Edge. It saves them into a Browserbase persistent context and prints a context ID. The skill runs as a Node.js script that reads the browser through remote debugging.

Once cookies are synced, the browse CLI can start a cloud session with that context and open authenticated pages. The skill supports domain filtering so only chosen sites are synced, and it can refresh an existing context when cookies expire. It is aimed at people who want to browse as themselves, or run scheduled jobs against sites they log into, without keeping a local Chrome open.

Written from the project's SKILL.md and checked against it.

What it can do

  • Sync all cookiesCreates a persistent context with all cookies from local Chrome and outputs a context ID.
  • Filter by domainSyncs only the listed domains and their subdomains, for example google.com and github.com.
  • Refresh existing contextRe-injects fresh cookies into a previously created context when cookies have expired.
  • Verified browser modeEnables Browserbase Identity with a Verified browser to improve access on protected sites.
  • Residential proxy with geolocationRoutes through a residential proxy in a chosen City,ST,Country location to match your IP location.
  • Browse authenticated sitesUses the browse CLI with the context ID to open logged-in sessions in a Browserbase cloud session.

What you need

  • Node.js 22+
  • A local Chromium-based browser (Chrome, Brave or Edge) with remote debugging enabled
  • BROWSERBASE_API_KEY environment variable
  • At least one tab open in Chrome
  • npm install run in the skill directory

Try asking

  • Sync my Chrome cookies for github.com and google.com into a Browserbase context.
  • Refresh the cookies in context ctx_abc123 because they have expired.
  • Open my logged-in X messages page in a Browserbase session using my synced cookies.

Good to know

  • Cookies come from a local browser, so remote debugging must be enabled and the browser must be open.
  • Synced cookies expire, so the context must be refreshed with cookie-sync when they do.
  • Sites that reject the session may need the verified mode and a nearby proxy location.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: skills/cookie-sync/SKILL.md, skills/cookie-sync/scripts/cookie-sync.mjs. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash

  • EXAMPLES.md4 KB
  • LICENSE.txt1 KB
  • REFERENCE.md5 KB
  • SKILL.md5 KB
  • package-lock.json147 KB
Show all 7 files
  • package.json191 B
  • scripts/cookie-sync.mjs11 KB

Alternatives to cookie-sync

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

cookie-sync: common questions

Does cookie-sync need a local browser to run scheduled jobs?

No. The skill says scheduled jobs can create a Browserbase session with the context ID and attach with no local Chrome needed. Local Chrome is only needed for the initial sync or a refresh.

Can I limit which cookies are synced?

Yes. The --domains flag syncs only the given domains, and it also matches their subdomains.

What does the --persist flag do?

According to the source, --persist saves new cookies or state changes back to the context when the cloud session is released.

How do I install cookie-sync?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cookie-sync free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is cookie-sync safe to use?

It scores 85 of 100. Grades: maintenance A, licence F, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to cookie-sync?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

cookie-sync Install

Add to stack

Loading.