---
title: Account security
subtitle: Protect your ButterIX account with two-factor authentication and passkeys, and see or sign out sessions on other devices at any time.
description: ButterIX account security settings — turning on two-factor authentication (TOTP authenticator apps), saving and regenerating recovery codes, registering multiple passkeys and signing in with a passkey instead of a password, reviewing sessions and signing out other sessions, and what to do if you lose your authenticator.
keywords: [ButterIX, account security, two-factor authentication, 2FA, TOTP, recovery codes, passkey, sessions]
---

All account security settings live in the organization console (`https://console.butterix.com`): click your account in the bottom-left corner and choose **Security**. These settings belong to your personal account and apply across every organization you've joined; platform administrators use the same settings when signing in to the system console.

<CardGroup cols={3}>
  <Card title="Two-factor authentication" icon="lucide:smartphone">
    Sign-in asks for a 6-digit code from your authenticator app in addition to your password.
  </Card>
  <Card title="Passkeys" icon="lucide:fingerprint">
    Sign in with your fingerprint, face, or device PIN — no email or password to type.
  </Card>
  <Card title="Sessions" icon="lucide:monitor-smartphone">
    See which devices are signed in to your account and sign out the others in one click.
  </Card>
</CardGroup>

## Two-factor authentication

Two-factor authentication uses time-based one-time passwords (TOTP) and works with any standard authenticator app, such as Google Authenticator, Microsoft Authenticator, 1Password, or Authy.

<Steps>
  <Step title="Start setup">
    Under **Two-factor authentication** on the Security page, click **Turn on**. The page shows a QR code and a secret key.
  </Step>
  <Step title="Add it to your authenticator app">
    Scan the QR code with your authenticator app, or enter the secret key below it manually if you can't scan. The app then shows a 6-digit code that refreshes every 30 seconds.
  </Step>
  <Step title="Confirm with a code">
    Enter the app's current 6-digit code on the page and confirm. Two-factor authentication takes effect as soon as the code is accepted.
  </Step>
  <Step title="Save your recovery codes">
    After it's turned on, the page shows **10 recovery codes**. Download or write them down right away and keep them somewhere safe, such as a password manager — they're shown only once.
  </Step>
</Steps>

From then on, signing in with your email and password adds one more step: entering the code from your authenticator app. If you've registered a passkey, you can complete this step with the passkey instead.

### Recovery codes

Recovery codes let you sign in if you lose your phone or delete your authenticator app:

- At the code step, enter any one of your recovery codes instead of an authenticator code.
- Each recovery code works only once. The Security page shows how many you have left.
- When you're running low or suspect the codes have leaked, click **Regenerate recovery codes** (requires your current password). You get 10 new codes, and all the old ones stop working.

### Turn off two-factor authentication

On the Security page, click **Turn off two-factor authentication** and confirm with your current password. The entry in your authenticator app and any unused recovery codes stop working; to turn it back on later, you'll scan a new QR code.

<Note>
  If the platform has "Require two-factor authentication for administrators" turned on, platform administrator accounts can't turn off two-factor authentication.
</Note>

## Passkeys

A passkey is a WebAuthn sign-in credential stored on your device or in your password manager (for example iCloud Keychain, Google Password Manager, 1Password, or a hardware security key) and unlocked with your fingerprint, face, or device PIN. Passkeys can't be phished, and there's nothing to remember.

### Add a passkey

1. Under **Passkeys** on the Security page, click **Add passkey**.
2. Follow your browser's or operating system's prompt (fingerprint, face, PIN, or insert a security key).
3. Give it a recognizable name, such as "Work MacBook" or "iPhone".

Each account can have multiple passkeys (up to 20). We recommend registering one on at least two devices so that losing one doesn't lock you out. You can rename or delete a passkey at any time; a deleted passkey can no longer be used to sign in.

### Sign in with a passkey

- **Sign in directly**: on the sign-in page, click **Sign in with a passkey**, choose your passkey, and complete the prompt — no email or password needed.
- **As the second step**: with two-factor authentication on, after entering your password you can use a passkey instead of the 6-digit code.

The organization console and the system console share the same passkeys, so a passkey added in either console works in the other.

## Sessions

**Sessions** on the Security page lists the devices and browsers currently signed in to your account, with their sign-in and expiry times; the session you're using right now is marked.

- Click **Sign out** next to a session to sign that device out immediately.
- Click **Sign out other sessions** to sign out every device except the current one.
- When you change your password, the platform signs out all your other sessions automatically.

If you see a device you don't recognize, sign it out right away, change your password, and turn on two-factor authentication.

## FAQ

<AccordionGroup>
  <Accordion title="I lost my phone and can't find my recovery codes. What now?">
    If you've registered a passkey, sign in with it, then turn two-factor authentication off and on again on the Security page. If you have neither a passkey nor a recovery code, contact your platform administrator: they can reset two-factor authentication for your account in the system console, after which you sign in with your password and set it up again.
  </Accordion>
  <Accordion title="My codes keep being rejected">
    TOTP depends on accurate time, so make sure your phone sets its clock automatically. Each code can be used only once within its time window; if a code fails, wait for the next one and try again.
  </Accordion>
  <Accordion title="Can I use my passkey on another computer?">
    It depends on where the passkey is stored. Passkeys in iCloud Keychain, Google Password Manager, or 1Password sync across devices signed in to the same account; on a computer without sync, the browser usually lets you complete the prompt by scanning a QR code with your phone.
  </Accordion>
  <Accordion title="Does two-factor authentication affect organization API keys?">
    No. API keys belong to the organization, not to a personal account, so the CLI and CI don't need two-factor authentication when using them. Keep API keys safe and delete unused ones under "Organization settings → API Keys". See [CLI deployment and API keys](./cli-deploy.mdx).
  </Accordion>
</AccordionGroup>
