CLI creates a pairing
Run the pairing command on the remote device to generate a one-time code valid for 10 minutes.
npx @ivjnus/cookie-sync pairRemote session bridge / v0.11.0
Authorize your browser once and CookieSync end-to-end encrypts cookies for every permitted domain, syncing them to a CLI and headless Chrome on another device.
$ npx @ivjnus/cookie-sync pair
Pair code
SKHZ-DMGY-2WKP
Relay https://relay.ivjn.us
SYNC github.com 14 cookies
SYNC console.cloud.google.com 8 cookies
SYNC ivjn.cn 3 cookies
$ npx @ivjnus/cookie-sync pull-all
Workflow
The desktop browser handles authentication; the remote device handles automation. CookieSync only carries the session state needed to get the job done.
Run the pairing command on the remote device to generate a one-time code valid for 10 minutes.
npx @ivjnus/cookie-sync pairEnter the code in the Chrome extension. It claims an upload-only device token that can never read data back.
Chrome → CookieSyncCookie changes, browser launches, and scheduled jobs all trigger an encrypted sync — no repeated steps.
npx @ivjnus/cookie-sync pull-allSecurity model
Every snapshot is encrypted inside the browser. The CLI's X25519 private key never leaves the target device, so the relay can never recover cookie contents.
Capabilities
From multi-browser identity management to realtime notifications, CookieSync provides the full pipeline for long-running remote automation.
Every Chrome profile is stored independently. The CLI can view browser ID, UA, OS, architecture, and last-seen time, and set aliases and notes.
npx @ivjnus/cookie-sync browsersA waiting CLI wakes up the instant a cookie updates, falling back to polling if the connection drops. Web Push sends only non-sensitive update metadata.
npx @ivjnus/cookie-sync wait github.comWhen the extension can't be installed, create a five-minute single-use session that encrypts and imports the currently visible cookies from the page Console.
npx @ivjnus/cookie-sync console github.comPairing, device claiming, and imports each have independent rate limits; upload tokens can't read data, and the relay only stores token hashes and encrypted snapshots.
429 + Retry-AfterCLI reads are allowed by default with a system notification, or you can require explicit approval in Chrome for every read. Approved requests can be used only once.
notify / confirmRead requests are bound to a browser and domain for up to two minutes. Denied, expired, or already-consumed requests can never retrieve the encrypted snapshot again.
403 until approvedThe extension can view requests, approvals, denials, expirations, and actual consumption, plus CLI host, system, and source IP. The audit never contains cookie data.
90 days / 500 eventsThe CLI can explain why it needs cookies via --reason. The reason shows up in Chrome notifications, the audit log, and one-time Console import output.
--reason "Smoke test"Export synced cookies as standard Playwright storageState that tests and automation jobs can load directly.
npx @ivjnus/cookie-sync playwright github.comOutput raw cookie JSON or Netscape cookies.txt for scripts, curl, wget, and other tools.
--format json|txtSend an HTTP or HTTPS URL to a selected online browser; the extension creates a new tab and confirms the result to the CLI.
npx @ivjnus/cookie-sync open https://cookie-sync.ivjn.us/Quick start
# Requires Node.js 20+; no global install needed npx @ivjnus/cookie-sync status # Global install is optional for frequent use npm install -g @ivjnus/cookie-sync
Page JavaScript can't read HttpOnly cookies, and can't recover the full Path, SameSite, or partition attributes. Use the Chrome extension when you need to reliably reuse a session — Console mode is only a temporary fallback.