Brook Business: Powering Your Own Branded Client

Updated at: 2025-08-22



The prerequisite of this article is that you are already a Brook Business or Brook Business Plus subscriber. Then you can obtain your CLI Token from your account. In the following text, we assume your CLI Token is xxx.

Brook Business provides three combinations of usage:

First Combination

Your Basic Workflow

  1. Deploy your User System
    • Suppose your deployed User System provides a userAPI URL like https://your-user-system.com/yyy
  2. Deploy your Brook Server. It is recommended to run as root user
    brook --cliToken xxx --pid /server.pid --userLog /server.log --userAPI https://your-user-system.com/yyy server -l :9999 -p hello
    
  3. Generate a brook link for your deployed Brook Server. Assume the deployed Brook Server IP is 1.2.3.4
    brook link -s 1.2.3.4:9999 -p hello --name "just a name"
    
  4. Log in to your User System’s admin panel, and add the brook link generated above to your User System.

    Repeat steps 2–4 to add more Brook Servers.

Your Users’ Basic Workflow

  1. Users visit your User System, register, and log in.
  2. Users purchase your service online.
    • If your User System doesn’t support online payments, you can manually renew subscriptions and add traffic in the admin panel.
  3. Users see their personal importable URL.
  4. Users open our Brook Client and import the URL above to add servers.
    • Our Brook Client requires Email verification at first use. This Email is independent of your User System.

Second Combination

Your Basic Workflow

  1. Deploy your User System
    • Suppose your deployed User System provides a userAPI URL like https://your-user-system.com/yyy
  2. Deploy your Brook Server
    brook --cliToken xxx --pid /server.pid --userLog /server.log --userAPI https://your-user-system.com/yyy server -l :9999 -p hello
    
  3. Generate a brook link for your deployed Brook Server. Assume the deployed Brook Server IP is 1.2.3.4
    brook link -s 1.2.3.4:9999 -p hello --name "just a name"
    
  4. Log in to your User System’s admin panel, and add the brook link generated above to your User System.

    Repeat steps 2–4 to add more Brook Servers.

Your Users’ Basic Workflow

  1. Users visit your User System, register, and log in.
  2. Users purchase your service online.
    • If your User System does not support online payment, you can manually renew and add traffic for users.
  3. Users see their personal importable URL.
  4. Users open your customized Brook Client and import the URL above to add servers.
    • Users don’t need additional Email verification. They can directly import after opening the client.

Third Combination

Your Basic Workflow

  1. Deploy your User System
    • Suppose your deployed User System provides a userAPI URL like https://your-user-system.com/yyy
    • Suppose your deployed User System provides a Plus Client Code verification URL like https://your-user-system.com/zzz

      You need to provide this URL to TxThinking so they can build the Plus Client for you. When a user activates your Plus Client, TxThinking will request this URL to verify whether the Code is correct.

  2. Deploy your Brook Server
    brook --cliToken xxx --pid /server.pid --userLog /server.log --userAPI https://your-user-system.com/yyy server -l :9999 -p hello
    
  3. Generate a brook link for your deployed Brook Server. Assume the deployed Brook Server IP is 1.2.3.4
    brook link -s 1.2.3.4:9999 -p hello --name "just a name"
    
  4. Log in to your User System’s admin panel, and add the brook link generated above to your User System.

    Repeat steps 2–4 to add more Brook Servers.

  5. Log in to your User System’s admin panel, and generate a batch of Plus Client Codes for later use.

Your Users’ Basic Workflow

  1. Users visit your User System, register, and log in.
  2. Users purchase your service online.
    • If your User System doesn’t support online payment, you can manually renew subscriptions and add traffic.
    • At this point, you should provide one or more Plus Client Codes to the user, either manually or programmatically.
  3. Users see their personal importable URL.
  4. Users open your customized Brook Plus Client and input the Plus Client Code to activate the Client.
    • No additional Email verification is required. Once activated, the client is ready to use, and all Plus features are enabled by default.
  5. Users import the URL from step 3 to add servers.