Ansekai DocsAnsekai docs
All pages
Connections and security
Examples

Start

How Ansekai works

Games and keys

Everything in Ansekai belongs to a game. A game has its own players, saves, files, code and rooms, nothing reaches another game. Every game has a game key, it is on the SDK page of the panel. The key only says which game a client means, it is not a secret: it ships inside the game. What a client may do comes from the player that is signed in and from the rules of each module.

Modules

A game is made of modules, each one is a page in the panel:

ModuleKeeps or runsRead more
AuthenticationPlayers, sessions and tokensAuthentication
Player DataValues of each playerPlayer Data
Realtime DatabaseValues the whole game shares, liveRealtime Database
FilesUploads in foldersFiles
CacheFast values that may go awayCache
PluginsLuau that clients call, hooks and timersPlugins
LoopsLuau at a tick rateLoops
RoomsMatches and worlds that players joinRooms

Every module has its own settings: the connection it wants, its rate limits and who may reach it from a client. The panel and server code always reach everything.

Client and server

A client is your game, built with an SDK. It signs a player in and calls modules for that player. Anything a client must not decide, like gold, prices or who won, belongs on the server:

  • Rules say what a client may read and write, key by key and path by path.
  • Plugins are functions in Luau that clients call, they run on the server with the rules of the server.
  • Loops and rooms keep running on the server and own their state.
// The client asks, the plugin decides
const { gold } = await ansekai.plugins.call("buy", { item: "torch" });

Servers and regions

One server can run everything. A bigger install is a network of servers in regions. A game lives on one server of the region it picked for good, the SDK finds that server by itself. Rooms can run in more regions than their game, see Rooms.

Cloud saves

Player Data, the Realtime Database, files and the cache on disk share one limit for the whole account, the cloud saves of its plan. See Plans and billing.

Updated November 21, 2026

How Ansekai works · Ansekai Docs