GLHFGLHF
← Docs
Server operators

Run a GLHF server (operators)

Host CS2 matches for GLHF wagers with the GlhfGsi plugin. Requirements, install, and how settlement trust works.

What you need

  • A CS2 dedicated server with a Game Server Login Token (GSLT).
  • Metamod:Source (v2) installed.
  • CounterStrikeSharp installed.
  • Outbound HTTPS from the server to the GLHF API.

Install the GlhfGsi plugin

CS2 has no server-side game-state integration, so the GlhfGsi plugin polls each player’s kills/deaths and posts a match summary to GLHF. Drop the plugin into your CounterStrikeSharp plugins directory:

addons/counterstrikesharp/plugins/GlhfGsi/
  ├─ GlhfGsi.dll
  └─ config.json

config.json points the plugin at the GLHF API and carries the match token:

{
  "apiUrl": "https://api.glhfapp.xyz/api/gsi",
  "token": ""
}

The token identifies which wager the match belongs to. It can be set live per match from the server console with glhf_token <token>, so one server can host many matches.

How settlement trust works for your server

GLHF-operated servers are trusted to auto-settle. A community server you run isn’t auto-trusted — results there settle through the report-and-dispute path, and are corroborated by the match demo. Recording GOTV demos on your server makes disputes fast and keeps your matches settling cleanly.

Self-serve server registration and a signed plugin release are coming. To add your server today, get in touch.