RustPlusApi

A C# library for the Rust+ companion API. Query and control your server, render security cameras, listen for push notifications, and acquire all the required credentials natively โ€” no Node.js required.

.NET MIT NuGet

Packages

Package Downloads Description
RustPlusApi Downloads Core client โ€” typed Response<T> API, entities, team/clan/nexus, camera protocol.
RustPlusApi.Fcm Downloads FCM listener for pairing & alarm notifications.
RustPlusApi.Fcm.Registration Downloads Native credential acquisition (no Node.js).
RustPlusApi.Camera Downloads Renders camera frames into images (ImageSharp).
RustPlusApi.Extensions.DependencyInjection Downloads DI registration (AddRustPlus, IRustPlusFactory) for the core client.
RustPlusApi.Fcm.Extensions.DependencyInjection Downloads DI registration (AddRustPlusFcm, IRustPlusFcmFactory) for the FCM listener.

Quickstart

using RustPlusApi;

using var rustPlus = new RustPlus(new RustPlusConnection(server, port, playerId, playerToken));
await rustPlus.ConnectAsync();

var info = await rustPlus.GetInfoAsync();
if (info.IsSuccess)
    Console.WriteLine($"{info.Data!.Name} โ€” {info.Data.PlayerCount}/{info.Data.MaxPlayerCount}");

Don't have credentials yet? The Getting Started guide walks you through acquiring them natively in a couple of minutes.