A bot who can play with you powered by local LLM in ollama
438
π§ Minecraft + Local AI Bot (Dockerized)
Github : https://github.com/KOUSSEMON-Aurel/minecraft-ollama-bot/tree/mainβ
This project provides a fully containerized environment that connects a Minecraft server with an AI-powered bot using Node.js, Ollama, and local LLM models. It allows AI agents to join a live Minecraft world, chat with players, make decisions, explore, and perform real in-game actions β all without any manual setup.
β Whatβs Inside the Docker Image
β Node.js AI Bot β runs the bot logic and connects to Minecraft β Ollama LLM Client β sends prompts to a local Ollama server for reasoning β Java (Temurin 21) & Python 3 β required for Minecraft and AI libraries β AWS CLI, Git, unzip, curl, system tools β preinstalled for automation β Minecraft server support (via external container) β Support for custom LLMs like sweaterdog/andy-4, embeddinggemma, etc.
You only need Docker & Docker Compose β no manual installation of Minecraft, Node.js, Java, or Python.
π Features
π€ AI agents that chat, navigate, interact and perform actions in Minecraft
π§ Uses local LLM inference via Ollama (works completely offline)
πΊοΈ Compatible with Vanilla Minecraft 1.20.2
π Optional ViaProxy support for cross-version player compatibility
π¦ Everything packaged inside Docker β easy to deploy on any machine or server
πΎ Persistent volumes for saving Minecraft worlds and Ollama model data
π οΈ Full automation: pull β compose up β bot connects automatically
docker pull aurel126/minecraft-ollama-bot:latest
docker compose up -d
Example docker-compose.yml :
services:
app:
image: aurel126/minecraft-ollama-bot:latest
environment:
- OLLAMA_HOST=http://ollama:11434
depends_on:
ollama:
condition: service_healthy
minecraft:
condition: service_healthy
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
retries: 5
minecraft:
image: itzg/minecraft-server
environment:
EULA: "TRUE"
VERSION: "1.20.2"
ports:
- "25565:25565"
volumes:
- mc_data:/data
healthcheck:
test: ["CMD", "mc-health"]
interval: 10s
retries: 5
volumes:
mc_data:
ollama_data:
βοΈ Included Inside the Image
| Component | Version / Type |
|---|---|
| Node.js | 22 |
| Java | Temurin 21 (OpenJDK) |
| Python | 3.x + pip + boto3 |
| Minecraft Integration | Via mineflayer & RCON |
| LLM Support | Ollama API |
| System Tools | git, unzip, curl, AWS CLI |
| OS Base Image | node:22 (Debian) |
π Requirements
Docker & Docker Compose installed
At least 6 GB RAM recommended (Minecraft + LLM)
GPU optional (faster model inference with Ollama)
Linux, Windows or macOS supported
Content type
Image
Digest
sha256:5a55fb24dβ¦
Size
1.3 GB
Last updated
12 months ago
docker pull aurel126/minecraft-ollama-bot