Remote session bridge / v0.11.0

Keep headless browsers
signed in.

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.

Get started
WindowsmacOSLinuxChrome MV3
npx / cookie-sync / pair relay online

$ npx @ivjnus/cookie-sync pair

Pair code

SKHZ-DMGY-2WKP

Relay     https://relay.ivjn.us

Chrome◆CLI

SYNC github.com 14 cookies

SYNC console.cloud.google.com 8 cookies

SYNC ivjn.cn 3 cookies

$ npx @ivjnus/cookie-sync pull-all

1×One-time authorization
∞Sync unlimited domains
E2EERelay can't decrypt
WSSRealtime update alerts

Workflow

Three steps bridge two worlds

The desktop browser handles authentication; the remote device handles automation. CookieSync only carries the session state needed to get the job done.

01
⌘

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 pair
02
◎

Authorize the extension once

Enter the code in the Chrome extension. It claims an upload-only device token that can never read data back.

Chrome → CookieSync
03
↯

Stays synced automatically

Cookie changes, browser launches, and scheduled jobs all trigger an encrypted sync — no repeated steps.

npx @ivjnus/cookie-sync pull-all

Security model

The relay only ever sees ciphertext.

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.

  • 01End-to-end encryption X25519 key agreement, HKDF, and AES-256-GCM.
  • 02Privilege separation The extension holds only an upload token; the CLI alone holds the read token.
  • 03Instantly revocable If a device is lost, one command revokes every authorized browser.
  • 04Multi-browser isolation Aliases, notes, UA, system info, and independent cookie snapshots per browser.
SOURCEChrome Extensioncookies.onChanged
encrypted envelope
ZERO KNOWLEDGErelay.ivjn.usciphertext only
read token
DESTINATIONHeadless Chromeisolated context

Capabilities

More than a cookie copier

From multi-browser identity management to realtime notifications, CookieSync provides the full pipeline for long-running remote automation.

01 / IDENTITIES

Multi-browser management

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 browsers
02 / REALTIME

Realtime WebSocket alerts

A 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.com
03 / FALLBACK

One-time Console import

When 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.com
04 / DEFENSE

Rate limiting & least privilege

Pairing, 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-After
05 / CONSENT

Notify or confirm on read

CLI 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 / confirm
06 / SCOPE

Domain-scoped access

Read 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 approved
07 / AUDIT

Browser-side access audit

The 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 events
08 / REASON

A reason for every read

The 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"
09 / PLAYWRIGHT

Ready-to-use auth state

Export synced cookies as standard Playwright storageState that tests and automation jobs can load directly.

npx @ivjnus/cookie-sync playwright github.com
10 / PORTABLE

JSON and cookies.txt

Output raw cookie JSON or Netscape cookies.txt for scripts, curl, wget, and other tools.

--format json|txt
11 / REMOTE OPEN

Open pages from the CLI

Send 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

Start syncing now

# 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
Important

Console mode is not a substitute for the extension.

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.