Set up Mindcraft with any model

Mindcraft is an LLM-driven Minecraft bot built on Mineflayer. These steps follow the official README.

Requirements

Install and run

  1. Download the latest release or clone the repo.
  2. Rename keys.example.json to keys.json and fill in the key for your provider (you only need one).
  3. Run npm install in the folder.
  4. Start a world and Open to LAN on port 55916.
  5. Run node main.js.

Switching models

Set the model field in a profile such as andy.json, e.g. "model": "gemini-2.5-pro". Each provider needs its key in keys.json:

Providerkeys.json variable
OpenAIOPENAI_API_KEY
Google GeminiGEMINI_API_KEY
AnthropicANTHROPIC_API_KEY
xAI (Grok)XAI_API_KEY
DeepSeekDEEPSEEK_API_KEY
OpenRouterOPENROUTER_API_KEY
Groq (not Grok)GROQCLOUD_API_KEY
Ollama (local)none

Free local option

Install Ollama, then pull Mindcraft's fine-tuned model:

ollama pull sweaterdog/andy-4:micro-q8_0 && ollama pull embeddinggemma

Safety

Code writing is off by default. The README warns not to connect to public servers with allow_insecure_coding enabled, because LLM-written code runs on your computer.

Joining an online server

Set host/port in settings.js. You need an official Microsoft/Minecraft account for the bot, and the profile name must exactly match the Minecraft account name.

Sources: Mindcraft README · Mindcraft FAQ

Weekly agent digest

New Minecraft bots, releases, guides and model results. One short email a week, free.

Unsubscribe anytime. See privacy.