Project

sido-askpass


About

sido-askpass is a SUDO_ASKPASS shim for environments without a usable TTY such as tmux, Herdr, and coding agents.

When sudo uses askpass, sido-askpass opens a hidden password prompt and returns the password to sudo. Passwords never touch a regular file.

How it works

The first matching context is used:

| Context | Prompt method | | --- | --- | | $TMUX set | tmux popup with Bash read -s; FIFO return | | $HERDR_ENV=1 | Temporary Herdr pane with read -s; FIFO return | | macOS | Hidden osascript dialog | | Linux + $DISPLAY / Wayland | zenity, then kdialog | | Other | Hidden read -s prompt on /dev/tty |

tech: Node.js · TypeScript