Skip to main content
Two-factor authentication (2FA) asks for a one-time code after your password, so someone who learns your password still cannot sign in as you. You turn 2FA on by adding an authenticator app or SMS method. Email is not a method you add — it is a fallback channel that is always available on your account.
Email is used automatically once: to confirm it is you while adding your first method, since you have nothing else to verify with yet. After that it is never sent on its own, but you can still choose it at any verification prompt.

Turn on 2FA

1

Open Account Security

Go to Account Settings, expand Account Security, and click Enable Two-Factor Authentication.
Account Security section with the Enable Two-Factor Authentication button circled

Enable Two-Factor Authentication in Account Security

2

Choose a method

The section expands to list the available methods. Click Add next to Authenticator App (TOTP) or SMS.
Two-Factor Authentication section listing Authenticator App (TOTP), SMS, and Recovery Code, with both Add buttons circled

Each method has its own Add button

3

Confirm it is you

Select Email and click Send Code, then enter the 6-digit code sent to your account email and click Verify.
Verify your identity dialog with Email selected and the Send Code button circled

Verifying by email before adding your first method

4

Set up the method

Scan the QR code with your authenticator app. If you cannot scan it, copy the key under Can’t scan? Enter this key manually into the app instead.Give the method a Label (up to 30 characters), enter the 6-digit code the app shows, and click Confirm.
Enable authenticator app dialog with the QR code, setup key, Label field, and the six code boxes circled

Setting up an authenticator app

5

Save your recovery codes

2FA is now on, and you are shown 10 one-time recovery codes. Save them with Copy All, Download, or Print — somewhere outside your phone, such as a password manager — then click I’ve Saved My Codes.
Save Your Recovery Codes dialog with the codes blurred and the Copy All, Download, and Print buttons circled

Recovery codes shown after 2FA is turned on

The codes are shown only once. They are the only way back into your account if you lose your phone.

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.
Verify your identity dialog offering Authenticator App, Email, and Use a recovery code, with Continue circled

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:
Two-factor authentication prompt with Authenticator App selected, Email and Use a recovery code below, and Continue circled

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.
Two-Factor Authentication section with a configured authenticator app, its remove icon and the Regenerate button circled

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

  • 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.
If it still does not arrive, sign in with another method or a recovery code, or contact support@vast.ai.
Codes last 10 minutes. Start the sign-in again to get a new one.
  • 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.
Only the method that failed is locked, for 15 minutes. Switch to another method or a recovery code at the prompt, or wait out the lockout.
Contact support@vast.ai with your account email. Support will verify your identity and help you regain access.
Your account uses the legacy SMS 2FA. Click Regenerate Recovery Codes in the banner and follow the steps to move to the current system and get your recovery codes.