Dmenu/Rofi frontend for managing Bitwarden vault using the Bitwarden CLI tool.
  • Python 97.4%
  • Roff 1.5%
  • Nix 0.9%
  • Makefile 0.2%
Find a file
2026-07-07 16:41:12 -07:00
.github/workflows Fix failing github action 2026-02-05 19:04:44 -08:00
bwm Fix KeyError in bwcli 2026-07-07 16:41:12 -07:00
docs Revert to using a 30-second timeout before the clipboard is cleared. This fixes some issues and inconsistencies with copying data on various platforms. 2026-06-05 16:51:29 -07:00
tests Fix email 2FA login flow 2026-02-13 16:16:55 -08:00
.gitignore Update Nix flake setup and workflow 2024-10-14 20:14:41 -07:00
bwm.1 Add --config option for custom config path. Closes #38 2026-02-13 17:05:13 -08:00
bwm.1.md Add --config option for custom config path. Closes #38 2026-02-13 17:05:13 -08:00
config.ini.example Add wtype support 2022-04-02 17:04:20 -07:00
flake.lock Update flake.lock 2025-12-01 21:16:25 -08:00
flake.nix Add a --version flag and fix flake.nix to update _version when entering the devshell 2026-02-11 17:58:57 -08:00
LICENSE Update Nix flake setup and workflow 2024-10-14 20:14:41 -07:00
Makefile Add pytest test suite and GitHub Actions CI. Closes #10 2026-02-05 18:49:16 -08:00
pyproject.toml Minimum python version supported 3.10 2026-02-05 18:49:38 -08:00
README.md Add --config option for custom config path. Closes #38 2026-02-13 17:05:13 -08:00
requirements.txt Convert from xdg to xdg-base-dirs 2023-11-12 10:45:09 -08:00

Bitwarden-menu

PyPI - Python Version PyPI GitHub contributors

Dmenu/Rofi frontend for managing Bitwarden vaults. Uses the Bitwarden CLI tool to interact with the Bitwarden database.

This project is not associated with the Bitwarden project nor 8bit Solutions LLC.

Installation

pip install --user bitwarden-menu

Ensure ~/.local/bin is in your $PATH. Run bwm and enter your database path, keyfile path, and password.

NOTE: Initial login to some servers, including vault.bitwarden.com, will require the client_secret from your account settings page. Ensure this is in your clipboard and ready to paste prior to first run. Once logged in for the first time, you will not need this value again.

For full installation documention see the [installation docs][docs/install.md].

Full Documentation

Installation - Configuration - Usage

Requirements

  1. Python 3.10+
  2. Bitwarden CLI. Ensure the bw command is in $PATH
  3. Pynput and Xdg
  4. Dmenu, Rofi, Wofi or Bemenu
  5. xsel or wl-copy
  6. (optional) Pinentry.
  7. (optional) xdotool, ydotool(>= 1.0.0)/wtype (for Wayland).

Features

  • Supports multiple bitwarden.com and self-hosted Vaultwarden accounts. Accounts can be switched on the fly.
  • Auto-type username and/or password on selection. Select to clipboard if desired (clipboard clears after 30 sec on X11 or after 1 paste on Wayland).
  • Supports login with 2FA code from Authenticator(TOTP), Email, or Yubikey.
  • Background process allows selectable time-out for locking the database.
  • Use a custom Keepass 2.x style auto-type sequence.
  • Type, view or edit any field.
  • Open the URL in the default web browser.
  • Non U.S. English keyboard languages and layouts supported via xdotool or ydotool/wtype (for Wayland).
  • Edit notes using terminal or gui editor.
  • Add and Delete entries
  • Rename, move, delete and add folders and collections
  • Move any item to or from an organization, including support for multiple collections.
  • Hide selected folders from the default and 'View/Type Individual entries' views.
  • Configure the characters and groups of characters used during password generation.
  • Optional Pinentry support for secure passphrase entry.
  • Add, edit and type TOTP codes.

License

  • MIT

Usage

bwm [-h] [-v VAULT] [-l LOGIN] [-k] [-a AUTOTYPE] [-C] [-c CONFIGPATH]

  • Run bwm or bind to keystroke combination.
  • Enter account URL on first run.
  • Start typing to match entries.
  • Configure ~/.config/bwm/config.ini as desired.
  • More detailed usage information.
  • Screencast (Using Bemenu on Sway):

Screencast

Tests

Run tests using pytest:

# Using make (creates venv automatically)
make test

# With coverage report
make test-cov

# Or install and run directly
pip install .[test]
pytest

Development

  • To install bitwarden-menu in a venv: make

  • Build man page from Markdown source: make man

  • Using hatch:

    • hatch shell: provies venv with editable installation.
    • hatch build && hatch publish: build and publish to Pypi.
  • Using nix:

    • nix develop: Provides development shell with all dependencies.
    • make test and hatch build/publish work as usual.
  • GitHub Action will upload to TestPyPi on each push to main. To create a GitHub and PyPi release, create a new tag (formatting below) and push tags.

      <tag name on first line>
    
      * Release note 1
      * Release note 2
      * ...
    

Planned features

  • Notifications for syncing status (e.g. when a sync is complete)