A modded Brawlhalla client. It runs the game on a new engine (HashLink + Heaps instead of Adobe AIR) and plays on its own servers: custom rooms, casual and ranked queues with rollback netcode, friends, clans and tournaments. It adds training and replay tools, and loads content mods. Everything is unlocked and nothing is sold.
The Bifrost app converts your own copy of the game on your PC. The repos have no game code, art or files.
Install
- 1
Download Bifrost Studio
Get
BifrostStudio.exefrom the latest bifrost-app release ↗︎. It's one file and runs without .NET installed. - 2
Run it
It finds your Brawlhalla install, downloads the latest Bifrost release and installs it. The game is converted from your own copy on your PC: no game files are downloaded.
- 3
Press Play in Steam
Steam's game folder keeps a small
Brawlhalla.exelauncher that starts Bifrost from its engine folder. - 4
First launch
Bifrost plays on
bifrost.saorax.com. Sign in with Discord to keep levels, stats, friends and clans, or play as a guest.Options can import the official game's settings, key bindings and picks. Other servers go in Options > SERVERS.
- 5
Updates
When a new release is out, the app offers the update.
- Windows (Linux and macOS builds are untested)
- Brawlhalla installed on the same PC
- Python 3.11 or newer, only to host a server from the app
Bifrost never contacts the official online services. The app can also install Official, a modified client for the official servers: using it can get your account banned by Ubisoft, either when BMG sees it in screenshots, videos or streams, or if the game starts detecting it (there was no detection as of Oct 31, 2026).
Where files go
- %LOCALAPPDATA%\Bifrost\Engine
- The engine, its saves and Steam's own Brawlhalla.exe.
- %LOCALAPPDATA%\Bifrost\Game
- The copy of the game, when Bifrost is installed in its own folder.
- %LOCALAPPDATA%\Bifrost\Studio
- The app's settings.
- %LOCALAPPDATA%\Bifrost
- Also the kit, downloads and the server the app hosts.
- Steam's Brawlhalla folder
- Only Bifrost's Brawlhalla.exe and, for now, the mods folder.
Host a server
The Server tab in Bifrost Studio runs a copy of the server on your own PC. It needs Python 3.11 or newer.
These steps are for Linux (Ubuntu or Debian). Windows works the same way; the differences are noted. The server is Python 3.11+ with only the standard library.
- 1
- 2
Download the server
Run every command below from this folder.
git clone https://github.com/Saorax/bifrost-server.git cd bifrost-server - 3
Make your settings file
Open
config.local.json, changeserver_nameto your server's name and leave the rest for now. On Windows, copy the file in Explorer.cp config.local.example.json config.local.json - 4
Open the ports
7910 TCP (the game), 7910 UDP (the P2P relay) and 7911 TCP (mods, replays, tournaments and the sign-in page). With ufw:
sudo ufw allow 7910/tcp sudo ufw allow 7910/udp sudo ufw allow 7911/tcpIf your provider has its own firewall in its control panel (Hetzner and OVH do), open them there too. A domain on Cloudflare has to be DNS only (grey cloud): Cloudflare's proxy blocks these ports.
- 5
Start it
The log should say
game connection on 0.0.0.0:7910. From another network (your phone off Wi-Fi), openhttp://<your address>:7911/info: it should show your server's name.python3 -m bh_server - 6
Join it
In Bifrost, add your address in Options > SERVERS (an IP or a domain; add
:portonly if you changed 7910) and play a match. That address is what you give players.
Everyone plays as a guest until you set up Discord sign-in. Also optional: game tables for missions, achievements, the battle pass and timed events, and running it as a service.
Run as a service
On Linux, systemd brings it back after a crash or reboot. Put this in /etc/systemd/system/bifrost-server.service, changing the user and folder:
[Unit]
Description=Bifrost server
After=network-online.target
Wants=network-online.target
[Service]
User=bifrost
WorkingDirectory=/opt/bifrost-server
ExecStart=/usr/bin/python3 -m bh_server
Restart=on-failure
KillSignal=SIGINT
[Install]
WantedBy=multi-user.targetsudo systemctl enable --now bifrost-serverKillSignal=SIGINT lets it warn players before it stops. The log is in data/server-log.txt.
A service has no admin console. Use tmux or screen if you want it. On Windows, leave it running in a console window.
The console lists its commands when it starts (say, who, kick, ban, mods, backup...) and again for any command it doesn't know.
Updates and backups
Stop the server, pull, start it again. config.local.json and data/ aren't touched.
sudo systemctl stop bifrost-server
git pull
sudo systemctl start bifrost-serverWithout a service, stop it in its console, then git pull and python3 -m bh_server.
Everything the server keeps is in data/: accounts.sqlite, the log, backups, replays, shared mods and bug reports. Back up that folder.
Server settings
config.json holds the shared defaults. Your own settings go in config.local.json (not in Git), which overrides it.
- server_name
- The name players see.
- game_port, web_port, game_host, web_host
- Where it listens: 7910 and 7911 on every address. Keep web_port one above game_port: the game looks for the tournament list there.
- public_url
- The sign-in page's address, as players' browsers reach it.
- behind_proxy
- true if a proxy answers public_url on the same port number as web_port.
- tls_cert, tls_key
- A real certificate (full chain) and its key, to make the web port https. Reloaded when they change.
- tls
- true makes the web port https with the server's own certificate (browsers don't trust it).
- discord_client_id, discord_client_secret
- Your Discord application, for sign-in.
- admin_discord_ids
- Discord accounts allowed to use admin commands.
- mod_reviewer_discord_ids
- Discord accounts that review shared mods.
- game_data
- The folder holding the game's Game/ and Init/ tables.
- relay
- inprocess (the built-in P2P relay) or native, with relay_native set to the relay program.
- turn
- off (default) or cloudflare.
- turn_key_id, turn_api_token
- Your Cloudflare TURN key's ID and API token.
- turn_ttl
- How long each TURN login lasts, in seconds (default 7200, at most 172800).
- cups
- true turns on Cups (double elimination brackets of 8).
- ask_region
- true opens the region picker at login for players who don't have one yet.
- client_theme
- The menu theme every game gets: a ClientThemeName from the game's ClientThemeTypes table (Halloween, Anniversary, Shrek...) or its id, or auto (default), which shows the Default theme. The console's theme command changes it until a restart, and players can still pick their own in Options.
These override both files: BH_DISCORD_CLIENT_SECRET, BH_PUBLIC_URL, BH_GAME_DATA, BH_RELAY_SECRET for the native relay, and BH_TURN_KEY_ID and BH_TURN_API_TOKEN for TURN.
Daily missions, achievements, the battle pass, timed events, tournament map pools, default skins and menu themes read the game's own XML tables. They're inside Game.swz and Init.swz in your Brawlhalla install and are never in the repo.
Extract both (the repo has no extractor) and put the Game/ and Init/ folders in data/game/, or point game_data at the folder that holds them. Without them the server still runs and those features stay empty.
Discord sign-in
Optional. Guests can use custom rooms, the queues and matches, and each game keeps its own guest name and settings. Levels and stats, friends, clans, tournaments, uploading mods, the save kept on the server and a whitelist all need Discord. A signed-in account has one player, the same on any PC.
- 1
Make a Discord application
In the Discord Developer Portal ↗︎.
- 2
Add its ID and secret
Put them in
config.local.jsonasdiscord_client_idanddiscord_client_secret. Use your own app's ID: the one inconfig.jsonis the Bifrost project's app. Never put the secret inconfig.json. - 3
Set public_url
The address players' browsers use for your sign-in page. Pick one of the four ways below.
- 4
Add the redirect
In the app's OAuth2 > Redirects, add
<public_url>/callback. The server prints the exact URL when it starts. - 5
Make yourself admin
Put your own Discord ID in
admin_discord_idsto use the admin commands in game. - 6
Restart the server
The log shows the redirect it expects, or
DISCORD SIGN-IN IS OFFand why.
The sign-in page
Discord sends the player back to <public_url>/callback, and that page asks for the 4-digit code shown in the game. Port 7911 is plain http unless you give it a certificate, so pick one:
Plain http
Like
http://play.example.com:7911. Fine for an IP address or a normal domain, but not for.app,.dev,.pageand a few others, which browsers always open over https (ERR_SSL_PROTOCOL_ERROR).Certificate on the server
Port 7911 speaks https. With Let's Encrypt: stop anything using port 80, open it, and run this (change the domain, folder and user). The hook copies the certificate into
data/now and after every renewal; the server picks up renewed files within a minute. Keep port 80 open for renewals.sudo certbot certonly --standalone -d play.example.com --deploy-hook 'install -o bifrost -m 600 "$RENEWED_LINEAGE"/fullchain.pem "$RENEWED_LINEAGE"/privkey.pem /opt/bifrost-server/data/'config.local.json"tls_cert": "data/fullchain.pem", "tls_key": "data/privkey.pem", "public_url": "https://play.example.com:7911"Reverse proxy on 443
With Caddy ↗︎ this is the whole config. Set
public_urltohttps://play.example.comwith no port and open 80 and 443. Keep 7910 and 7911 open: the game still connects to them directly.Caddyfileplay.example.com { reverse_proxy 127.0.0.1:7911 }Cloudflare Tunnel
If your domain is on Cloudflare and you'd rather not open ports: run
cloudflaredon the server with its own hostname, likelogin.example.com, pointing athttp://localhost:7911, and setpublic_urltohttps://login.example.com. Players still use the DNS-only name as the server address.
Don't use https:// with port 7911 without tls_cert and tls_key: the browser fails with ERR_SSL_PROTOCOL_ERROR. The server catches this at start: the log says DISCORD SIGN-IN IS OFF and players who try to log in are told the server is set up wrong.
Cloudflare TURN
Optional. Players who aren't friends play through a relay so they never see each other's IP. The built-in relay runs on your server, so two players far from it get a high ping.
With "turn": "cloudflare", each player relays through the Cloudflare TURN ↗︎ location nearest them, and players still only see Cloudflare's addresses. Players or networks that can't reach Cloudflare, and older Bifrost builds, keep using your server's relay.
Cloudflare charges for the traffic it sends to players after a free amount each month, and it sees the IPs of the players it relays.
- 1
Create a TURN key
In the Cloudflare dashboard (Realtime TURN). Copy its key ID and API token.
- 2
Turn it on
Put them in
config.local.json(turn_key_id,turn_api_token) or inBH_TURN_KEY_IDandBH_TURN_API_TOKEN, set"turn": "cloudflare"and restart. The log saysturn: Cloudflare TURN on.
Mods and editors
Skins, colors, avatars, emotes, map art, music and sounds. Other players see your item only if they have the mod too.
Legends, stats, moves, game modes and maps. Blocked in casual and ranked; everyone in the room needs the same mods.
Repos and releases
- bifrost-app
Bifrost Studio, the app that installs Bifrost or Official and can host a server.
- bifrost
Bifrost's own menus, online play, training and replay tools, and content mods.
- bifrost, engine branch
The engine Bifrost runs on (HashLink + Heaps), the converter and the player kit the app downloads.
Releases are published from the bifrost repo.
- bifrost-server
The server: accounts, rooms, queues, the P2P relay, friends, clans, tournaments and leaderboards.
No releases of its own. Clone it with Git; each Bifrost release also has a server zip from the same build.
- bh-client
Official: the modified client for the official servers.