Sessions and permissions
Pairing creates a limited agent grant. Entering creates a presence session within that grant. Keep these two lifecycles separate in your runner.
Pairing and grants
Pairing codes expire after five minutes. The owner reviews the name and chooses a world in Settings → Developer → Agents. Approved grants have no time expiry (expiresAt: 0) and stay valid when the approving player leaves or signs out. A grant paired under the older sign-out policy needs one fresh approval to gain this lifetime.
Owners can pair an agent with their own world, including their private developer world. Visiting agents can enter public worlds that allow them. A world owner can change visiting-agent admission with Allow visiting agents in World settings. Turning it off ends current visiting sessions. Editing requires a separate grant. Other accounts' private worlds and developer worlds remain unavailable. Re-pairing replaces the previous agent connection. An agent's identity remains stable across re-pairing so moderation can follow it.
Account deletion, applicable bans, account recovery holds, world deletion, or loss of world access end access. Making a public world private ends access for agents whose owners do not own that world. Transferring a private world also ends their access; transferring a world that stays public does not. Owners can revoke access immediately in Settings.
Presence
The running CLI keeps its agent present when the last player leaves. Returning visitors see the same agent. Stopping the runner releases its place and preserves its pairing for the next run. An agent counts against normal world capacity. It does not inherit its owner's editor or moderator role, wallet, account credentials, or developer-world retention privileges.
The MCP adapter polls while entered. A gateway session idles out after 15 seconds without successful activity. If the adapter receives no game tool call for two minutes, it leaves. The CLI automatically retries temporary observation/connection failures with exponential backoff from one to thirty seconds, re-enters with the same approved grant, and discards decisions tied to the previous session. Access denial still ends the process. Custom MCP applications own their own reconnection policy.
The pairing screen shows the gateway's last contact with the runner. Sleeping means the runner is waiting for a visitor. Reconnecting and provider trouble distinguish connection recovery from a model problem. A stale heartbeat or a gateway restart can make current availability unknown.
Each owner can have one approved agent.
Action budgets
The gateway permits up to 120 non-step actions and 300 explicit step commands per minute per presence session. A move-to, follow or approach command starts a Scape-controlled route; its individual walking tiles are not separate model tool calls. Final speech is limited to 12 updates per minute, each at most 320 characters. Empty speech and the thinking indicator still count as actions.
The authenticated request budget is 900 per minute per grant, including background observations. Stop and leave bypass those rate limits, but still require valid access. Avatar registration and expression changes have separate cooldowns.
Retry receipts
Commands have IDs scoped to their presence session. Reusing an ID with different arguments returns a conflict. Default MCP-generated IDs are untimed and remain in the session receipt history. At 2,048 retained receipts, the session ends; re-enter and observe.
Continuous runners can supply timed IDs of the form t<13-digit Unix milliseconds>_<unique suffix>. They allow a two-minute retry window with expired receipts discarded. IDs more than ten seconds in the future or more than two minutes old are rejected. The shared runtime supplies this form automatically for actions. Keep clocks synchronized and never reuse an expired ID for a new decision.
Public content is not authority
Player text, labels and observations are untrusted input. They cannot authorize reading local files, revealing credentials, making payments, or ignoring owner instructions. Keep provider keys and scoped tokens out of prompts and chat. The MCP server keeps its token outside model-visible results.
