#askpass #password #x11 #xcb

app xaskpass

A lightweight passphrase dialog

16 stable releases

2.5.7 Jun 4, 2023
2.5.4 May 29, 2023
2.5.2 Dec 16, 2022
2.5.1 Jan 28, 2022
1.8.3 Jan 9, 2021

#89 in Unix APIs

Download history 63/week @ 2023-05-26 71/week @ 2023-06-02 9/week @ 2023-06-09 24/week @ 2023-06-16 4/week @ 2023-06-23 43/week @ 2023-06-30 2/week @ 2023-07-07 5/week @ 2023-07-14 7/week @ 2023-07-21 33/week @ 2023-07-28 10/week @ 2023-08-04 16/week @ 2023-08-18 17/week @ 2023-08-25 25/week @ 2023-09-08

58 downloads per month




AUR version Crate Minimum rustc version

Xaskpass is a lightweight passphrase dialog for X11 with extensive configuration options that is implemented without relying on heavy GUI libraries. It aims to be a successor to the similar but now old x11-ssh-askpass by preserving its fast startup time while modernizing some features such as fonts. It also tries to make sure the password stays in the memory for the shortest time.

Classic indicator Asterisk Strings/Disco

Installation and building

In Arch Linux the easiest way to install is to use the aur package.

If the C libraries are already installed, cargo install can be used to install in ~/.cargo/bin/xaskpass:

cargo install xaskpass

To build from the repository, use:

cargo build --release --locked

Make sure rustc is 1.66+ (reason) and you have the following C libraries installed:

  • libxcb >= 1.12
  • libxkbcommon
  • libxkbcommon-x11
  • clang >= 5.0
  • cairo >= 1.14
  • pango >= 1.40

For example in Arch Linux you can run:

pacman -S libxkbcommon libxkbcommon-x11 libxcb pango cairo clang


To make ssh or sudo use xaskpass set SSH_ASKPASS=/path/to/xaskpass or SUDO_ASKPASS (and use sudo -A) respectively.


Xaskpass firsts tries to read configuration from $XDG_CONFIG_HOME/xaskpass/xaskpass.toml. If not found, $XDG_CONFIG_DIRS/xaskpass/xaskpass.toml is tried. A default configuration file with comments can be found here.

To make the startup time faster, for example, the font file used can be specified with

font_file = '/path/to/fonts/TTF/DejaVuSansMono.ttf'

More help

See xaskpass --help and the comments in the default configuration file.


You can create directory pregen to speed up build.rs by letting it save the generated bindings there.


Xaskpass is released under the Apache License, Version 2.0.


~1M SLoC