Skip to content

championswimmer/TwoFac

Repository files navigation

TwoFac logo

TwoFac


Open Source, Native, Cross-Platform 2FA App for Watch, Mobile, Desktop, Web and CLI!

Kotlin Compose Multiplatform

Android iOS watchOS Wear OS macOS Windows Ubuntu Web Chrome Extension Firefox Extension CLI macOS CLI Windows CLI Linux

two-fac-demo

What is TwoFac?

TwoFac is a free, open-source, cross-platform 2FA app for generating one-time codes on the devices you already use. It is built with Kotlin Multiplatform and ships native experiences for mobile, desktop, wearables, web, browser extensions, and the command line.

It is designed to be practical and privacy-friendly: local code generation, biometric protection on supported platforms, encrypted backups, and no ads or tracking.

Features

  • Native apps for Android, iOS, macOS, Windows, Linux, Wear OS, watchOS, web, browser extensions, and CLI
  • End-to-end encryption and zero-knowledge handling for secrets and backups
  • Biometric unlock on Android and iOS
  • Import support for Authy, 2FAS, Ente Auth, and Google Authenticator exports
  • Companion watch apps with offline access and browser/CLI workflows for fast access

Download

Start here: twofac.app/download

Get it on Google Play

For macOS and Linux, the CLI can also be installed with:

curl -fsSL https://twofac.app/install.sh | bash -s --

Learn more

Development

Clone the repo, install the toolchains for the targets you want to work on, and run Gradle tasks from the repository root.

For the current module map, build guidance, and platform routing, read AGENTS.md. It is written to make AI-driven development work smoothly, and it is also the most up-to-date reference for how this codebase is organized.