CraftAgent
by prskid1000
CraftAgent lets Minecraft NPCs read their surroundings and act on decisions made by a large language model, using Ollama, LM Studio or any OpenAI-compatible endpoint.
What it does
Each NPC receives context about nearby blocks, entities, its inventory and line of sight, then sends that information to a configured LLM. The model's reply can contain Minecraft commands, which the NPC executes through Brigadier, so the character can navigate, interact with the world and carry out simple tasks on its own.
Conversations are kept in a persistent history stored in SQLite, so an NPC can refer back to earlier exchanges. NPCs can also write to shared and private notebooks, and send mail to other players or characters. A built-in web dashboard shows NPC activity and refreshes at the configured LLM processing interval.
The mod is client-side only, so players install it and servers do not need it. It is published for Fabric only, with builds for 1.21.8, and its source code is released under the GNU Lesser General Public License v3.0 only, which makes it open source. Fabric API is needed to run it.
Key features
AI-powered NPCs
NPCs use a language model to interpret what they see and decide what to do next.
Autonomous actions
An NPC can execute Minecraft commands to move around and affect the world without manual input.
Conversation memory
Dialogue history is stored in SQLite and remains available between sessions.
Shared and private notebooks
NPCs record locations and plans in shared books visible to others, or in private books only they can read.
Mail between characters
NPCs can send messages to named recipients, including other players, through an in-game mail command.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does CraftAgent need Fabric API?
Does a server need CraftAgent installed?
Which language model backends can CraftAgent use?
What the author says
A Minecraft Fabric mod that brings intelligent AI-powered NPCs to your world. NPCs use Large Language Models (LLMs) to understand context, make decisions, and interact with players. Memory Actions: - /craftagent Steve sharedbook add "Iron Mine" "Iron mine located at coordinates 150, 64, -200" - /craftagent Steve…
Official listing
- Modrinth page
- modrinth.com/mod/craftagent
- Owner
- prskid1000
- Published
- 2026-01-04
- Updated on Modrinth
- 2026-01-06
- Facts verified
- 2026-10-15
