You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felipe Martin fc3b7d02cd chore: update README with v1 note 7 months ago
.readme initial commit 4 years ago
.gitignore initial commit 4 years ago
.pre-commit-config.yaml Using python3 directly on pre-commit 2 years ago
LICENSE initial commit 4 years ago
Makefile initial commit 4 years ago chore: update README with v1 note 7 months ago
poetry.lock Updated dependencies 2 years ago
pyproject.toml Updated dependencies 2 years ago Move to 1Password CLI 2, and support biometric authentication (#9) 7 months ago
setup.cfg initial commit 4 years ago


Qutebrowser userscript to fill 1password credentials

Oh, stop it! you...


  • The 1Password CLI Ensure you have it installed and set up. Follow the official documentation.

    Note: Only the 1Password CLI v2 is supported from now own. If you're using v1 please use the v1.0.0 release.

  • rofi to ask for password and list items

How it works

First we will ask for the master password using Rofi to get all login items.

Then it'll get the hostname from the current URL and filter results from all the login items stored in the 1password account logged in.

A new Rofi prompt will show up to select one item from the filtered list (items that only match for the current site based on the hostname)

Once an item is selected, we will retrieve it and submit it in the browser by injecting they characters as if the keyboard were writting them, using a <tab> to switch fields and a <cr> to submit the form. This is done using the fake-key qutebrowser command.


Right now it defaults to the my account, will be configurable in the future.


  • fill_credentials: Will send the username and password (using a <tab> keystroke in between)
  • fill_username: Will send the username
  • fill_password: Will send the password
  • fill_totp: Will send the TOTP


  • --auto-submit Will send a carriage return once the last character is sent, hopefully submitting the form.
  • --cache-session Caches the session for 30 minutes to prevent asking for the password again in that interval.
  • --allow-insecure-sites Allow filling in insecure (non-https) sites
  • --biometric Use biometric or PAM authentication instead of asking for the master password

Using the biometric flag requires installing the 1Password Desktop app and enabling "Biometric unlock" in it's Developer options.

$ python --help
usage: [-h] [--auto-submit] [--cache-session] [--allow-insecure-sites] [--cache] [--biometric] command

positional arguments:
  command               fill_credentials, fill_totp, fill_username, fill_password

  -h, --help            show this help message and exit
  --auto-submit         Auto submit after filling
  --cache-session       Cache 1password session for 30 minutes
                        Allow filling credentials on insecure sites
  --cache               store and use cached information
  --biometric           Use biometric unlock - don't ask for password

Call your script from qutebrowser using

:spawn --userscript path/to/ fill_credentials


In this project we use Poetry to manage the python dependencies and virtual environments. Make sure you have it installed before continuing.

Use this command to create the virtualenv, install dev-dependencies and install the pre-commit hook.

make setup

After you make your desired changes, open a merge request or send me a patch via email and I will review it as soon as I can.