Skip to content

Best Open Source Two-factor authenticators Software (2026)

40 open source tools in this category · top 30 ranked · Data checked November 24, 2026 · By , founder & editor

A two-factor authenticator generates one-time codes that you enter after your password. Most use TOTP, and some also support HOTP. When choosing, look at encrypted backup and restore, since a lost phone can lock you out. Also check multi-device sync, app lock with a PIN or biometrics, import and export of accounts, and whether you need a desktop app or FIDO2 and passkey support.

Google Authenticator, Authy, Microsoft Authenticator and Yubikey are the proprietary names. Open source options cover similar ground. Aegis Authenticator and Stratum offer encrypted vaults on Android. 2FAS runs on Android and iOS. OTPClient is a desktop app for Linux. 2FAuth is a self-hosted web app. Yubico Authenticator manages YubiKey codes and passkeys.

Ranked Two-factor authenticators tools

  1. 1
  2. 2

    Yubico Authenticator

    Two-factor authenticators

    Desktop and Android app for managing YubiKey codes, passkeys and PIV certificates

    1.4k 188 today Active Apache-2.0

  3. 3
  4. 4

    2FAuth

    Two-factor authenticators

    Self-hosted web app that stores your 2FA accounts and generates TOTP and HOTP codes

    4.2k 309 yesterday Thriving AGPL-3.0

    Replaces Yubikey

  5. 5

    FreeOTP

    Two-factor authenticators

    Android one-time password app under Apache-2.0 for people who want no Google account

    1.7k 350 20 days ago Slowing Apache-2.0

    Replaces Yubikey

  6. 6

    2FAS

    Two-factor authenticators

    Open source authenticator app for Android and iOS with backup and sync

    1.6k 135 23 days ago Active GPL-3.0

  7. 7

    Copy SMS Code - OTP Helper

    Two-factor authenticators

    Android app that detects one-time codes in SMS and notifications and copies them for you

    949 88 23 days ago Slowing AGPL-3.0

  8. 8

    FreeOTP+

    Two-factor authenticators

    Android two-factor authenticator with encrypted tokens and backups, forked from FreeOTP

    755 90 today Active Apache-2.0

    Replaces Google Authenticator

  9. 9

    OTPClient

    Two-factor authenticators

    GTK4 desktop app for TOTP and HOTP codes in encrypted local databases on Linux

    560 53 4 days ago Thriving GPL-3.0

  10. 10

    Mauth

    Two-factor authenticators

    Android authenticator app for TOTP and HOTP codes with a Material You interface

    474 24 40 days ago Slowing GPL-3.0

  11. 11

    2fa

    Two-factor authenticators

    Self-hosted authenticator on Cloudflare Workers with browser extension and cloud backups

    465 219 8 days ago Thriving MIT

  12. 12

    Proton Authenticator

    Two-factor authenticators

    Open source Android 2FA code app with encrypted sync, for Proton users replacing Google

    358 33 4 months ago Dormant GPL-3.0

  13. 13

    Authnkey

    Two-factor authenticators

    Android credential provider for using NFC and USB security keys as passkey holders

    301 23 3 months ago Dormant MIT

  14. 14

    CloudOTP

    Two-factor authenticators

    Cross-platform authenticator app with cloud backup for Android, Windows and Linux

    276 26 2 months ago Slowing GPL-3.0

  15. 15

    AuthInbox

    Two-factor authenticators

    Self-hosted Cloudflare service that extracts verification codes from email for teams and

    185 77 17 days ago Slowing MIT

  16. 16

    Authenticator

    Two-factor authenticators

    103 64 6 days ago Active GPL-3.0-or-later

  17. 17

    Nitrokey App

    Two-factor authenticators

    Desktop app for managing passkeys and OTP on Nitrokey 3 and Passkey devices

    127 24 22 days ago Active Apache-2.0

    Replaces Yubikey

  18. 18

    ykDroid

    Two-factor authenticators

    113 17 3 years ago Dormant GPL-3.0

  19. 19
  20. 20

    Auth Token

    Two-factor authenticators

    78 31 6 years ago Dormant GPL-3.0-only

  21. 21

    Flauth

    Two-factor authenticators

    65 9 5 months ago Slowing MIT

  22. 22

    gembok

    Two-factor authenticators

    55 5 4 years ago Dormant MIT

  23. 23

    Pocket2FA

    Two-factor authenticators

    52 5 6 days ago Active AGPL-3.0

  24. 24

    Clockode

    Two-factor authenticators

    44 6 12 days ago Thriving GPL-3.0

  25. 25
  26. 26

    Zero-TOTP

    Two-factor authenticators

    26 1 13 days ago Thriving GPL-3.0

  27. 27
  28. 28

    mOTP

    Two-factor authenticators

    19 7 8 months ago Dormant Apache-2.0

  29. 29

    Osmium

    Two-factor authenticators

    17 2 4 days ago Active GPL-3.0

  30. 30

    YubiClip XOR

    Two-factor authenticators

    14 1 3 years ago Dormant BSD-2-Clause

Self-hosted two-factor authenticators software

5 of these run on your own server: 2FAuth, 2fa, AuthInbox, gembok, Zero-TOTP.

Replace proprietary two-factor authenticators software

What to look for in two-factor authenticators software

The features we check for every tool in this category; they drive the parity scores on alternatives pages.

TOTP code generation
Generates time-based one-time passwords (RFC 6238) for third-party services.
HOTP code generation
Generates counter-based one-time passwords (RFC 4226).
Encrypted backup and restore
Lets users back up accounts in encrypted form and restore them on a new device.
Multi-device sync
Syncs accounts across several devices through a vendor account or sync service.
QR code setup
Adds accounts by scanning a QR code or entering a secret key.
App lock with biometrics or PIN
Protects the app with a PIN, password or biometric unlock.
FIDO2/WebAuthn security keys
Supports hardware-bound FIDO2/WebAuthn or passkey authentication.
Push notification approval
Approves sign-ins by tapping a push notification instead of typing a code.
Import and export accounts
Imports from or exports to other authenticator apps or standard formats.
Passkey support
Can store or manage passkeys for passwordless sign-in.
Search, icons and categories
Offers account icons, search, groups or folders to organize many accounts.
Desktop app
Provides a native app for Windows, macOS or Linux to view codes.
Hardware token OTP
Generates or stores OTP secrets on a dedicated physical device.
Code autofill
Automatically fills one-time codes into apps or sign-in pages.

Frequently asked questions

What is the best open source alternative to Google Authenticator?

Aegis Authenticator is an Android app with an encrypted vault, local backups and imports from other apps. 2FAS is a good fit if you also use iOS.

Can I self-host a 2FA app?

Yes. 2FAuth is a self-hosted web app that stores your accounts and generates TOTP and HOTP codes. 2fa runs on Cloudflare Workers.

Is there an open source authenticator for Linux desktops?

OTPClient is a GTK4 app for TOTP and HOTP codes stored in encrypted local databases on Linux.

What can replace Authy?

2FAS offers backup and sync on Android and iOS. Stratum and FreeOTP+ provide encrypted backups on Android.

Rankings use fit, health, license and popularity; sponsors never change the order. Methodology · Report an error.