# Two-factor authentication (/platform/two-factor-authentication)

Two-factor authentication (2FA) asks for a code from an authenticator app after you sign in. Any app that supports time-based one-time passwords (TOTP) works, such as 1Password, Google Authenticator, Microsoft Authenticator, or Authy.

Once 2FA is on, Sim asks for a code after every sign-in method: password, email code, Google, GitHub, Microsoft, and single sign-on.

## Turn on 2FA \[#turn-on-2fa]

1. Open **Settings → General → Two-factor authentication** and select **Set up**.
2. If your account has a password, enter it. If you sign in only with Google, GitHub, Microsoft, or SSO, you need to have signed in within the last 15 minutes; otherwise sign out and back in first.
3. Scan the QR code with your authenticator app, or enter the setup key by hand.
4. Save your backup codes somewhere safe. Each code works once, and Sim shows them only now.
5. Enter the 6-digit code from your app to finish.

When you sign in on a device, you can choose **Don't ask again on this device for 30 days**. Turning off 2FA, changing your authenticator app, or an administrator reset forgets every such device.

## Change your authenticator app \[#change-your-authenticator-app]

Select **Change authenticator app** and enter a current code from your app or a backup code, plus your password if your account has one. Your old app and backup codes stop working right away. Scan the new QR code, save the new backup codes, and enter a code from the new app to finish. Until you finish, only the new backup codes sign you in.

## Backup codes \[#backup-codes]

Use a backup code when your authenticator app isn't available. Select **Use a backup code instead** on the code screen. To get a new set, select **Regenerate backup codes** in settings; this replaces every earlier code.

## Turn off 2FA \[#turn-off-2fa]

Select **Turn off** in settings and enter a current code from your app or a backup code, plus your password if your account has one. If your organization requires 2FA, you can't turn it off.

Note:

Turning off 2FA, regenerating backup codes, or setting up a new authenticator always needs a current code, so someone with access to a signed-in browser can't remove your second factor.

## Lost your authenticator and backup codes \[#lost-your-authenticator-and-backup-codes]

Contact Sim support, or on a self-hosted deployment, a platform administrator. An administrator can select **Reset two-factor** for your account in **Settings → Admin**. This removes 2FA from your account, signs you out everywhere, and disconnects apps you authorized, such as MCP clients. If your organization requires 2FA, you set it up again the next time you sign in.

## Require 2FA for your organization \[#require-2fa-for-your-organization]

Organization owners and admins open **Settings → Organization → Security** and turn on **Require two-factor authentication**. On Sim Cloud, this requires an Enterprise organization; on self-hosted deployments it is always available. If an organization leaves Enterprise, the requirement stops being enforced.

- You need 2FA on your own account before you can require it.
- Turning it on signs out every member who hasn't set up 2FA and disconnects apps they authorized, such as MCP clients. The section shows how many members that is.
- A member without 2FA sets it up right after their next sign-in, before they can use Sim. No session is created until they finish.
- Members can't turn off 2FA while the organization requires it.

API keys are not affected. They keep working whether or not their owner has 2FA.

## Email notifications \[#email-notifications]

Sim emails you whenever two-factor authentication on your account is turned on, turned off, reset by an administrator, or switched to a new authenticator app. If you didn't make the change, reset your password from the sign-in page and contact your administrator.

## Audit log \[#audit-log]

Turning 2FA on or off, changing your authenticator app, regenerating backup codes, an administrator reset, a lockout after repeated incorrect codes, and each sign-in completed or rejected at the code step appear in the [audit log](/platform/enterprise/audit-logs). A sign-in is recorded as successful only after the code is accepted.

Note:

If your organization signs in through [single sign-on](/platform/enterprise/sso), your identity provider can already enforce MFA. Requiring 2FA in Sim as well asks members for a Sim code after the identity provider's sign-in.
