Skip to content

Bot Installation (system.py)

To allow your server to send statistics to the LFS Rank network, you must host and run our open-source InSim bot locally.

Prerequisites

  1. Python 3.8+ installed on your machine.
  2. An API Key and a Cryptographic Key Pair (generated via the lfsrank.com dashboard).
  3. A running instance of Live for Speed with the InSim port enabled.

Step-by-Step Installation

  1. Clone or download the system.py script.
  2. Create a file named config.json in the same directory with the following structure:
json
{
  "api_key": "YOUR_API_KEY_HERE",
  "private_key": "YOUR_PRIVATE_KEY_HERE",
  "insim_host": "127.0.0.1",
  "insim_port": 29999,
  "insim_admin": "your_admin_password",
  "server_name": "Your Server Name"
}
  1. Install required dependencies. The script requires standard libraries plus Ed25519 signature support:
bash
pip install ed25519 requests
  1. Run the bot:
bash
python3 system.py

TIP

We recommend running the bot using a process manager like screen, tmux, or systemd to keep it online after closing the terminal.

Released under the MIT License.