Skip to content

Install the bridge

This happens on the machine that runs your Rust server. It puts three things there — the bridge plugin, the sidecar and RunicNPC — from one bundle, 2026.10.30 today, and prints what the site needs. It never contacts your site, and it never starts or stops your game server.

Rust server ──loopback, dials out──► rust-link sidecar ──HTTP + WebSocket──► your site

The game server opens no port for the bridge: the plugin dials the sidecar on 127.0.0.1.

  • Oxide or Carbon is installed, and the server has started once with it, so its directories exist. A vanilla server has nothing to load a plugin with. Oxide 2.0.7585 or Carbon 2.0.259 or newer — never both in one tree.
  • Kits and ZoneManager, from uMod. The bridge runs without them and names what is missing, but rewards and zones need them, and RunicNPC will not load without Kits. Nothing here installs them.
  • The site has the Rust module, and you are an administrator on it.
Use it when
The installer The server runs on Linux with systemd, or on Windows
The Pterodactyl egg The server runs on a Pterodactyl panel
By hand Neither fits, or you want to place every file yourself

The Runic Gateway installer, v0.8.1, told it is setting up Rust. Run it as root, or from an elevated PowerShell:

Terminal window
sudo ./runicgateway-installer-linux-x86_64 install --game rust --rust /srv/rust --server-id main
Terminal window
.\runicgateway-installer-windows-x86_64.exe install --game rust --rust D:\rust --server-id main

--rust is the server root, the directory holding RustDedicated. --server-id is required: it is the id the site will know this server by — lowercase letters, digits and -, up to 64 — and it is permanent (see Connect the site). Add --verify to see everything it would do and write nothing.

A run resolves the bundle, detects Oxide or Carbon from the server itself, and refuses a tree that has both or neither. It writes the plugin’s config with just ServerId and Port, only if there is none — an existing config is never rewritten, and one that names a different server stops the run. It installs the sidecar and registers its service, places the plugin, its helpers and RunicNPC, and prints what the site needs. Both frameworks load a plugin the moment it lands, so on a running server the bridge comes up at once.

More than one server on a host: run it once per server, each with its own --rust and --server-id. Each gets its own service, config, database, game port (from 7799) and web port (from 8090), and they share one sidecar binary.

Linux Windows
The sidecar binary, shared /usr/bin/runicgateway-rust-link %ProgramFiles%\RunicGateway\rust-link-sidecar.exe
One server’s sidecar config — holds its token /etc/runicgateway/rust/<id>.toml, mode 600 %ProgramData%\RunicGateway\rust\<id>\sidecar.toml
One server’s service runicgateway-rust@<id>.service RunicGatewayRust-<id>

The full list, including the database and the install record, is in the Rust bridge install guide.

Each Rust-Link release carries egg-rust-runicgateway.json: the panel’s Rust Autowipe egg with the bridge added. A panel administrator imports it under Admin → Nests → Import Egg. When you create a server from it, these variables matter:

Variable
Modding Framework oxide or carbon. vanilla installs no bridge
Runic Gateway: server id The id on the site. Read once, when the plugin writes its first config; changing it later changes nothing
Runic Gateway: sidecar port One of this server’s allocations. A port the server was not allocated binds, but is never reachable
Runic Gateway: sidecar token Leave blank, and the sidecar generates one. Anyone who can see this server’s startup variables can read a token typed here
Runic Gateway: bundle Blank takes the current bundle; a tag pins one

The install checks every file against the bundle’s checksums before it places any of them. The first boot prints the generated token in the console, once, and a line with what the site needs:

[rust-link] Admin -> Rust -> Servers: server id 'main', sidecar URL http://<this node's address>:21009 (listening on 0.0.0.0:21009)

The sidecar runs inside the server’s container and stops with it.

  • Updating is a reinstall, with Regen Server off to keep the map. A restart never fetches anything, so it can never change the protocol under a site that has not been updated.
  • A wipe keeps the bridge’s history. The egg moves rust-link/ out of the way while REMOVE_FILES runs, so no delete list can reach the database or the token.
  1. Pick the bundle. The current one is v2/rust/current.json on the installer’s bundles branch. It names the sidecar for your platform, the plugin tarball and RunicNPC’s, each with a sha256.
  2. Download and verify each against its checksum.
  3. The plugin: copy RunicGateway.cs into oxide/plugins/ or carbon/plugins/, with every other .cs the tarball’s manifest.json lists beside it, and RunicNPC.cs from its own tarball. To name the server, create oxide/config/RunicGateway.json (Carbon: carbon/configs/RunicGateway.json) first, holding { "ServerId": "<id>", "Port": 7799 }. Without it the plugin calls the server main.
  4. The sidecar: put the binary somewhere stable, give it a sidecar.toml, and run rust-link-sidecar --print-config --config <file> once — it generates the token, saves it, and prints it.
  5. Run it under your supervisor with --config <file>, as an unprivileged user that can write the database directory. On Windows the same .exe runs as a service.

The bundle ships three optional helpers beside the plugin, and the installer and the egg place all three. By hand, the tarball’s manifest.json lists them in files:

  • RunicGatewayZones.cs lets ZoneManager count a player already standing in an event zone when it opens or comes back after a restart, and enforce the flags of a zone opened after it loaded. Without it, events still score everybody, but a zone’s flags — PvP off, no building — may not hold.
  • RunicGatewayDomes.cs lets the bridge ask ZoneDomes for a dome over an event zone. Without it, zones open without one.
  • RunicGatewayRaids.cs lets an event spawn a RaidableBases base of its own and despawn just that base when the event ends; see Optional plugins.
doctor --game rust Per server: the framework, whether each deployed file is still the one deployed, RunicNPC (a failure when missing — it is required), the required uMod plugins, the service, and /health through to plugin connected
update --game rust Moves the sidecar and every server’s plugin to the current bundle, together — they share one binary
uninstall --game rust Removes the service, the plugin, its helpers and RunicNPC. Keeps the plugin’s config and RunicNPC’s data, because they name the server. --purge also removes the token and the database

Next: Connect the site.

rust-link/INSTALL.md is the operator guide, and its flags, paths and egg variables are the authority; installer/INSTALL.md covers the installer itself.