Skip to main content

Two-Factor Authentication

If you're seeking an additional layer of security for your Gunbot setup, enabling Two-Factor Authentication (2FA) is a wise choice. This guide will walk you through the simple steps to enable 2FA, enhancing the security of your trading operations.

Why 2FA Matters

Two-Factor Authentication provides an extra security layer by requiring a one-time password (OTP) generated by an authenticator app, such as Authy. This OTP is needed alongside your regular password every time you log in to the Gunbot interface, ensuring that your account remains secure even if your password is compromised.

Step-by-Step Guide to Enable 2FA

1. Accessing the 2FA Settings

To start, navigate to the 2FA settings page by entering http://localhost:3000/setup#advanced in your browser. Once there, locate and expand the 2FA tab to view the available settings.

2. Enabling 2FA

Click on the Enable 2FA switch. Upon enabling, you'll see a new option appear: Show QR Code. This QR Code is crucial for the next step.

3. Setting Up Your Authenticator App

Use your Authenticator App to scan the displayed QR Code. This will link your Gunbot account to the app, and it will start generating the 6-digit OTPs needed for logging in.

Setting up 2FA in Gunbot


Lost Access to Your 2FA?

In case you lose access to your 2FA code or device, don't worry! You can disable this feature by modifying config.js. Change the value of twoFA from true to false and restart Gunbot to regain access.


By following these simple steps, you've significantly increased the security of your Gunbot setup. Remember, the extra minute it takes to use 2FA could be what stands between you and a potential security breach.