
Authenticator app for PyPI
How to set up or enable two-factor authentication (2FA) for PyPI
To keep your PyPI account secure, enable two-factor authentication (2FA). This page explains how PyPI 2FA works, which methods PyPI supports, and how to protect and recover your account. The most secure option is an authenticator app: store your PyPI 2FA codes in MS Authenticator App and generate a fresh 6-digit code every time you sign in.
2FA methods PyPI supports
- Authenticator app (TOTP)
- Security key (U2F / WebAuthn)
An authenticator app (TOTP) is the sweet spot: free, offline, and not vulnerable to SIM-swap attacks like SMS.
How to enable or set up 2FA for PyPI
PyPI supports two-factor authentication to add an extra layer of protection. Follow our step-by-step PyPI guide, or read the official PyPI documentation ↗ for the exact, up-to-date steps.
How to recover your PyPI account
If you've lost access to your PyPI account, use the backup codes you saved when enabling 2FA, or contact PyPI support to regain access. Once you're back in, re-add the account to MS Authenticator App.
Topics covered
- pypi 2fa
- pypi two-factor authentication
- pypi 2fa setup
- pypi authenticator app
- how to enable 2fa on pypi
- pypi sign in with 2fa
Other Developer services
Data: 2fa.directory
Disclaimer
The information on this page is provided for educational purposes only, to help you secure your accounts.
Novaz is not affiliated, associated, authorized, endorsed by, or in any way officially connected with PyPI, or any of its subsidiaries or affiliates.
All product names, logos, trademarks, and registered trademarks are the property of their respective owners and are used here for identification and reference only, without implying any association or endorsement.



