Create a Headless Token
A headless bot is a computer of yours that hosts rooms on Rustball, running all the time. To connect it, the bot needs two tokens:
Revoked Headless Grant Token = all its bots are disconnected at once.
How to create it
- Get a Headless Grant Token from the administrator.
- Fill in the form below: a bot name (only for you), the room name players will see, visibility, an optional room password, and your Headless Grant Token.
- Press "Create Headless Token". The Headless Token is shown once, together with the configuration.
- Download
rustball-headless.toml. It already contains the site, both tokens and the first room. Keep it private. - Install the bot on your computer: download the package below, extract it, put the TOML file next to
run.sh(macOS) or in/etc/rustball-headless.toml(Linux), and start it.
2 · Save your configuration
The Headless Token is shown only once. Download the file now: the server keeps only a hash and cannot show it again.
Before starting the bot, set bind_ip to the address of the computer that runs it (macOS: ipconfig getifaddr en0).
What is inside the TOML file
| Field | Meaning |
|---|---|
signal_url | The site the bot connects to. Already set: wss://www.rustball.eu/ws. |
bind_ip | The address of the computer, reachable by players. Change it to your computer's address. |
[auth] grant_token | Your Headless Grant Token. |
[auth] headless_token | Your Headless Token. |
[[rooms]] name | Room name, 1 to 40 characters. Must be unique in the file. |
[[rooms]] visibility | public or private. |
[[rooms]] password | Room password, or empty for none. |
[[rooms]] max_connections | Maximum players, from 1 to 22 (default 22). |
Several rooms: add another [[rooms]] block with its own name and settings. Each room opens on its own.
signal_url = "wss://www.rustball.eu/ws" bind_ip = "192.168.1.10" [auth] grant_token = "your Headless Grant Token" headless_token = "your Headless Token" [[rooms]] name = "Evening match" visibility = "public" password = "" max_connections = 22 [[rooms]] name = "Private room" visibility = "private" password = "secret" max_connections = 6
Get the bot
Download the package for the computer that will run the bot. It includes the bot program, run.sh, a systemd service for Linux and the full instructions (INSTALL.md).
Download for Linux (x86_64) · Download for macOS
Once running, the bot logs each step: start, login with both tokens, room created, players joining, matches starting and ending.