CLI tool for managing 2FA tokens from encrypted backups of andOTP, Aegis, 2fas, and other authenticator apps
andcli is a command-line 2FA token manager that works with encrypted backups exported from popular authenticator applications. It supports backups from andOTP, Aegis, 2fas, Stratum/Authenticator Pro, KeePass databases (v2), and ProtonPass exports in PGP or ZIP format. The tool processes only TOTP entries and keeps all data in memory without storing anything on disk.
The tool provides a terminal-based interface for searching and accessing 2FA tokens. Users can filter entries by typing /, navigate with keyboard shortcuts, and copy tokens directly to the system clipboard. It automatically detects the appropriate clipboard utility for the platform (xclip/xsel/wl-copy on Linux, pbcopy on macOS, clip.exe on Windows) but allows custom clipboard commands via configuration.
andcli stores configuration in platform-specific user directories and supports password input via stdin for scripting scenarios. The tool is designed for developers and system administrators who prefer command-line workflows and need to access 2FA tokens without switching to mobile devices or GUI applications. It requires users to maintain their own encrypted backups from supported authenticator apps.
# via Go
go install github.com/tjblackheart/andcli/v2/cmd/andcli@latest
