Link your Microsoft account
Sign your bot in with Microsoft once, so it joins as your own player with your skin.
Available on all plans.
Compare plansOn this page

Overview
A Microsoft account lets your bot join as your own player, with your skin and your username; premium servers, the ones that check that a player owns Minecraft, only let it in this way. You sign in once with a short code on Microsoft's own page, and the bot keeps using that sign-in.
Link an account
You link an account in the Account step of the Add a bot wizard.
- Click New bot in the sidebar, pick the server and click Continue.
- Pick Microsoft account in the Account step.
- Click Sign in with Microsoft. The dashboard gets a code and shows it with a countdown.
- Click Open Microsoft sign-in. Microsoft's page opens in a new window with the code already filled in. If it asks for the code anyway, click the code in the dashboard to copy it and paste it there.
- Sign in with the account that owns Minecraft: Java Edition and press Allow.
- Wait for the card to read "Signed in as", then click Continue. The card switches by itself once Microsoft accepts the sign-in, and shows your player name, "Owns Minecraft: Java Edition" and the name the bot will use. Then start the bot as in Quickstart.

On a wide screen (1024 px and up), the sign-in card also shows a QR code. Scan it with your phone to sign in there instead; the dashboard still moves on by itself. On a phone, the card shows the code large, with one button to open Microsoft sign-in.

Signed in with the wrong account? Click Use a different account and sign in again before you continue.
A code works only until its countdown runs out. "Get a new code" issues a fresh one and cancels the old one, and the card then says "New code issued. Older codes no longer work, so enter this one."
You never type your password into AFK Minecraft. Microsoft signs you in on its own page and gives us a sign-in token for your Minecraft profile. We keep that token encrypted and use it each time the bot joins a server.
Saved accounts
Each account you add becomes one bot on your Bots page, and that bot keeps the account's sign-in. A saved account counts toward your plan whether it is a Microsoft account or an offline name.
| Plan | Saved accounts |
|---|---|
| Free | 1 |
| Starter | 5 |
| Plus | 15 |
| Pro | Unlimited |
On Free, Starter and Plus, the Account step says how many more bots your plan has room for. When your plan is full, the dashboard says "Saved account limit reached"; remove an account to add another, or compare plans on Pricing. The number of bots you can run at the same time is a separate limit.
Use the account on another server
An account is one bot, so you add it only once; adding the same player again is refused with "You already have a bot named …". To play on another server, move the bot instead: on the Bots page, open the ⋯ menu on the bot's row, click Move to server and pick the server.
Remove an account
On the Bots page, open the ⋯ menu on the bot's row, click Delete account and confirm. The same action is on the bot's Config page, under Danger zone.
When the sign-in expires
A saved sign-in can stop working, for example when Microsoft no longer accepts it, or when it hasn't been used for about 90 days. The bot then can't join. The pill next to its name reads "Sign-in needed", its row on the Bots page reads "Needs sign-in", and a banner on the bot's page reads "Auth expired". On a phone, the same message is the first card on the Overview. When a start fails this way, Activity also gets the row "Microsoft login expired — re-link your account", which offers the same fix.


To sign in again:
- Click Sign in again on the banner. The Microsoft sign-in window opens over the page.
- Follow the code steps above with the account the bot uses. If the saved sign-in still works, it shows "Signed in as" at once and no code is needed.
- Click Done, then start the bot.
You can also open the same sign-in any time from Config > Connection: click Change next to Account.
When the sign-in doesn't finish
Each problem replaces the code with a card that says what went wrong and what to click.

- "This code expired": the countdown ran out, or a newer sign-in replaced this one. Nothing was saved. Click Get a new code.
- "This account has no Minecraft: Java Edition profile": the account doesn't own Java Edition, or its Game Pass profile name hasn't been created yet at minecraft.net. Click Sign in with another account.
- "The sign-in was declined": the sign-in was declined on Microsoft's page instead of allowed. Click Get a new code.
- "Xbox Live refused this account": Xbox blocked the account, for example an under-18 account that isn't in a Microsoft family. The card gives Xbox's reason. Click Sign in with another account.
- "Microsoft didn't finish the sign-in": Microsoft or Minecraft services didn't answer. Click Get a new code and try again in a few minutes.
- "Can't reach Microsoft right now": your connection to Microsoft dropped. Click Try again.
- "Sign-in failed": something else went wrong. The card shows the error, or "Try again." Click Try again.
FAQ
Why does it say "This code expired"?
The code ran out before you pressed Allow, or a newer code replaced it. Click Get a new code and finish the sign-in before the countdown ends. Nothing was saved, and only the newest code works.
Why does it say "This account has no Minecraft: Java Edition profile"?
You signed in with a Microsoft account that doesn't own Java Edition; an account with only Bedrock Edition gets this card too. Click Sign in with another account and use the account you play Java with. With Game Pass, open minecraft.net once and create your Java profile name first; on a server that allows offline players, you can pick Offline name instead.
Why does it say "Your browser blocked the sign-in window"?
Your browser stopped the Microsoft window from opening. Click Open Microsoft sign-in again, or allow pop-ups for the dashboard.
My bot shows "Sign-in needed". What do I do?
The saved sign-in no longer works. Click Sign in again on the banner, sign in with the same Microsoft account, then start the bot.
Why did my bot stop?
Open Activity and read the last row. A sign-in problem reads "Microsoft login expired — re-link your account"; open the row and click Re-link account. Anything else, such as a kick, is covered in Auto-reconnect.
Updated