In 2021, various "exclusive" guides advocated for using external platforms like Replit and Heroku to host Node.js scripts as AFK bots to keep free Aternos servers online. These methods, which involved bots automatically bypassing login security to mimic player behavior, violate Aternos’ Terms of Service and lead to server suspension. For more details, visit Aternos Community board.aternos.org/thread/61259-afk-bots/.
An AFK (Away From Keyboard) bot is a script or a separate Minecraft account used to stay logged into a server indefinitely.
pynput library to simulate a keypress every few minutes (like pressing the spacebar or a movement key) to prevent the player from being kicked for idling.Since Aternos cannot detect macros as long as you don't fly/speed hack, a simple loop is your best friend. afk bot aternos 2021 exclusive
If you are on Windows, download AutoHotkey (version 1.1.33). Run this script:
#Persistent SetTimer, PressKey, 60000 ; Presses every 60 seconds return
PressKey: Send, Space ; Jumps once Send, LButton ; Swings arm returnIn 2021, various "exclusive" guides advocated for using
Pro Tip: Minimize Minecraft. Do not alt-tab out of the window if you have "Pause on Lost Focus" enabled. Just press F11 to go fullscreen, then run the script. What is an AFK Bot
Most public AFK bots failed on Aternos because they didn't respect the Aternos proxy timeout (60 seconds of no packet activity). The 2021 exclusive fix involved modifying your bot's options.txt:
# The 2021 Magic Settings
afk.rotation.update=45
afk.swing.delay=5000
afk.random.chat=true
chat.messages=[".", "/ping", "/seed", " "]
network.compression.threshold=512
Note the random chat messages. This was the secret sauce. Aternos’s anti-bot looked for movement only; it ignored chat messages. By sending a blank space or a dot every 4.5 seconds, the bot appeared as a "lurker" rather than a bot.
# 2021 Exclusive Aternos AFK Script for Bedrock
while True:
send_inventory_click() # Simulates checking your hotbar
random_sleep(270, 290) # Randomize interval to avoid detection
This script was considered "exclusive" because it used a cryptographic token generated by the Aternos session ID, something reverse-engineered from Aternos’s API in late 2021.