Skip to content

Authenticator app

With an authenticator app, you sign in with your password and a 6-digit code. This is multi-factor authentication (MFA) with time-based codes (TOTP).

Use any standard app. For example: 1Password, Google Authenticator or Authy.

The Account page

You manage your sign-in on the Account page. Open Account in the menu of the console. The address is /account/.

Item Function
Change password Sets a new password. If you set CYPROXY_ADMIN_PASSWORD, you cannot change the password in the console.
Authenticator app Set it up, New recovery codes and Turn it off.
Require an authenticator app A switch. While it is on, you cannot use the console without an app.

Set up your authenticator app

On the setup page of a new installation, you set up your app when you create the owner account. See Quick start.

To set up the app later, or to set it up again:

  1. Open Account → Authenticator app → Set it up.
  2. Enter your password.
  3. Scan the QR code with your app, or enter the key by hand.
  4. Enter the 6-digit code from the app.
  5. Save the recovery codes. Cyproxy shows them one time only.

After setup, Cyproxy signs you out on all devices. Sign in again with your password and a code.

During setup, you can select Also revoke my access tokens and connected apps. Use this if a different person possibly had your password.

Recovery codes

You get 10 recovery codes. Use one if you cannot use your app. Each code works one time.

To get new codes, open Account → Authenticator app, enter your password and a code, and select New recovery codes. The old codes stop working.

Require an authenticator app

The switch Require an authenticator app is on the Account page. An installation that you made on the setup page has the requirement on.

While the requirement is on:

  • You cannot turn the app off.
  • If the app was reset, you must set it up again before you can use the console. Your AI clients continue to work.

You must set up your app before you can turn the requirement on. To turn the requirement off, Cyproxy asks for your password and a code.

Turn the app off

  1. Open Account. Turn off Require an authenticator app. Enter your password and a code.
  2. In Authenticator app, select Turn it off.

Then you sign in with your password only. Do not do this on a server that other computers can reach.

If you lose your phone and your codes

Run this command on the server:

docker exec cyproxy .venv/bin/python -m cyproxy --reset-mfa

The command removes the app from your account. The audit log records the reset. Sign in with your password. If the requirement is on, Cyproxy then asks you to set up the app again.

If you also forgot your password, see Reset the owner password.

Protection against guessing

  • A code works one time.
  • After 8 incorrect codes in 15 minutes, Cyproxy refuses codes. Recovery codes still work.
  • The code step comes after the password step. If you are locked out and you did not do it, change your password.

What it does not protect

The authenticator app protects sign-in to the console. AI clients use access tokens. A token does not ask for a code. Revoke a token if a different person possibly has it.

The codes use the clock. The time on the server must be correct.

Any person who can run commands on the server can reset the app or the password.

Cyproxy keeps the secret of the app in users.json. The secret is encrypted. It is not a hash, because Cyproxy must read it to check a code. See What is encrypted. Recovery codes are stored as hashes.