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.
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-syncRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/browserbase/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cookie-sync ~/.gemini/antigravity-cli/skills/cookie-syncAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
