this post was submitted on 10 Mar 2026
28 points (88.9% liked)

Selfhosted

58486 readers
526 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hey!

I basically want to replace the Google Authenticator app in style and functionality:

  1. List all TOTP tokens and their validity time (with a name and order I decide).
  2. Allow me to periodically or on change back up the whole thing to some off-site storage, keeping the last N backups.
  3. Have a native app for Android or an actually good PWA.
  4. Don’t do magic bullshit like fetching icons, hide tokens, etc.
  5. Be actually secure (i.e. don’t roll your own auth)
  6. Just be a TOTP manager, and nothing more! No, I’m not interested in a password manager, thank you. I also don’t want any other OTP methods I don’t use.
  7. Don’t be a one-man projects where the availability is not clear in >1 year.

Any experience is welcomed. Thank you!

Edit: Thanks for all the great ideas, I just set up 2FAuth which seems to be the most minimalist and single-feature thing to self-host. I’ll evaluate how it performs but keep a backup in Google Authenticator. It does not match #7 but it seems to be actively used by the author and gets constant updates and fixes, so it’s most likely fine, I guess.

There is a 3rd-party app for it, but this app seems to be pretty much dead (last release in July 2025 and not in any app store) – or at least not released anymore but still worked on but only in the repository.

all 36 comments
sorted by: hot top controversial new old
[–] eager_eagle@lemmy.world 42 points 1 month ago (3 children)

Aegis + syncthing for remote backups

[–] Redjard@reddthat.com 9 points 1 month ago

This. Aegis does all of the points except offsite backups. And for good reason.
The Aegis app has no network permissions at all, which is obviously a massive boost for security and privacy. And besides, off-device backuping is a nightmare.

Syncing the Aegis backups made on change to some other server is better handled by a great dedicated app. Syncthing is the best such program (by far), though for the few files involved here nextcloud would work just as well.

[–] bismuthbob@sopuli.xyz 5 points 1 month ago* (last edited 1 month ago)

I second Aegis. You can drag icons and rename tokens. You can also sort by a to z, last used, usage count, etc. Aegis supports automatic backups and can export plaintext or encrypted backup files, after which you can transfer them to other devices however you transfer other files from your phone.

The backup files work with Aegis and with several independent desktop apps depending on your OS of choice. While I haven't looked into it, that suggests that the encryption method isn't something homebrew.

As far as #6 goes Aegis doesn't try to save my passwords, encourage me to use passkeys, or suggest AI solutions. Magic bullshit is a vague qualifier, but I think Aegis is thaumaturgically inert. The 'icons' are just the first letter of the name of the token issuer by default.

The more-than-one-year lifetime is a problem with anything, including plenty of Google projects. There are over 60 contributors on github, so that's something.

[–] LastYearsIrritant@sopuli.xyz 0 points 1 month ago (1 children)

Print out all the QR codes on a sheet of paper and keep them secure in a fire safe. That's really the best way to keep them backed up and secure.

[–] eager_eagle@lemmy.world 3 points 1 month ago (1 children)

until you need to update them, or when you need recovery when travelling

[–] LastYearsIrritant@sopuli.xyz 1 points 1 month ago

If you need to update them, you just reprint and replace.

If you need to recover on the road, well that depends on your risk tolerance. I'm never away from home so long that it's a problem, and pretty much every service has a way to bypass 2FA in case of emergency.

[–] airikr@lemmy.ml 29 points 1 month ago (1 children)

If you want to have them locally stored with export and import capability: Aegis.

If you want them in the cloud: Bitwarden. Just make sure to backup the 2FA tokens every now and then.

[–] Dirk@lemmy.ml 1 points 1 month ago (3 children)

Aegis seems to be just an app. The thing is, that I see an app as second option for accessing the data. I’d like to have a selfhosted service that is accessible independent from a device and – for convenience – has an app, too.

[–] airikr@lemmy.ml 4 points 1 month ago* (last edited 1 month ago) (1 children)

Ah, ok. Sounds like it's 2FAuth you're after. There's an app for it, too: auff. Or Bitwarden (Vaultwarden if you want everything that Bitwarden have with no paywalls.

[–] Dirk@lemmy.ml 2 points 1 month ago* (last edited 1 month ago) (1 children)

Thank you! 2FAuth looks very promising. Especially with the Android app! I need to check out the repo and history when I'm back home, though. It seems to be a one-man show.

[–] airikr@lemmy.ml 1 points 1 month ago

Yes, I agree and I have been thinking about install it and use it, too. But I do have Vaultwarden installed already :)

[–] baner@lemmy.zip 2 points 1 month ago

Vaultwarden

[–] amju_wolf@pawb.social 1 points 1 month ago

Then use KeePass(XC) and don't put your passwords in that database. Has/does everything you want if you can survive that it can also do more.

Has support for Steam OTP codes too.

