Open app

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 plans
On this page
The Microsoft sign-in card in step 2 of Add a bot. Get a code is checked, Sign in at Microsoft is the current step and Confirm account comes next. Below: an Open Microsoft sign-in button, the code F7KQ2M9X with a copy button and Expires in 15:00, and a QR code marked Scan with your phone. At the foot: Waiting for you to sign in. This page moves on by itself., and Get a new code.

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.

You link an account in the Account step of the Add a bot wizard.

  1. Click New bot in the sidebar, pick the server and click Continue.
  2. Pick Microsoft account in the Account step.
  3. Click Sign in with Microsoft. The dashboard gets a code and shows it with a countdown.
  4. 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.
  5. Sign in with the account that owns Minecraft: Java Edition and press Allow.
  6. 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.
The Microsoft sign-in card after a sign-in: all three steps are checked, it reads Signed in as Kestrel_77, Owns Minecraft: Java Edition and Bot name will be Kestrel_77, with a Use a different account button and a line saying only Microsoft’s sign-in token is kept, encrypted.

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.

Step 2 on a phone, Sign in with Microsoft. Pinecrest SMP with a Change link and The bot joins with 1.21.11, three numbered steps, the code F7KQ2M9X in large type, an Open Microsoft sign-in button, Waiting for sign-in · code expires in 15:00 with Get a new code, and the line We never see your password. Microsoft signs you 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.

PlanSaved accounts
Free1
Starter5
Plus15
ProUnlimited

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.

The top of a bot page whose Microsoft sign-in expired. The pill next to Kestrel_77 reads Sign-in needed, and a banner below reads Auth expired, Your Microsoft sign-in has expired. Sign in again to keep using this bot., with a Sign in again button.
The same bot on a phone: the header reads Kestrel_77, Sign-in needed, with a Start button, and the first Overview card reads Auth expired with the same message and a full-width Sign in again button.

To sign in again:

  1. Click Sign in again on the banner. The Microsoft sign-in window opens over the page.
  2. 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.
  3. 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.

The Microsoft sign-in card when the code ran out: This code expired, Get a new code and sign in again. Nothing was saved., with a Get a new code button.
  • "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

Still stuck?Ask in our Discord or check the FAQ.