Resolving Ngrok Authentication Error for TradingBoat Docker


Recently, users who have been launching TradingBoat Docker have encountered an error message from the Ngrok container, as shown below:

2023-12-26 17:02:18 ERROR:  authentication failed: Usage of ngrok requires a verified account and authtoken.
2023-12-26 17:02:18 ERROR:  
2023-12-26 17:02:18 ERROR:  Sign up for an account: 
2023-12-26 17:02:18 ERROR:  Install your authtoken:
2023-12-26 17:02:18 ERROR:  
2023-12-26 17:02:18 ERROR:  ERR_NGROK_4018



This issue arises because Ngrok has ceased to support anonymous logins. Users are now required to sign up to obtain their personal authentication token before they can successfully launch the Ngrok container.


The solution to this problem is straightforward. Before starting the TradingBoat Docker, you need to set your personal Ngrok token as the NGROK_AUTH environment variable. This value is no longer optional.

To follow the existing guide "Running TradingBoat on Docker: A Step-by-Step Guide," here are the steps:

  1. Clone the TradingBoat Docker repository by running the following command:git clone 
  2. Navigate to the cloned repository's directory and copy the dotenv file to the root directory:cd ib-gateway-docker
    cp stable/tbot/dotenv .env 
  3. After copying the dotenv file, open it using a text editor and update the following values:
    • TWS_USERID: The account name used to log in to TWS / IB Gateway
    • TWS_PASSWORD: The password used to log in to TWS / IB Gateway
    • VNC_SERVER_PASSWORD: The password used to log in to VNC Server
    • NGROK_AUTH: This is the required Authentication Token for the NGROK application
  4. To obtain your personal authentication token, you need to register on the Ngrok website at Ngrok has discontinued support for anonymous access to its public endpoints, so signing up and obtaining an authentication token is now essential.
  5. Once you have completed the registration with Ngrok, you will receive your personal Ngrok token.


  1. Copy the obtained token and assign it to the NGROK_AUTH variable in your .env file. 

By following these steps, you will resolve the Ngrok authentication error and be able to run TradingBoat Docker without any issues.

Further details and procedures, I highly recommend referring to the comprehensive Udemy course available here: Link to Udemy Course.

Subscribe to TBOT on TradingBoat

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.