[–] vegetaaaaaaa@lemmy.world 11 points 1 month ago* (last edited 1 month ago) (1 children)

No, I’m not interested in a password manager, thank you

Ok. But since you already use a password manager (right?), why not use its built-in TOTP management. Why do you need yet-another-separate app?

If I really had to, I'd recommend Aegis.

But I'll still recommend using a password manager (I use KeepassXC on desktop and KeepassDX on Android).

[–] Coleslaw4145@lemmy.world 14 points 1 month ago (3 children)

Why do you need yet-another-separate app?

To keep your two factor codes and passwords separate in the event that your password manager is breached.

Also if you need a 2FA code to log into your password manager, how are you going to get it if its in the password manager that you can't log into without the 2FA code inside it?

[–] fizzle@quokk.au 7 points 1 month ago (1 children)

This question comes up all the time with KeepassXC... like its not a 2nd factor if the TOTP is in the same app as the password.

Factor 1 is knowing the master password, and

Factor 2 is having the password file.

Im not trying to suggest the KeepassXC is the best for all uses, but its sufficient for me in this context.

[–] QuizzaciousOtter@lemmy.dbzer0.com 2 points 1 month ago (1 children)

You can have a separate KeePass DB just for your TOTPs.

[–] fizzle@quokk.au 1 points 1 month ago

Seems s bit extra but ok.

[–] vegetaaaaaaa@lemmy.world 6 points 1 month ago

Fair enough.

I decided against web/network-based password managers for my personal needs since the additional attack surface is a concern. A Keepass database file synced across machines strikes a good balance for me (requires password + keyfile to open). It's also simple to backup and protect.

So yeah, for you use case, I'd recommend Aegis Authenticator.

[–] mhzawadi@lemmy.horwood.cloud 2 points 1 month ago

Also if someone gets into your password manager then they have all the keys to everything

[–] dieTasse@feddit.org 10 points 1 month ago (1 children)

You might want to check Ente Auth. Not sure how many checkboxes it ticks for you but I know people are quite happy with it.

[–] reboot6675@sopuli.xyz 2 points 1 month ago

Came here to say this

[–] lka1988@lemmy.dbzer0.com 9 points 1 month ago* (last edited 1 month ago)

Aegis Authenticator hits every one of your points. I know because I have the same requirements for a TOTP application.

I also use KeePass for all of my passwords. KeePass can do TOTP, but I prefer that to remain separate.

[–] richardwonka@slrpnk.net 6 points 1 month ago

I’m happy with vaultwarden doing this for me.

[–] solrize@lemmy.ml 4 points 1 month ago* (last edited 1 month ago) (1 children)

I'm using FreeOTP from F-droid and imho it suffices if you're going to use a phone app at all. The ability to back up OTP keys in principle defeats the concept of 2FA but it's hard to live without, once you have enough keys. The thing about retain last N backups is hard to enforce without special arrangements in your backup scheme.

[–] Cyber@feddit.uk 1 points 1 month ago (1 children)

+1 for FreeOTP+ - been using it for a while and it does everything I need.

[–] s38b35M5@lemmy.world 1 points 1 month ago (1 children)

Though development seems to have ceased for a few years now

[–] Cyber@feddit.uk 2 points 1 month ago* (last edited 1 month ago) (1 children)

Hmmm.

I've just noticed that FDroid FreeOTP (no "+") is newer (updated 3 weeks ago) than FreeOTP+ (updated 2 years ago)... which I thought it was a fork of...

Ok, thanks, I might have to reassess...

@solrize@lemmy.ml - I presume you're using the non-plus version??

[–] solrize@lemmy.ml 2 points 1 month ago* (last edited 1 month ago) (1 children)

I don't see a plus. It says "FreeOTP version 2.0.6 (48) © 2013-2023 - Red Hat Inc, et al". But I think I've gotten updates more recently than 2023.

[–] Cyber@feddit.uk 2 points 1 month ago

Yep, that's the one... ie not the one I was using.

'K thanks.. looks lile I need to swap.

[–] Smash@lemmy.self-hosted.site 3 points 1 month ago (1 children)
[–] mongojarle@nord.pub 2 points 1 month ago

I second stratum, I think it ticks all your boxes.

[–] markstos@lemmy.world 3 points 1 month ago

Store the secrets on a Yubikey. They are unstealable then.

Yubico has their own GUI app or you can wrappers for their CLI tool to use something like dmenu, rofi or Fuzzel to pick one.

[–] rako@tarte.nuage-libre.fr 1 points 1 month ago

You can use deltachat with a totp app: it's simple, it's synchronized, there's no need to selfhost anything, ...

https://codeberg.org/rtn/totp

You can get it directly from deltachat

[–] justme@lemmy.dbzer0.com 1 points 1 month ago

I'm using freeotp+ I don't know if it's any fancy, bit never had issues with it (I'm using it rather rarely)