Welcome to Argus
Argus is a production-grade, event-driven autonomous Minecraft bot built on Node.js and Mineflayer. Engineered for long-term survival, agricultural self-sustainment, base logistics, procedural construction, and tactical defense across Minecraft Java 1.19.4+.
Canonical Architecture
Argus operates through a decoupled event-driven architecture organized into distinct subsystems:
Central router for Minecraft in-game chat, Web terminal, and REST API. Enforces 5-Tier RBAC, sliding rate limit (10 cmds/min), and 100+ NLP intents with Levenshtein spell correction.
Adaptive tick scheduler running at 50ms (20 TPS) during combat, 100ms (10 TPS) during active routines, 500ms (2 TPS) during idle, and 1000ms for web dashboards.
Preemptive priority queue (Survival 100 to Idle 30) governed by an authoritative LockManager with 5-minute timeout protection to prevent deadlocks.
Specialized skills: MineSkill (BFS vein scanner), FarmSkill (16-seed reserve), BuildSkill (50-blk checkpoints), CombatSkill (kiting & shield blocks), and NavigationService.
Installation & Quick Start
Select your preferred runtime environment to deploy Argus in under two minutes:
Connects Argus directly to your local Minecraft Java 1.19.4+ client with Open to LAN or local Paper server.
# 1. Clone the canonical open-source repositorygit clone https://github.com/SP2502/argus-minecraft-bot.gitcd argus# 2. Install dependencies (Node.js 20+ LTS recommended)npm install# 3. Configure environment credentialscp .env.example .env# Edit .env: set MC_HOST=localhost, MC_PORT=25565, OWNER_USERNAME=ShadowPace# 4. Verify automated test suitenpm test# 5. Start bot process (Express API + WebGL dashboard on port 3000)npm start
Environment Configuration
Argus is configured via standard environment variables defined in `.env`. Copy the canonical `.env.example` file and configure your server connection:
1# Canonical Owner Username (Permanent Immutable Tier-4 Owner)2OWNER_USERNAME=ShadowPace34# Minecraft Server Connection (Java Edition 1.19.4+)5MC_HOST=localhost6MC_PORT=255657MC_VERSION=1.19.489# API Server & WebSocket Telemetry Port10API_PORT=30001112# Optional MongoDB Connection String (Falls back automatically to local atomic JSON state)13MONGODB_URI=mongodb://localhost:27017/argus1415# Web Dashboard Authentication16DASHBOARD_PASSWORD=admin17DASHBOARD_SESSION_SECRET=replace_with_a_secure_random_session_secret_key
5-Tier RBAC Security
Every command issued via Minecraft chat, REST API, or Web terminal evaluates the caller's permission tier:
| Tier | Role | Description |
|---|---|---|
| 4 | Owner | Permanent bypass for `ShadowPace` (or OWNER_USERNAME). Cannot be blocked. |
| 3 | Admin | Mining, building, combat hunting, base/mine registration, and user revocation. |
| 2 | Trusted | Work routines: navigation, guarding, crafting, warehouse restocking, sleep cycles. |
| 1 | Guest | Default unauthenticated users: status queries, coordinates, inventory viewing. |
| 0 | Blocked | Locked users: all commands strictly rejected without processing. |