Two-Factor Authentication (2FA)
Add an extra layer of security to your Pluton instance by enabling Two-Factor Authentication (2FA). When enabled, users must provide a verification code from an authenticator app in addition to their password when logging in.
Prerequisites
- An authenticator app installed on your mobile device (e.g., Google Authenticator, Authy, Microsoft Authenticator)
Enabling 2FA
- Navigate to Settings → General tab
- Locate the Enable 2FA toggle
- Toggle it on
- A confirmation dialog appears asking if you want to enable 2FA
- Click "Yes, Enable 2FA"
- The 2FA Setup modal opens

Setting Up Your Authenticator App
After clicking "Yes, Enable 2FA", the setup modal displays:
- Scan the QR Code: Open your authenticator app and scan the displayed QR code
- Alternatively, manually enter the Setup Key shown below the QR code
- Your authenticator app will start generating 6-digit codes that refresh every 30 seconds
- Enter the current 6-digit code from your authenticator app into the verification field
- Click "Verify & Enable 2FA"
Saving Recovery Codes
After successful verification:
- A success message confirms 2FA has been enabled
- 10 recovery codes are displayed
- Save these codes securely - they are required to access your account if you lose your device
- Recovery codes are shown only once and cannot be retrieved later
- Close the modal when you have saved your recovery codes
Store your recovery codes in a secure location separate from your device. If you lose access to your authenticator app and don't have recovery codes, you will be locked out of your account. If this happens, see Disabling 2FA When Locked Out.
Logging In with 2FA
Once 2FA is enabled:
- Enter your username and password on the login page
- After successful password verification, you are redirected to the Two-Factor Authentication page
- Open your authenticator app
- Enter the current 6-digit code
- Click "Login"
Disabling 2FA
To disable 2FA:
- Navigate to Settings → General tab
- Toggle Enable 2FA off
- In the confirmation dialog, click "Yes, Disable 2FA"
2FA is disabled immediately. You do not need to save your settings.
Disabling 2FA removes your current 2FA setup. The codes from your authenticator app and your saved recovery codes stop working. To enable 2FA again, you must set it up again with a new QR code and save the new recovery codes. You can delete the old Pluton entry from your authenticator app.
Using Recovery Codes
If you lose access to your authenticator app:
- On the Two-Factor Authentication login page, enter a recovery code instead of the authenticator code
- Each recovery code can only be used once
- After you log in, disable 2FA and enable it again with your new device
Disabling 2FA When Locked Out
If you cannot complete the 2FA step at login and you have no recovery codes left, you can turn off the 2FA check with the DISABLE_2FA setting. You need access to the server or computer where Pluton runs.
If your authenticator app shows codes but Pluton rejects them, check the clock on the Pluton server first. 2FA codes depend on the current time, so a server clock that is off by more than a minute makes valid codes fail. Pluton writes a "2FA verification failed" warning with the server time to its logs each time a code is rejected. Correct the clock (for example, turn on automatic time sync) and try to log in again.
1. Turn On DISABLE_2FA
Docker
Add DISABLE_2FA to the environment section of your docker-compose.yml:
environment:
DISABLE_2FA: "true"
Then recreate the container so it reads the new value:
docker compose up -d
Desktop and Linux Server
Add "DISABLE_2FA": true to your config.json file:
{
"DISABLE_2FA": true
}
If the file already has other settings, add the line next to them. The file is at:
| Platform | Location |
|---|---|
| Windows | C:\ProgramData\Pluton\config\config.json |
| macOS / Linux | /var/lib/pluton/config/config.json |
Then restart Pluton. On a Linux server, run sudo systemctl restart pluton. On a desktop, restart your computer.
2. Log In and Disable 2FA
- Log in with your username and password. Pluton does not ask for a 2FA code.
- Disable 2FA from the settings. This removes the old 2FA setup and recovery codes.
3. Turn Off DISABLE_2FA
Remove the DISABLE_2FA line from your docker-compose.yml or config.json, then restart Pluton the same way as in step 1.
While DISABLE_2FA is on, Pluton never asks for a 2FA code at login, even if 2FA is enabled in the settings. Turn it off as soon as you have access again.
4. Set Up 2FA Again
Enable 2FA and scan the new QR code with your authenticator app. Save the new recovery codes in a secure place.