2FA methods supported by PyPI
Adding two-factor authentication is one of the most effective ways to protect your PyPI account. With TOTP support, you can generate PyPI verification codes directly in the Authenticator App.
Authenticator app (TOTP)
PyPI lets you use time-based one-time passwords, so you can generate verification codes in an authenticator app on your device — no network or SMS needed.
Security key (U2F)
PyPI works with hardware security keys using the U2F/FIDO standard.
PyPI 2FA — Frequently asked questions
Does PyPI support an authenticator app?
Yes. PyPI supports time-based one-time passwords (TOTP), so you can add it to the Authenticator App and generate verification codes right on your device.
Which two-factor authentication methods does PyPI support?
PyPI currently supports: Authenticator app (TOTP), Security key (U2F).
Is it free to generate PyPI codes with the Authenticator App?
Yes. The Authenticator App is free to download, and generating PyPI verification codes does not require an account or sign-up.
This page is for educational purposes only. We are not affiliated with or endorsed by PyPI. All trademarks and product names are the property of their respective owners and are used solely for identification.