minecraft-agent-harness: run LLM agents in Minecraft with persistent sessions and sandboxes
yc-software's open-source minecraft-agent-harness lets LLM agents play Minecraft through Mineflayer, walking, mining, building and fighting like regular players. It supports Claude, GPT, Gemini and OpenRouter, keeps sessions across restarts, gives each agent…
Why it matters
It is a cheap, fun testbed for long-running and multi-agent experiments.
What happened
1 min readyc-software's open-source minecraft-agent-harness lets LLM agents play Minecraft through Mineflayer, walking, mining, building and fighting like regular players. It supports Claude, GPT, Gemini and OpenRouter, keeps sessions across restarts, gives each agent a shell in Docker, E2B or a local folder, and has been run with 50 agents on one server.
Our analysis
Minecraft agents aren't new (Voyager and Mindcraft came first, and some code comes from Mindcraft), but persistent sessions, teams and sandboxes make this more complete. Note the default: without E2B or Docker the shell runs locally as you, so choose Docker or --sandbox none.