First run¶
Get SimulateCraft running end-to-end. Most users are on Windows — use the PowerShell one-liner or run.ps1 / run.cmd. macOS and Linux use the curl one-liner or run.sh.
What you need (before the one-liner)¶
Install these yourself first — the installer will not install them for you:
| Tool | Why | Where |
|---|---|---|
| Git | Clones the repo | git-scm.com |
| Node.js 18+ | Mineflayer bots | nodejs.org |
| Docker Desktop | Bundled Minecraft 1.21.4 (optional if you pass --no-docker) |
docker.com |
| LLM provider | Agent brains | OpenRouter, 9Router, or your own OpenAI-compatible API |
uv (Python runner) is installed automatically if missing.
Prefer OpenRouter, 9Router, or your own API. Groq works for a smoke test but rate-limits quickly under agent load.
Fastest path — one command¶
Windows (PowerShell)¶
macOS / Linux¶
What the installer does¶
- Checks for Git + Node 18+
- Installs
uvif needed - Clones into
~/SimulateCraft(or%USERPROFILE%\SimulateCrafton Windows) - Creates
.envfrom.env.example - Stops with next steps if no LLM key is set yet (blank
OPENROUTER_API_KEY=does not count) - Otherwise launches
run.ps1/run.sh
Optional: set a key in the same shell before installing:
# Windows
$env:OPENROUTER_API_KEY = "sk-or-..."
irm https://raw.githubusercontent.com/DanyalAbbas/SimulateCraft/main/install.ps1 | iex
# macOS / Linux
OPENROUTER_API_KEY=sk-or-... curl -fsSL https://raw.githubusercontent.com/DanyalAbbas/SimulateCraft/main/install.sh | bash
Clone only (no launch): SIMULATECRAFT_SKIP_RUN=1 (Unix) or $env:SIMULATECRAFT_SKIP_RUN = "1" (Windows).
Manual install¶
1. Clone¶
2. Add an LLM provider¶
Copy .env.example to .env and set one of:
or for 9Router / your own API:
OPENAI_BASE_URL=http://localhost:20128/v1
OPENAI_API_KEY=...
SIMULATECRAFT_MODEL=oc/space-bunny-free
| OS | How |
|---|---|
| Windows | Copy .env.example → .env in File Explorer, then edit in Notepad |
| macOS / Linux | cp .env.example .env then edit |
More detail: Connect an LLM.
3. Launch¶
Windows (PowerShell):
Or double-click run.cmd in File Explorer.
macOS / Linux:
The launcher will:
- Install
uvif needed, then Python packages - Install the Mineflayer bot (
npm) - Ask whether to import a Minecraft world or generate a random one
- Start a local offline Minecraft server (Docker), unless you pass
--no-docker - Wait until the world is ready
- Start the explorer agent and the web viewer
4. Open the viewer and join Minecraft¶
- Browser → http://127.0.0.1:8000
- Minecraft Java 1.21.4 → Multiplayer →
localhost
Using your own Minecraft server¶
Bundled Docker pins 1.21.4 and offline mode (easy for bots). Online-mode servers need proper auth.
Useful flags¶
--no-docker
--world import|random|keep
--import-world /path/to/world.zip
--seed 12345
--map-radius 1024
--host / --port
--agents explorer builder
--model openrouter:meta-llama/llama-3.1-8b-instruct:free
--viewer-port 8000
--help
If something fails¶
| Problem | What to try |
|---|---|
| “No LLM provider” | Set OPENROUTER_API_KEY (or 9Router vars) in .env — blank values do not count |
Missing git / node |
Install Git and Node 18+ before the one-liner |
| PowerShell “cannot be loaded” | Use run.cmd, or Set-ExecutionPolicy -Scope CurrentUser RemoteSigned |
install.ps1 download 503 |
Use the jsDelivr one-liner above |
| Bot never joins | Wait for world ready: docker compose logs -f → look for Done ( |
| Docker missing | Install Docker Desktop, or use --no-docker with your own server |
| Wrong MC version | Use 1.21.4, or pass --mc-version to match your server |
| Viewer blank | Keep the terminal open; open http://127.0.0.1:8000 |
Next: Connect an LLM · Use the live viewer