First run¶
Get SimulateCraft running end-to-end. Most users are on Windows — use run.ps1 / run.cmd. macOS and Linux use run.sh.
What you need¶
- Python 3.11+
- Node.js 18+ (Mineflayer bots)
- Docker Desktop — optional, but easiest way to get Minecraft 1.21.4
- An LLM key — free Groq is the simplest start
Step 1 — Clone the repo¶
Step 2 — Add an API key¶
Copy .env.example to .env and set:
| OS | How |
|---|---|
| Windows | Copy .env.example → .env in File Explorer, then edit in Notepad |
| macOS / Linux | cp .env.example .env then edit |
Other providers: Connect an LLM.
Step 3 — Launch¶
Windows (PowerShell):
Or double-click run.cmd in File Explorer (same thing; avoids execution-policy prompts).
macOS / Linux:
The launcher will:
- Install
uvif needed, then Python packages - Install the Mineflayer bot (
npm) - 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
Step 4 — Open the viewer and join Minecraft¶
- Browser → http://127.0.0.1:8000
- Minecraft Java 1.21.4 → Multiplayer →
localhost
You should see the bot on the map and in-world.
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¶
Same flags on Windows and Unix:
--no-docker
--host / --port
--agents explorer builder
--model groq:openai/gpt-oss-20b
--viewer-port 8000
--help
Examples:
If something fails¶
| Problem | What to try |
|---|---|
| “No LLM key” | Put GROQ_API_KEY in .env (same folder as run.ps1) |
| PowerShell “cannot be loaded” | Use run.cmd, or Set-ExecutionPolicy -Scope CurrentUser RemoteSigned |
| 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