Get Started
DocsGetting StartedOverview

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+.

Verified Automated Test Suite PassingArgus ships with a built-in Node.js test runner (`npm test`) covering NLP intent tokenization, 5-Tier RBAC authorization, LockManager timeouts, and Mineflayer skill pipelines.

Canonical Architecture

Argus operates through a decoupled event-driven architecture organized into distinct subsystems:

1. UnifiedCommandGateway

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.

2. AIBrain & Adaptive Scheduler

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.

3. TaskManager & LockManager

Preemptive priority queue (Survival 100 to Idle 30) governed by an authoritative LockManager with 5-minute timeout protection to prevent deadlocks.

4. Domain Skills & Shared Services

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.

terminal — local setupbash
# 1. Clone the canonical open-source repository
git clone https://github.com/SP2502/argus-minecraft-bot.git
cd argus
# 2. Install dependencies (Node.js 20+ LTS recommended)
npm install
# 3. Configure environment credentials
cp .env.example .env
# Edit .env: set MC_HOST=localhost, MC_PORT=25565, OWNER_USERNAME=ShadowPace
# 4. Verify automated test suite
npm 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:

.envenv
1# Canonical Owner Username (Permanent Immutable Tier-4 Owner)
2OWNER_USERNAME=ShadowPace
3
4# Minecraft Server Connection (Java Edition 1.19.4+)
5MC_HOST=localhost
6MC_PORT=25565
7MC_VERSION=1.19.4
8
9# API Server & WebSocket Telemetry Port
10API_PORT=3000
11
12# Optional MongoDB Connection String (Falls back automatically to local atomic JSON state)
13MONGODB_URI=mongodb://localhost:27017/argus
14
15# Web Dashboard Authentication
16DASHBOARD_PASSWORD=admin
17DASHBOARD_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:

TierRoleDescription
4OwnerPermanent bypass for `ShadowPace` (or OWNER_USERNAME). Cannot be blocked.
3AdminMining, building, combat hunting, base/mine registration, and user revocation.
2TrustedWork routines: navigation, guarding, crafting, warehouse restocking, sleep cycles.
1GuestDefault unauthenticated users: status queries, coordinates, inventory viewing.
0BlockedLocked users: all commands strictly rejected without processing.