Skip to content

ianchenx/session-stash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Session Stash

Session Stash

Chrome MV3 License

English | 中文

Session Stash is a Chrome extension for managing multiple account sessions on the same website. Save your cookies and localStorage as encrypted snapshots to your own Cloudflare KV — switch identities without changing browser profiles.

Install

Chrome: Session Stash

Features

  • Save and switch between multiple account sessions per website
  • End-to-end encrypted — AES-GCM-256, key derived via PBKDF2-SHA256 (600k iterations)
  • Synced to your own Cloudflare KV namespace — you control the data
  • Popup for quick switching, side panel for full management
  • Auto-lock vault after configurable idle timeout
  • Conflict detection when sessions are updated from another device
  • Clear cookies and localStorage for the current site in one click
  • Toolbar badge shows the active account

How It Works

┌─────────────┐    snapshot    ┌──────────────┐   encrypt    ┌──────────────────┐
│  Browser Tab │ ──────────▶  │  Background   │ ──────────▶ │  Cloudflare KV   │
│  (cookies +  │              │  Service Worker│              │  (your namespace)│
│  localStorage│ ◀────────── │               │ ◀────────── │                  │
└─────────────┘    inject     └──────────────┘   decrypt    └──────────────────┘
  1. Save — Snapshots cookies and localStorage for the active tab's domain, encrypts them, and writes to KV.
  2. Switch — Pushes the current session back to KV (if healthy), clears the tab, injects the target session, and reloads.
  3. Push — Overwrites the cloud version of the active account with the current live session.

Note

Session Stash operates per-domain — github.com and mail.google.com maintain separate account lists.

Screenshots

Popup — switch accounts in one click
Side panel — all your accounts in one sidebar
Settings — your keys, your Cloudflare KV

Usage

  1. Install the extension and click the Session Stash icon → Settings
  2. Enter your Cloudflare Account ID, Namespace ID, and API Token
  3. Set a master password — this encrypts all session data before it leaves the browser
  4. Navigate to any HTTPS site, click the icon, and Save current to capture your session
  5. Log into a different account on the same site and save it with a different label
  6. Switch between accounts with one click — the tab reloads with the new identity

Tip

Create your Cloudflare KV namespace at Workers & Pages → KV in the Cloudflare dashboard. You'll need an API token with Account.Workers KV Storage read/write permission.

Privacy

  • Your master password never leaves the browser
  • All session data is encrypted locally before being sent to Cloudflare KV
  • No telemetry, no analytics, no third-party services

About

Manage and switch multiple account sessions per site. Encrypted cookie and localStorage sync via Cloudflare KV.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors