Simple OTP Browser Extension
A browser extension for generating and managing OTP (One-Time Password) tokens. Works with Chrome, Firefox, and other Chromium-based browsers.
Features
- Generate time-based OTP tokens (TOTP)
- Manage multiple OTP accounts with issuer, label, and secret
- Modern, responsive UI with i18n support (English and Chinese)
- Copy OTP tokens to clipboard with one click
- Visual countdown timer with warning when token is about to expire
- Import/Export functionality for backup and migration
- Scan QR codes from images to automatically populate token information
- Cross-browser compatibility
Installation
- Clone or download this repository
- Install dependencies:
npm install - Build the extension:
npm run build - Load the extension in your browser:
- Chrome/Chromium:
- Open
chrome://extensions - Enable "Developer mode"
- Click "Load unpacked" and select the
distfolder
- Open
- Firefox:
- Open
about:debugging - Click "This Firefox"
- Click "Load Temporary Add-on" and select the
manifest.jsonfile in thedistfolder
- Open
- Chrome/Chromium:
Snapshots
Development
- Run
npm run devto watch for changes and automatically rebuild - Modify files in the root directory (not in
dist) - The
distfolder is automatically generated and should not be modified directly
GitHub Actions
This repository includes GitHub Actions for automated workflows:
Release Workflow
- Automatically creates a release when a new tag (v*) is pushed
- Builds the extension and packages it as a ZIP file
- Creates a GitHub release with the packaged extension
Version Bump Workflow
- Manually triggered workflow to bump the version
- Updates both
package.jsonandmanifest.json - Creates a pull request with the version changes
Usage
- Click the extension icon to open the popup
- Click "Add Token" to configure your OTP accounts
- Enter the issuer (e.g., Google), label (e.g., your email), and secret key
- Save the token
- The popup will now show your OTP tokens with a visual countdown
Add Tokens with QR Code
You can add tokens by scanning QR codes from images:
- Open the extension options page
- Click "Add New Token"
- Click "Choose Image" and select a QR code image
- The token information will be automatically extracted and filled in
- Review and save the token
Language Selection
The extension supports multiple languages:
- Open the extension options page
- Use the language selector in the top right corner
- Choose from:
- Auto (detects your browser language)
- English (en-US)
- Chinese (zh-CN)
Import/Export Tokens
- Open the extension options page
- Click "Export Tokens" to save your tokens to a JSON file
- Click "Import Tokens" to load tokens from a JSON file
- Tokens with the same issuer and label will be replaced
- New tokens will be added to your existing collection
Security
- All data is stored locally in your browser
- Secrets are never transmitted over the network
- The extension has no external dependencies
License
MIT
On this page
Languages
JavaScript66.4%CSS21.9%HTML11.7%
Contributors
Latest Release
v1.0.0September 2, 2025Created September 1, 2025
Updated January 5, 2026


