Safekeep: Encrypted Tab & Session Manager
English | 한국어 | 日本語 | 中文
Safekeep saves open browser windows and tabs so you can restore them later. It works locally without an account. Optional cross-device sync stores encrypted session data in a private GitHub Gist owned by you. Safekeep has no application server and no Safekeep account.

Features
- Save all open tabs and windows manually
- Restore a complete session or selected tabs
- Preserve window layout, tab order, and pinned state
- Search saved tabs by title or URL
- Delete one or multiple sessions
- Optional auto-save from 1 to 60 minutes
- Local-only mode with no setup
- Optional encrypted sync through your private GitHub Gist
- Chrome, Chromium, and Chromium-based Edge support
The Ctrl+S shortcut works while the extension popup is open. Safekeep does not currently preserve Chrome tab groups or capture tab thumbnails.
Architecture
Popup and settings
|
v
Manifest V3 background service worker
|
+---- Chrome extension local storage
|
+---- GitHub Gist API, when sync is enabled
Safekeep requests tabs, storage, and alarms. Its only host permission is https://api.github.com/*. It does not inject content scripts into visited pages.
Installation
Chrome Web Store
Install Safekeep from the Chrome Web Store.
Manual installation
- Download or clone this repository.
- Open
chrome://extensions/.
- Enable Developer mode.
- Select Load unpacked and choose the repository directory.
Local mode
No configuration is required. Saved sessions stay in chrome.storage.local on the current browser profile. Auto-save is disabled until you enable it in settings.
GitHub Gist sync
GitHub sync requires two values on every device:
- A GitHub Personal Access Token with only the
gist permission.
- The same sync passphrase, at least 12 characters. A password-manager-generated value of 32 characters or more is recommended.
To create a classic token:
- Open GitHub Settings.
- Go to Developer settings, Personal access tokens, then Tokens (classic).
- Generate a token and select only the
gist scope.
- Open Safekeep settings.
- Enter the token and sync passphrase, then save.
On a second device, enter a token for the same GitHub account and the same sync passphrase. Safekeep discovers the existing tab-sessions.json Gist and decrypts it locally.
Keep both values in a password manager. If the passphrase is lost, Safekeep cannot decrypt the synced sessions. If a token is exposed, revoke it in GitHub and create a replacement.
Encryption and data storage
New cloud data uses AES-256-GCM. The encryption key is derived from the sync passphrase with PBKDF2-SHA-256, a random salt, and 310,000 iterations. Encryption and decryption happen inside the extension before data is sent to GitHub.
The GitHub token and sync passphrase are stored in the extension's local Chrome storage so background sync can run. Safekeep does not upload the passphrase or send either value to a Safekeep server. Chrome extension local storage is not a password manager, so protect the operating-system account and browser profile.
The original browser can read older Safekeep Gist formats with its locally retained legacy key. Configure a sync passphrase and save once on that browser before adding a new device. The successful save migrates the Gist to the current PBKDF2 format.
Limits
- Safekeep checks the 100 most recently updated Gists when discovering an existing sync Gist on a new device.
- Two devices saving at exactly the same time can still overwrite the latest remote change.
- Browser-internal URLs such as
chrome:// cannot be restored and are reported as skipped.
- Tab groups, thumbnails, and global customizable shortcuts are not currently supported.
Troubleshooting
The Gist exists but no sessions appear
Confirm that the same sync passphrase is configured on both devices. A wrong passphrase is shown as a decryption error and the Gist is not overwritten.
Auto-save does not run
Enable auto-save in settings and confirm the selected interval. The Manifest V3 background worker uses chrome.alarms.
A token does not connect
Confirm that it is valid and has the gist permission. The extension uses the GitHub API directly and remains in local mode when remote access fails.
Development
No build step is required. Load the repository as an unpacked extension. Run the encryption self-check with:
node tests/crypto-selfcheck.cjs
Report bugs through GitHub Issues.
License
MIT
Changelog
Unreleased, v2.3.0
- Added PBKDF2-based cross-device encryption with an explicit sync passphrase
- Added existing Gist discovery on new devices
- Added clear missing-passphrase and wrong-passphrase states
- Preserved read compatibility with older encrypted Gists
- Corrected documentation to match implemented features and permissions
v2.2.0
- Fixed Gist write serialization and read-failure data protection
- Restored Manifest V3 auto-save through
chrome.alarms
- Escaped page-controlled tab titles and URLs
v2.0.0
- Added bulk session management and encrypted GitHub Gist storage