Skip to content

Repository files navigation

totp

A terminal authenticator. It shows the current TOTP code for each of your accounts and a bar counting down to the next rotation, refreshed every second.

totp showing three accounts with codes and countdown bars

Related projects

  • lpchart — Chart InfluxDB line protocol in your terminal. Browse measurements, fields and tag sets interactively without knowing what is in the file first.
  • nimo — nano-inspired terminal text editor written in pure Nim.
  • life — Animated Conway's Game of Life in your terminal (Go, Bubble Tea)
  • crypto-charts — Terminal crypto price charts: top coins and price history from the free CoinGecko API (Go, Bubble Tea)
  • classical-ciphers — Encode and decode classical ciphers in your terminal, live as you type (Atbash, Caesar, Vigenère, Rail Fence)
  • calc — Live terminal calculator: evaluates arithmetic as you type, no Enter key (Go, Bubble Tea)
  • algebra-visual — Live terminal function grapher: plot y = f(x) as you type (Go, Bubble Tea, ntcharts)

Run

go run .

Or build a binary with go build -o totp . and run ./totp.

With no config the app shows demo accounts so you can see how it looks. Point it at your own accounts as described below.

Accounts

The app reads accounts from the first file it finds. It checks the path in $TOTP_FILE, then accounts.txt in the working directory. If neither exists it looks under your user config directory.

Each line is either an otpauth:// URI or a pipe-separated shorthand, and lines that start with # are ignored.

otpauth://totp/Example:alice@example.com?secret=JBSWY3DPEHPK3PXP&issuer=Example
Example Corp|bob|GEZDGNBVGY3TQOJQGEZA
JBSWY3DPEHPK3PXP

Security

Your secrets are the keys to your accounts. Keep the accounts file readable only by you, and do not commit it anywhere. This repository ignores accounts.txt so it cannot be added by accident, and generated codes never leave your machine.

Keys

Move the selection with the up and down arrows. Press q to quit.

Disclaimer

This software comes with no warranty, as stated in the license, and it has not been independently audited. You are responsible for keeping your secrets safe and for keeping backup recovery codes in case you lose access to this tool.

License and contributing

Licensed under the MIT License (see LICENSE). Contributions are welcome; see CONTRIBUTING.md.

Citation

If you use this project, please cite it. A machine-readable CITATION.cff is included; expand below for a BibTeX entry.

BibTeX
@software{Vulpes_totp_2026,
  author  = {Vulpes, Aesthetic},
  title   = {totp},
  year    = {2026},
  month   = jul,
  version = {0.1.0},
  url     = {https://github.com/tui-apps/totp}
}

Related

Part of the tui-apps collection

Six small, single-purpose terminal apps.

App What it does
calc live calculator
algebra-visual function grapher
classical-ciphers cipher encoder and decoder
crypto-charts crypto price charts
totp TOTP authenticator (this repo)
life Conway's Game of Life

About

Terminal TOTP authenticator: live 2FA codes with countdown (RFC 6238, Go, Bubble Tea)

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages