An AFK system for Minecraft with a user-friendly web interface. This tool helps you stay AFK in Minecraft servers with various automation features.
- 🖥️ Web-Based Dashboard - Control your AFK bot through an intuitive browser interface
- 👤 Multiple Account Support - Add and switch between Microsoft and Mojang accounts
- 🤖 Anti-AFK Mechanisms:
- Automatic head movement (wiggle) to prevent AFK detection
- Customizable chat pings to stay active on servers
- 🔄 Auto-Reconnection - Automatically reconnects if kicked from the server
- 💬 Chat Integration - Send and receive chat messages through the dashboard
- ⚙️ Customizable Settings:
- Wiggle interval and amplitude adjustments
- Chat ping intervals and messages
- Server connection parameters
- Node.js (v14 or newer recommended)
- A valid Minecraft account (Microsoft or Mojang)
-
Clone this repository:
git clone https://github.com/GustyCube/minecraft-afk.git cd minecraft-afk -
Install dependencies:
npm install
-
Start the application:
node server.js
-
Open your browser and navigate to:
http://localhost:3000
The application creates a config.json file that stores your settings between sessions. Initial default configuration:
{
"accounts": [
{ "username": "you@example.com", "auth": "microsoft" }
],
"selectedAccount": 0,
"host": "your.server.address",
"port": 25565,
"wiggleInterval": 30000,
"wiggleAmplitude": 0.1,
"chatPingEnabled": false,
"chatPingInterval": 300000,
"chatPingMessage": "afk",
"afkRetryInterval": 5000
}-
Add Accounts:
- Enter your Minecraft account email
- Select the authentication type (Microsoft/Mojang)
- Click "Add Account"
-
Configure Settings:
- Set server address and port
- Adjust wiggle interval (in milliseconds) and amplitude
- Enable/disable chat ping and set message
- Click "Save & Restart" to apply changes
-
AFK Commands:
- Send commands via the chat input
- The system recognizes
/afkcommands for re-sending after disconnections
- Mineflayer - Minecraft bot library
- Express - Web server framework
- Socket.io - Real-time communication
This project is available as open source under the terms of the MIT License.
Created by GustyCube
Note: Using automated clients on Minecraft servers may be against some server rules. Use responsibly and only on servers where such tools are permitted.
Last updated: 2025-04-21