Try describing what you need:

2FAuth logo

2FAuth

★ 4.2k

A self-hosted alternative to 1password

GNU Affero General Public License v3.0Open Source — No PaywallSingle Container — single container — minimal hosting footprintDocker · Compose · SourceNo external DB3+ active committers (12mo)

About

2FAuth is a self-hosted web application for people who want to manage their two-factor authentication accounts outside of a phone-centric authenticator app. It is aimed at users who prefer to keep...

Community Ratings

No ratings yet
screens

Features

  • 2FA account management
  • group organization
  • QR code scanning and decoding
  • manual account creation
  • account editing
  • TOTP generation
  • HOTP generation
  • Steam Guard codes
  • import from multiple formats
  • security key login

Details

Last Updated
Nov 23, 2026
Created
May 15, 2019
Install Methods
dockerdocker-composesource
Requirements
PHP 8.4Laravel server requirementsa database supported by Laravel
Default Port
8000From the project's Compose file
Authentication
local
Backup & Export
file-backupnative-export
Runtime / Stack
PHPDocker
Privacy & Independence
No Cloud Required
Deployment

Deployment: Docker Compose ✓Single Container — minimal hosting footprintsingle container

Run 2FAuth yourself

Pick how much you want to manage.

2 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host.

Is this your project? Sponsor a listing

Run 2FAuth with Docker Compose

Compose file from the 2FAuth project repository.

1 service

no resource limits declared

needs persistent storage (1 volume)

docker/docker-compose.yml · @ beb0f52 · scanned Nov 3, 2026

version: "3"
services:
  2fauth:
    env_file: settings.env
    image: 2fauth/2fauth:${TAG:-latest}
    container_name: 2fauth
    volumes:
      - ./2fauth:/2fauth
    ports:
      - 8000:8000/tcp

This file may be out of date. Check the 2FAuth documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Mar 25, 2026

Alternatives to 2FAuth

Zero-TOTP logo

Zero-TOTP

26
Zero-TOTP is a TOTP client for securely storing and retrieving authenticator codes across web, iOS, and CLI interfaces.
Miscellaneous ToolsPassword ManagersAuthentication Services+2
Details
Ente logo

Ente

30.4k
Ente is a fully open source, end-to-end encrypted platform for storing photos, authenticator codes, documents, and notes in the cloud or via self-hosting.
Photo GalleriesFile & Object StorageAuthentication Services+4
Open Core
Details

Related Software

Infisical logo

Infisical

30.7k
Infisical is an open-source secret management platform for centralizing application secrets, configs, and internal PKI.
Secret ManagementPermissive LicenseSelf Hosting Solutions+3
FOSS with Issues
Details
Databunker logo

Databunker

1.5k
Databunker is a self-hosted Go tool for secure personal records tokenization and storage, with an API and admin UI for handling sensitive PII/PHI/KYC data.
Database ManagementSecret ManagementConsent Management+2
Single ContainerOpen Core
Details
Chiyogami logo

Chiyogami

81
Chiyogami is a self-hostable pastebin with encryption, configurable expiration, private pastes, user accounts, and an API.
PastebinsPermissive LicenseSelf Hosting Solutions
Single Container
Details
1time logo

1time

105
Zero-knowledge one-time secret sharing. Create a one-time link for a password, API key, or file. Encrypted client-side in the browser, never reaches the server in plaintext, self-destructs after the allowed number of views (one by default).
PastebinsSimple File Uploads
Details
Warpgate logo

Warpgate

8.3k
A transparent bastion host for SSH, HTTPS, Kubernetes, MySQL, and PostgreSQL that records sessions and provides a built-in web admin UI.
Remote AccessProxy ServersAuthentication Services+2
Details
Sup3rS3cretMes5age logo

Sup3rS3cretMes5age

570
A self-destructing secret message service that stores messages in HashiCorp Vault and deletes them after a single read.
PastebinsSecret ManagementSelf Hosting Solutions+1
Details
SimpleLogin logo

SimpleLogin

7.2k
SimpleLogin is an email aliasing service that helps protect online identity by routing mail through aliases.
Email SolutionsPermissive LicenseSelf Hosting Solutions
Details
socks5-proxy-server logo

socks5-proxy-server

143
A Docker-based SOCKS5 proxy server with user management and a Telegram bot for administration.
Proxy ServersPermissive LicenseNetwork Utilities+1
Details