Docs

One plugin. A playable URL.

Loki hosts the finished browser build, scans it, isolates it, and runs rooms on the same playable URL. You keep the game. You still fine-tune that game after the package lands.

Start here

Quickstart

Create a project, install @lokiplay/sdk@0.3.8, connect, and ship a URL.

How Loki works

Host authority, finished builds, and the Layer 1 / Layer 2 split.

Choose a room type

Synchronized for turns and events. Realtime for a continuous host sim.

Agent rules

The same contract as AGENTS.md. No invented servers. Fine-tune after install.

Packages

PackageRole
@lokiplay/sdkRuntime client. Required for multiplayer.
lokiplayCLI: login, connect, validate, ship.
@lokiplay/ui-webOptional overlay: status, roster, invite copy, chat. Does not create or join rooms.
@lokiplay/mcpAgent tooling. Do not ship it in the game bundle.
@lokiplay/protocolShared schemas. Install only if the SDK already requires it.

Pin the exact published version. Current release: 0.3.8.

npm install @lokiplay/sdk@0.3.8

Surfaces

URLWhat it is
app.lokiplay.ccCreate a project and copy the agent prompt
play.lokiplay.ccPlay a hosted game
api.lokiplay.ccProduction API
docs.lokiplay.ccThese docs

What is in Layer 1

Private and unlisted hosting. Immutable releases. Host-authoritative rooms. Invites. Fill-N matchmaking. Presence. Lobby and match chat. Private leaderboards. Reconnect and host migration. JavaScript SDK. Native clients for synchronized rooms.

What is not in Layer 1

A public catalog listing. Tips, ads, and payouts. Friends, parties, and public leaderboards. Ranked anti-cheat. Native clients in realtime rooms. Creator-authored server rules.