Skip to content
hostedsoftware
Submit

2FAuth

Two-factor authentication account management and security code generator

Official website: docs.2fauth.app

Open source🐳 Docker★ 4.2KAGPL-3.1

What is 2FAuth?

2FAuth: Two-factor authentication account management and security code generator. It is a free and open-source self-hosted federated identity/authentication service. It's written mainly in PHP and released under the AGPL-3.1 license. The project has 4.2K stars on GitHub and 310 forks, and its last commit landed 5 days ago. Our maintenance health score is 89/100 (thriving). It can be deployed with Docker.

2FAuth is a comprehensive two-factor authentication (2FA) account management and security code generator tool. It enhances account security by adding an extra layer of protection beyond just passwords. With 2FAuth, users can manage their 2FA accounts, generate security codes, and securely authenticate their identities across various platforms and services. It provides peace of mind to individuals and businesses by significantly reducing the risk of unauthorized access to sensitive information.

How to self-host 2FAuth

  1. 1. Get a server. A $5/month VPS or any always-on machine at home works for most single-user setups.
  2. 2. Install it. 2FAuth ships Docker images — grab the docker-compose.yml from the repository and run docker compose up -d.
  3. 3. Add HTTPS. Put it behind Caddy, Traefik or Nginx Proxy Manager.
  4. 4. Back up. Schedule backups of its data volume and database — self-hosting means you own recovery too.

2FAuth FAQ

What is 2FAuth?

2FAuth: Two-factor authentication account management and security code generator. It is a free and open-source self-hosted federated identity/authentication service. It's written mainly in PHP and released under the AGPL-3.1 license. The project has 4.2K stars on GitHub and 310 forks, and its last commit landed 5 days ago. Our maintenance health score is 89/100 (thriving). It can be deployed with Docker.

Is 2FAuth free?

Yes. 2FAuth is open-source (AGPL-3.1), so you can download, self-host and modify it for free. You only pay for the server you run it on.

How do I self-host 2FAuth?

The quickest route is Docker: 2FAuth ships container images, so a single docker-compose file on any Linux VPS or home server gets you running. Supported platforms/stacks: PHP, Docker. Put it behind a reverse proxy such as Caddy, Traefik or Nginx Proxy Manager for HTTPS, and back up its data volume regularly.

Is 2FAuth still maintained?

2FAuth's last commit was 5 days ago and its latest release (v9.0.2) shipped 5 days ago. Its health score is 89/100, which we rate as “Thriving”.

What are the best alternatives to 2FAuth?

Popular alternatives to 2FAuth include Aegis (★ 13.6K), Authelia (★ 29.7K), Tinyauth (★ 8.5K), Pocket ID (★ 10.4K), Keycloak (★ 38K). Compare them side by side on this page.

  • An open-source Android app for managing two-step authentication codes.

    ★ 13.6KJavaGPL-3.1Thriving
  • Authentication and authorization server providing two-factor authentication and single sign-on via web portal.

    ★ 29.7KGoApache-2.0Thriving
  • The tiniest OpenID Certified™ authorization and authentication server you have ever seen.

    ★ 8.5KGoAGPL-3.0Thriving
  • The most user-friendly OpenID Connect Certified™ and OAuth 2.0 provider that lets users sign in to your applications with passkeys.

    ★ 10.4KGoBSD-2-ClauseThriving
  • Open-source identity and access management for applications and services.

    ★ 38KJavaApache-2.0Thriving
  • Open source Auth0/Keycloak alternative. Passkeys, SSO, MFA, passwordless, biometric login. Self-hosted or cloud. Enterprise-ready for SaaS…

    ★ 2.2KGoApache-2.0Thriving
  • Open-source identity provider with support for various protocols.

    ★ 26.4KPythonProprietaryThriving
  • The user infrastructure platform. You choose the frontend, backend, and database. Hexclave handles everything else.

    ★ 6.9KTypeScriptThriving
  • Single Sign-On for Your Self-Hosted Universe.

    ★ 2.9KTypeScriptAGPL-3.0Thriving