Fast, no-nonsense 2FA for your terminal, written in Go.
gauth: Show codes (with color-coded countdowns)gauth -w: Watch mode (auto-refresh)gauth -a: Add new accountgauth -d: Delete accountgauth -l: List all accountsgauth -p: Manage master password (AES-256 encryption)gauth -i/-e: andOTP backup support- Saves to
$HOME/.gauth/gauth.json(atomic writes)
go install github.com/leeineian/gauth@mainOr build from source:
git clone https://github.com/leeineian/gauth.git
cd gauth && go build -o gauth .# Build the image
docker build -t gauth .
# Run gauth (mounting your secrets)
docker run -it -v ~/.gauth:/root/.gauth gauthViewing codes
./gauth
# built-in live mode (updates every second):
./gauth -wManaging Accounts
# list all accounts
./gauth -lAdding/Deleting accounts
# Add
./gauth -a
# Delete
./gauth -dImporting/Exporting
./gauth -i
./gauth -eSecurity
# set or change master password
# (leave empty to remove password)
./gauth -pOnce a password is set, your gauth.json is encrypted using AES-256-GCM.
- Go 1.25.5 or higher
AGPL-3.0