Ross ROSS = Recommend OSS · open-source software intelligence for agents

rsc/2fa

Two-factor authentication on the command line observed · 2026-08-28

github.com/rsc/2fa · Go · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3207
  • days_rel: n/a
  • days_push: 746
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1963 stars · 175 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A command-line two-factor authentication agent written in Go that stores TOTP and HOTP keys and generates one-time authentication codes. Keys are managed in a simple local keychain file at $HOME/.2fa.

Use cases

  • generate 2FA codes from the terminal
  • add GitHub two-factor secret to a CLI keychain
  • print all current TOTP codes at once
  • copy a one-time code to the clipboard
  • manage HOTP counter-based tokens on the command line

When to choose

  • you want 2FA codes without leaving the terminal
  • you prefer a minimal single-binary Go tool
  • you need both TOTP and HOTP support with configurable code lengths

When to avoid

  • you need encrypted key storage (the keychain file is unencrypted)
  • you prefer a GUI authenticator app
  • you need QR-code scanning or cloud backup of secrets

Facets

cli-tool · maturity stable

auth cli security security developer-tools cli go totp hotp two-factor-authentication otp keychain command-line macos linux

1 source

Member repositories

RepositoryRoleHealth v2
rsc/2famain32

For agents

markdown · JSON · MCP: product_card(name="rsc/2fa")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem