Overview
Hyperscape integrates ElizaOS to enable AI agents that play the game autonomously. Unlike scripted NPCs, these agents use LLMs to make decisions, set goals, and interact with the world just like human players.ElizaOS 1.7.0: Hyperscape is compatible with ElizaOS 1.7.0+ with backwards-compatible shims. Supports OpenAI, Anthropic, OpenRouter, and Ollama (local) LLM providers.
Starting AI Agents
- Game server on port 5555
- Client on port 3333
- ElizaOS runtime on port 4001
- ElizaOS dashboard on port 4000
http://localhost:4000 to monitor and control agents.
The dev:ai command uses concurrently to run both services with colored output for easier debugging.
LLM Autonomy System
Agents use a THINKING+ACTION format that separates reasoning from action selection, making behavior transparent and debuggable.
THINKING+ACTION Format
Agents respond with structured reasoning:- Transparent decision-making (see why the agent chose an action)
- Better debugging (identify flawed reasoning)
- Foundation for multi-step planning
Autonomous Features
Target Locking - Agents lock onto combat targets for 30 seconds, preventing target switching mid-fight. Force Flee - If health drops below 25% with threats nearby, agents automatically flee (bypasses LLM). Combat Readiness - Agents assess if they’re prepared for combat (weapon, food, health) before engaging. Goal Templates - Structured beginner flows guide agents through OSRS-style progression. Guardrails - Hard and soft constraints prevent dangerous decisions.Agent Capabilities
Available Actions
AI agents have 23 actions across 9 categories:World State Access (Providers)
Agents query world state via 10 providers:- possibilitiesProvider - Analyzes inventory and nearby entities to determine what’s craftable, gatherable, and trainable
- goalTemplatesProvider - Provides scored goal templates for OSRS beginner flows (woodcutting, mining, combat, etc.)
- guardrailsProvider - Hard/soft constraints and active warnings to prevent dangerous decisions
Agent Architecture
Plugin Components
Theplugin-hyperscape package contains:
| Component | Purpose |
|---|---|
| Actions | Combat, skills, movement, inventory |
| Providers | World state, entity info, stats |
| Evaluators | Goal progress, threat assessment |
| Handlers | Event responses |
Agent Dashboard
The Agent Dashboard provides real-time monitoring and control of AI agents:Dashboard Features
Summary Card:- Online status and uptime
- Combat level and total level
- Current goal with progress bar
- Session statistics
- Current goal with progress tracking
- Time estimates and XP rates
- Stop/Resume goal controls
- Recent goals history
- Manual goal selection
- All 12 skills with levels and XP
- Session XP gains tracking
- Progress bars for each skill
- Live updates when viewport active
- Recent actions feed
- Session stats (kills, deaths, gold, items)
- Event icons and timestamps
- Current zone name
- Coordinates (X, Y, Z)
- Nearby points of interest
- Distance to landmarks
- One-click commands (woodcutting, mining, fishing, combat)
- Pick up nearby items
- Go to bank
- Stop/Idle controls
Stop/Resume Goal Control
The dashboard includes robust goal control: Stop Button:- Immediately halts current goal
- Cancels movement path
- Sets agent to paused state
- Blocks automatic goal selection
- Shows “Goals Paused” indicator
- Resume Auto button to resume autonomous behavior
- Set Goal button for manual goal selection
- Chat commands still work (agent returns to idle after)
- Resumes autonomous goal selection
- Agent picks new goals based on context
The pause state persists across reconnections and is synchronized between the dashboard, server, and agent plugin.
Spectator Mode
Watch AI agents play in real-time:- Start with
bun run dev:elizaos - Open localhost:3333
- Select an agent to spectate
- Observe decision-making in action
Configuration
The plugin validates configuration using Zod:Environment Variables
ElizaOS 1.7.0: Added Ollama plugin support for local LLM inference. Configure
OLLAMA_SERVER_URL to use local models.Agent Actions Reference
Combat Actions
attackMob(mobId): Engage enemysetAttackStyle(style): Choose XP focusflee(): Disengage and run
Skill Actions
chopTree(treeId): WoodcuttingcatchFish(spotId): FishinglightFire(logId): FiremakingcookFood(fishId, fireId): Cooking
Movement Actions
moveTo(x, y, z): Navigate to coordinatesmoveToEntity(entityId): Follow entitymoveToArea(areaName): Travel to zone
Inventory Actions
equipItem(itemId): Wear equipmentdropItem(itemId): Drop from inventory (supports “drop all”)pickupItem(itemId): Pick up items from grounduseItem(itemId): Consume or use
Goal Management
setGoal(description): Set autonomous goalnavigateTo(location): Navigate to named locationidle(): Wait and observe
Goal Pause State: The dashboard Stop button pauses autonomous goal selection. When paused, SET_GOAL is blocked and the agent stays idle until resumed or given a manual command.