LibreAuth

Client Integration

Connect your application to LibreAuth — wire-authenticated SDK on API v1.3 or v1.4.

INFO
Wire required — every request must include a valid wire token from an official SDK. Hand-rolled HTTP clients without wire get E18.

Setup in 3 steps

  1. Credentials — use your App Name and Owner ID (10 characters)
  2. Set API URL — Enterprise: https://libreauth.nutexe.dev/api/1.4/ · other plans: https://libreauth.nutexe.dev/api/1.3/
  3. C++ clients: set Ed25519 public key from init response — C++ setup

PHP

PHP
require 'LibreAuth.php';

$LibreAuthPublicKey = 'YOUR_ED25519_PUBLIC_KEY_HEX';

$app = new LibreAuth('AppName', 'OWNER_ID', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
$app->Init();

$info = $app->Login('user', 'pass', 'HWID-HERE');
if ($info) {
    echo "OK: {$info['username']}
";
    foreach ($info['subscriptions'] as $s) {
        echo "  {$s['subscription']} -> {$s['expiry']}
";
    }
}

Copy LibreAuth.php from SDK source.

C++

C++
std::string url = "https://libreauth.nutexe.dev/api/1.3/";

static std::string get_public_key_hex() {
    return "YOUR_ED25519_PUBLIC_KEY_HEX";
}

LibreAuth::Client app("AppName", "OWNER_ID", "1.0", url);
app.setPublicKey(get_public_key_hex());
app.init();
app.login("user", "pass", la_guard::Hwid());

C# / JS / Python / Go / Rust / Lua

C#
var app = new LibreAuth("AppName", "OWNER_ID", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
await app.InitAsync();
var info = await app.LoginAsync("user", "pass", "HWID-HERE");
Console.WriteLine(info.GetProperty("username"));

Per-language guides: Client SDKs

API reference

EndpointDescription
initStart session, get enckey
loginUsername + password auth
licenseLicense key activation
registerCreate new user account
checkValidate active session
logSend event log (max 255 chars) — Logging guide
loaderPoll / loaderAckWeb Loader remote buttons — Web Loader

Full reference: All Endpoints · Response Signing · API v1.4 (Enterprise)

API v1.4 (Enterprise)

API v1.4 is live — requires Enterprise subscription. Point your client to https://libreauth.nutexe.dev/api/1.4/.

Go-live checklist

INFO
Need help? Troubleshooting · Q&A