Access control for your Luau scripts.

Issue license keys, lock each one to a device, and revoke it mid-session. Your loader checks with Surf before every download.

Free plan: 1 project, 100 active licenses, 20 builds a month.

  1. POST/api/v1/products/:id/licenses201SURF-7F3KQ2

Demo · sample key and device

One key, checked on every request.

A license alone opens nothing. Every request walks the same chain, and any link can close it.

  1. Issue

    Create a license and get a SURF key, shown exactly once. Surf stores only its hash.

    POST /api/v1/products/:id/licenses 201 SURF-7F3KQ2-…

  2. Bind

    The first activation binds the key to a device, and the device limit holds even under concurrent requests.

    POST /api/v1/activate 201 DEV-3fa94c1b7e02

  3. Authenticate

    Your loader trades the key and device for a short-lived runtime token, 15 minutes by default. Renewals are capped.

    POST /api/v1/runtime/authenticate 201 srt_•••• 900 s

  4. Check

    Every protected request re-checks the license, activation, device and product. Suspend or revoke the key and the next request fails.

    GET /api/v1/runtime/session 200 authorized

  5. Deliver

    The loader streams the latest completed build and verifies it against its SHA-256.

    GET /api/v1/runtime/artifact 200 sha256 verified

Protect the build before it ships.

Builds pass through Surf Protect on their way to your loader. Your source is never stored or logged.

  • One token protects up to 256 KiB of source.
  • Tokens cost $1 each, in any quantity, on any plan.
  • Pro includes 5 tokens per billing period and Studio 25. Included tokens expire with the period.

Protection cost

3 tokens = $3

Largest source per job: Free 1 MiB, Pro 5 MiB, Studio 20 MiB.

Every lock has an API.

Three credentials that never stand in for one another: one for you, one for your servers, one for your loader.

  • Session

    You, in the browser. Projects, licenses, keys and billing.

    Authorization: Bearer <session>
  • API key

    Your servers. Scoped per resource, optionally confined to one project.

    X-Surf-API-Key: surf_live_…
  • Runtime token

    Your loader. One license on one device, re-checked on every request.

    Authorization: Bearer srt_…
Authenticate from a game server Example. Turn on HTTP requests for the experience first.
local HttpService = game:GetService("HttpService")

local response = HttpService:RequestAsync({
  Url = "https://surfauth.me/api/v1/runtime/authenticate",
  Method = "POST",
  Headers = { ["Content-Type"] = "application/json" },
  Body = HttpService:JSONEncode({
    licenseKey = LICENSE_KEY,
    deviceId = DEVICE_ID,
  }),
})

local session = HttpService:JSONDecode(response.Body).data
-- session.token travels as "Authorization: Bearer srt_…"

Webhooks

Events like license.created, activation.deactivated and build.completed, signed with HMAC-SHA256 and retried with backoff.

Analytics

Daily counters per project and product: authentications, activations, builds and downloads.

Scopes

API keys carry only the scopes you grant, from projects:read to analytics:read, and expire after 90 days by default.

Start free. Pay as you ship more.

Every plan includes licensing, runtime authentication and protected delivery.

Free

$0 / month

No payment needed

  • 1 project
  • 100 active licenses
  • 20 builds a month
  • 2 API keys
Start free

Pro

$15 / month

or $150 a year

  • 10 projects
  • 10,000 active licenses
  • 500 builds a month
  • 5 Protect tokens per period
Get Pro

Studio

$49 / month

or $490 a year

  • Unlimited projects
  • Unlimited active licenses
  • 5,000 builds a month
  • 25 Protect tokens per period
Get Studio

Issue your first key.

Create an account in the dashboard, or go from an empty terminal to a working license in three requests.

  1. Create your account

    POST /api/v1/auth/register
  2. Sign in for a session token

    POST /api/v1/auth/login
  3. Create a project, a product and a license

    POST /api/v1/projects → …/products → …/licenses