2FAuth

Self-Hosted

Open-source self-hosted two-factor authentication manager

Visit Website

Overview

2FAuth is an open-source self-hosted tool for managing two-factor authentication (2FA) tokens securely. It supports TOTP and HOTP standards, allowing users to store credentials from various services. Features include bulk import/export (from Google Authenticator, Authy), dark mode, and a responsive UI. Deploy easily via Docker, Docker Compose, or traditional LAMP/LEMP stacks. It keeps your 2FA data local, ensuring privacy and control without relying on cloud providers. Ideal for individuals or teams wanting to self-host their 2FA solution instead of using proprietary apps.

Self-Hosting Resources

Below is a reference structure for docker-compose.yml. ⚠️ Do NOT run blindly. Replace placeholders with official values.

docker-compose.template.yml TEMPLATE

version: '3'
services:
  2fauth:
    image: <OFFICIAL_IMAGE_NAME>:latest
    container_name: 2fauth
    ports:
      - "8080:<APP_INTERNAL_PORT>"
    volumes:
      - ./data:/app/data
    restart: unless-stopped

Key Features

  • Secure TOTP/HOTP token management
  • Import/export from popular 2FA apps
  • Docker & traditional deployment options

Frequently Asked Questions

? Is 2FAuth hard to install?

No—2FAuth can be deployed quickly using Docker Compose (with a single YAML file) or traditional LAMP/LEMP stacks. Detailed setup guides are available in the GitHub repository.

? Is it a good alternative to Google Authenticator?

Yes—2FAuth offers similar TOTP functionality but with self-hosted control, import/export support, and no reliance on Google's servers. It's ideal for users who want to avoid third-party cloud storage of their 2FA tokens.

? Is it completely free?

Yes—2FAuth is open-source software released under the MIT License, so it's free to use, modify, and self-host without any hidden costs.

Top Alternatives

Google Authenticator Search Google
Microsoft Authenticator Search Google

People Also Ask about 2FAuth

2FAuth vs Google Authenticator2FAuth vs Authy2FAuth vs Microsoft Authenticator 2FAuth 2025 review 2FAuth docker-compose example

Tool Info

Pricing Open Source
Category Miscellaneous
Platform Self-Hosted

Pros

  • Privacy-focused (data stays local)
  • No recurring costs (open source)

Cons

  • Requires basic server setup
  • Web-only interface (no mobile app)

More Miscellaneous Tools