Before you begin
- A sign-in in the last 10 minutes, to set up, replace, or remove an authenticator app, or to generate recovery codes. After an older sign-in, the page asks you to select Sign In Again.
- An account that does not sign in through SSO. With SSO, your identity provider controls sign-in security, and the Security page shows only a notice.
Set up an authenticator app
- Open the account menu and select Security.
- In Two-Factor Authentication, select Set Up.
- Scan the QR code with your authenticator app, or enter the secret manually.
- Enter the code that the app shows.
- Save your recovery codes, then select I Saved These Codes.
Sign in with a code
After your password, Google, or GitHub sign-in, enter the code from your authenticator app in Authenticator Code. Each code works one time.- After 5 wrong codes in one sign-in, start the sign-in again.
- After 10 wrong codes in a row, your authenticator app is locked for 15 minutes. A new sign-in does not reset this count. A recovery code and a passkey still work during the lock.
Recovery codes
A recovery code lets you sign in when you do not have your authenticator app. You get 10 codes, and each code works one time. Agent Golf shows the codes only when you generate them, so keep them in a safe place, for example your password manager. To use a code:- Sign in with your password, or continue with Google or GitHub.
- On Two-Factor Authentication, select Use a recovery code, and enter the code.
Replace or remove your authenticator app
In Security > Two-Factor Authentication:- Select Replace to move to a new app. The old app stops working.
- Select Remove to turn off the code step. Your recovery codes also stop working.
If your organization requires two-factor authentication
The requirement applies when you sign in to that organization with a password and have no passkey and no authenticator app. A sign-in with Google, GitHub, or SSO does not need a second factor. After an administrator turns on the requirement, you have 24 hours. During this time, a notice shows the deadline. Add a passkey or an authenticator app on the Security page. After the deadline, if you still have no second factor:- Your dashboard session and your CLI sign-ins in that organization stop at their next token refresh, at most 10 minutes later. See Sign-in and token lifetimes.
- You set up an authenticator app at your next sign-in, then generate recovery codes on the Security page.
- You cannot switch to a workspace in that organization until you add a second factor.
Require two-factor authentication for an organization
You need the Manage Organization permission.- Open Settings > Organization > General.
- In Two-Factor Authentication, select Require Two-Factor Authentication, then Require.