Turn on 2FA
Open Account Security

Enable Two-Factor Authentication in Account Security
Choose a method

Each method has its own Add button
Confirm it is you

Verifying by email before adding your first method
Set up the method
- Authenticator App
- SMS

Setting up an authenticator app
Save your recovery codes

Recovery codes shown after 2FA is turned on
Add a second method
Adding another method — SMS as a backup to an authenticator app, for example — follows the same steps with one difference: in Confirm it is you, no email is sent automatically. You choose an existing method, email, or Use a recovery code, then click Continue.
Verifying with an existing method before adding another
Sign in with 2FA
After your password, the Two-factor authentication prompt lists your methods. Select one, click Continue, and enter the code:
Choosing a method at sign-in
Manage your methods
Everything below is under Account Settings → Account Security. Each change asks you to verify with an existing method or a recovery code first.
2FA methods and recovery codes in Account Security
- Regenerate recovery codes — click Regenerate to get a fresh set of 10. Every earlier code stops working.
- Remove a method — click the remove icon next to it. Removing your last method turns 2FA off.
Limits
Troubleshooting
My SMS code did not arrive
My SMS code did not arrive
- Wait 30 seconds, then click Resend.
- Check the phone number on file.
- Make sure your phone has signal and is not filtering messages from unknown numbers.
My code says it has expired
My code says it has expired
My authenticator app code is rejected
My authenticator app code is rejected
- Make sure your phone’s clock is set automatically — authenticator codes depend on accurate time.
- Check you are using the Vast.ai entry in the app, not an older one.
- If it still fails, remove the entry from the app and set the method up again.
I am locked out after too many attempts
I am locked out after too many attempts
I lost my phone and have no recovery codes
I lost my phone and have no recovery codes
Account Settings asks me to migrate my 2FA
Account Settings asks me to migrate my 2FA
Related
- Account Settings — the rest of the Account Security section
- CLI two-factor authentication — set up and
use 2FA from
vastai - 2FA API endpoints — the REST endpoints behind these flows
