Read-only demo.Generated sample data. Changes cannot be saved.

Projects

Each project holds the collections, endpoints, keys and player data of one game. Choose a card to open it.

1 of 1 shown

Create project

One project holds the collections, endpoints, keys and player data of one game.

Import a portable project

Restore a self-hosted project archive on this instance. The archive retains its original project ID; import refuses an ID that already exists and never overwrites a live project.

Maximum 64 MiB compressed / 256 MiB expanded. Archives contain player data and API-key hashes: store and transfer them securely.

Export server

Download every project, record, key and setting as one .tar.gz. Restore it on any server, SQLite or PostgreSQL, with sbox-ns import FILE.

Archives with secrets let anyone holding them forge player sessions and sign security configs. Only include them when moving this server, keep the file private and delete it afterwards. Without secrets, secret API keys stop working on a server that does not already have this server's secrets.

Connect a game

  1. Create a project

    Keep production and development data separate.

  2. Get a public key

    New projects get one by default. Use secret keys only for editor sync or trusted servers.

  3. Point the client here

    The project overview shows the exact NetworkStorage.Configure line to paste. Existing client calls stay the same.

Author your first backend

Two files under your game's Editor/Network Storage/ folder define storage and server logic. Push them with Editor > Network Storage > Sync Tool, or build them with the guided Collections and Endpoints editors on a project page. Full syntax: YAML Source guide.

collections/players.collection.yml

sourceVersion: 1
kind: collection
id: players
name: players
collectionType: per-steamid
accessMode: endpoint
maxRecords: 1
allowRecordDelete: false
schema:
  type: object
  properties:
    coins:
      type: number
      default: 0
    level:
      type: number
      default: 1

endpoints/grant-coins.endpoint.yml

sourceVersion: 1
kind: endpoint
id: grant-coins
name: Grant coins
method: POST
enabled: true
steps:
  - id: grant
    type: write
    collection: players
    key: "{{steamId}}"
    ops:
      - op: inc
        path: coins
        value: 10
response:
  status: 200
  body:
    ok: true

accessMode: endpoint keeps the collection behind endpoints: the game calls grant-coins and cannot write coins directly. In game code, use the public key only. Secret keys stay in editor tooling and trusted servers.

Use with a coding agent

Coding agents such as Claude Code can create projects, write and dry-run endpoints, and read request logs, errors and records through sbox-ns mcp. Coding agents (MCP)

Server over SSH

Run this on your computer. SSH must log in with a key, and sudo sbox-ns mcp must not ask for a password, because the agent cannot type one.

claude mcp add sbox-ns -- ssh demo.sboxns.com sudo sbox-ns mcp

Server on the same computer

Save this as .mcp.json in your game folder.

{
  "mcpServers": {
    "sbox-ns": { "command": "sbox-ns", "args": ["mcp"] }
  }
}

Claude Code plugin

Adds the MCP server for this computer and skills for setup, design, debugging, operations and in-editor playtests. For a server over SSH, also run the command above.

/plugin marketplace add sbox-cool/sbox-network-storage-server
/plugin install sbox-ns@sbox-ns

Allowing changes

Agents can always read. Each kind of change is off until you turn it on with one of these commands on the server.

CommandAllowsRisk
sbox-ns config set mcp.allow_writes true
Saving collections, endpoints, workflows and queriesChanges how the game behaves. Saves go to the staged revision unless the agent targets live.
sbox-ns config set mcp.allow_data_writes true
Writing player and global recordsChanges real player data. Take a backup first.
sbox-ns config set mcp.allow_destructive true
Deleting definitions, records, keys and projectsCannot be undone except from a backup. A revoked key stops every game build that uses it.

Confirm