andcli
CLI tool for managing 2FA tokens from encrypted backups of popular authenticator apps
andcli is a command-line interface for managing two-factor authentication (2FA) tokens using encrypted backups exported from popular authenticator applications. The tool supports encrypted vault formats from andOTP, Aegis, 2fas, Stratum/Authenticator Pro, KeePass (kdbx v2), and ProtonPass, processing only TOTP entries while keeping all data in memory without persisting to disk.
The tool provides both an interactive terminal user interface and direct query functionality. Users can search for entries with /, navigate with keyboard shortcuts, view tokens by pressing Enter, and copy tokens to the system clipboard with c. The TUI includes features like toggling username visibility and supports theming through hexadecimal color configuration.
andcli handles cross-platform clipboard integration automatically, detecting available tools like xclip, xsel, or wl-copy on Linux, pbcopy on macOS, and clip.exe on Windows. For non-interactive use, the --query flag enables direct vault queries that return results in the format <Issuer> <Token> <ValidSecs>. The tool also supports reading passwords from stdin with --passwd-stdin, making it suitable for automation workflows.
Installation
# via Go
go install github.com/tjblackheart/andcli/v2/cmd/andcli@latest

Alternatives & related tools
crates-tui
Terminal interface for browsing and exploring Rust crates from crates.io with search and clipboard integration.
termframe
Non-interactive terminal emulator that executes commands and exports their output as SVG screenshots.
awsesh
TUI and CLI tool for managing AWS SSO sessions with fuzzy search, account switching, and shell integration.
b4n
Terminal user interface for Kubernetes API management with resource CRUD, logs, shell access, and port forwarding
textual-astview
TUI tool for exploring Python Abstract Syntax Trees (AST) with interactive tree view and source highlighting
add a badge to your README
Maintain andcli? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/andcli?utm_source=badge)<a href="https://www.trmn.sh/tools/andcli?utm_source=badge"><img src="https://www.trmn.sh/badge/andcli.svg" alt="Featured on trmn" height="20"></a>