Sign inSign up

aurel126/minecraft-ollama-bot

By aurel126

β€’Updated 12 months ago

A bot who can play with you powered by local LLM in ollama

Image
Internet of things
Machine learning & AI
Web servers
0

438

aurel126/minecraft-ollama-bot repository overview

🧠 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

ComponentVersion / Type
Node.js22
JavaTemurin 21 (OpenJDK)
Python3.x + pip + boto3
Minecraft IntegrationVia mineflayer & RCON
LLM SupportOllama API
System Toolsgit, unzip, curl, AWS CLI
OS Base Imagenode: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

Tag summary

Content type

Image

Digest

sha256:5a55fb24d…

Size

1.3 GB

Last updated

12 months ago

docker pull aurel126/minecraft-ollama-bot