Premium Accounts

2files
1figure
2min read
Sheet 8 of 47 · Bots

Filesconfig.json · premium-hosts.json

Fileconfig.jsonFilepremium-hosts.jsonAn offline bot only gets onto a server with online-mode=false. For an online-mode server a bot needs a real Microsoft account. The Accounts page holds your own accounts, and a bot joins with one through account=<name or uuid>.

Add an account

  1. Start the sign-in

    On Bots > Accounts click Add account. The tool shows a device code.

  2. Type the code

    Open microsoft.com/link, sign in and type the code.

  3. Done

    The tool runs the MSA, Xbox Live, XSTS and Minecraft login chain. It never sees your password.

Accounts, shown with demo data.
The Accounts page with saved Microsoft accounts, each with its token expiry and the bot using it

How the tokens are kept

TokenWhere it lives
Refresh tokenOnly in accounts.dat in the data dir, sealed with Windows DPAPI for the current Windows user. Another user or another machine cannot open it. Never in config.json, logs or screenshots
Access tokenRefreshed on use, 5 minutes before it expires. The page shows each account's expiry and which bot uses it

Rules

RuleDetail
One bot per accountOne account runs one bot at a time. A bot and a takeover on the same account cannot run together
Login spacingPremium logins are at least 2 seconds apart
Remote hostsThe first time premium bots join a host that is not local, the tool asks once and remembers the host in premium-hosts.json. Through the API, pass confirmHost=1
curl "localhost:8767/join?account=Steve"
curl "localhost:8767/swarm?accounts=all"

Signed chat

Premium bots chat like the vanilla client, so plain chat, /msg, /tell, /say, /me and /teammsg work on a server with enforce-secure-profile=true.

PartHow it works
SessionOn every login the bot fetches its profile key pair from Mojang with the account's token (/player/certificates), opens a chat session with a fresh session id and sends the session to the server
SigningEvery chat line and every signed command argument is signed with the key, chained by index to the ones before it, and carries the last-seen acknowledgements of the signed messages the bot received. After 64 unacknowledged messages the bot sends an ack on its own, like the client
Which argumentsTaken from the server's command tree: message arguments, also behind redirects like /tell. Anything after execute run goes unsigned, the same as vanilla
KeysKept in memory, refreshed when Mojang says so, never written to disk, logs, the packet log or the API. Signatures and public keys show up as <hidden> in /packets and exports
Status/stats has signedChat: true once the session is up. The first line after a join waits up to 5 seconds for the key

Chat and commands are capped at 256 characters, like the real client.

Loading the index

Enter openUp Down moveEsc close