HungerBridge stores all of its settings in a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerBridge/llms.txt
Use this file to discover all available pages before exploring further.
config.yaml file that is generated automatically the first time the server starts. You never need to create this file by hand, but you will almost always want to review it — at minimum to copy the generated auth key into HungerLib, and optionally to change the port or fine-tune which endpoints are active.
Config File Location
The config file path depends on your platform:| Platform | Path |
|---|---|
| Fabric | config/HungerBridge/config.yaml |
| Paper / Purpur | plugins/HungerBridge/config.yaml |
Default config.yaml
The following is the complete configuration file that HungerBridge generates on first run. Every key shown here is the canonical default.The
auth.key value shown above is a placeholder. On first run, HungerBridge replaces it with a randomly generated UUID unique to your server. Copy the actual value from your generated file.Configuration Reference
port
com.sun.net.httpserver.HttpServer, which binds directly to this port on all interfaces.
- Type: integer
- Default:
30007 - Valid range: any valid, available TCP port (1–65535)
auth.key
X-Auth-Key HTTP request header. HungerBridge rejects any request that omits or incorrectly supplies this header with a 401 Unauthorized response.
- Type: string
- Default: randomly generated UUID (written once on first run)
- Header name:
X-Auth-Key
The auth key protects every endpoint across all API generations. There is a single key for the entire bridge — it is not configurable per-endpoint or per-generation.
v2-endpoints
403 Forbidden for requests to that path.
| Key | HTTP method | Path | Description |
|---|---|---|---|
run | POST | /v2/run | Execute a console command. Accepts command, silent, and show_console fields. |
log | POST | /v2/log | Write a message to the server console. Accepts message and optional level fields. |
ping | GET | /v2/ping | Health check. Returns ok: true and the current server time in milliseconds. |
info | GET | /v2/info | Returns bridge version, platform, and Minecraft version. |
status | GET | /v2/status | Minimal liveness check. Returns ok: true when the server is reachable. |
tps | GET | /v2/tps | Returns TPS averages at 1-minute, 5-minute, and 15-minute windows plus raw tick time in milliseconds. |
players | GET | /v2/players | Returns the online player count and a list of player names, capped at players.max-list. |
v1-endpoints
| Key | HTTP method | Path | Description |
|---|---|---|---|
run | POST | /v1/run | Execute a command. Same command / silent / show_console fields as v2. |
log | POST | /v1/log | Write to the server console with an optional level field. |
status | GET | /v1/status | Returns bridge version, platform, and Minecraft version in a flat JSON object. |
version | GET | /v1/version | Returns bridge version, platform, and Minecraft version (no ok field). |
The v1 API requires the same
X-Auth-Key header as v2. Requests without a valid key receive 401 Unauthorized.legacy-endpoints
| Key | HTTP method | Path | Description |
|---|---|---|---|
run | POST | /run | Execute a command. The request body is the raw command string. |
log | POST | /log | Write a message. The request body is the raw log string. |
players.max-list
/v2/players endpoint will include in its response. If more players than this limit are online, the list is truncated to the first max-list entries. The count field in the response always reflects the true total regardless of truncation.
- Type: integer
- Default:
50
Applying Changes
HungerBridge readsconfig.yaml once at startup. To apply any change:
Edit config.yaml
Open the config file in a text editor and make your changes. Preserve the YAML structure — incorrect indentation will prevent the file from loading and HungerBridge will throw a startup error.
Save the file
Save
config.yaml. No reload command is available; changes only take effect after a restart.Restart the server
Stop and start your Minecraft server. HungerBridge will read the updated config on the next startup and bind the HTTP server with the new settings.