Bafchat
by Regular-Baf
Bafchat connects Minecraft chat to a large language model through commands, and the model can run on the player's own computer or local network instead of a paid cloud service.
What it does
Bafchat sends messages from the game to an LLM through the llm command. The model is reached at an API URL set in the Bafmod3Config.json file, found in the config folder of the game directory. The default configuration is pre-configured to work with the local.ai server, and the author states it should also work with other locally hosted APIs such as Kobold and Oobabooga. Because the model runs locally, usage is not charged per request, unlike OpenAI's API, which stops being free once credits run out.
The author recommends the RedPajama-INCITE-Chat-3B-v1 model, which is small enough to process prompts at a reasonable speed on a CPU. The author notes that responses from this model can be weaker than those of larger ones. Players who want a different model or prompting style can change the prompt settings in the same config file, since otherwise the output may be unexpected.
The mod is published for Fabric only, for 1.20 and 1.20.1, and requires Fabric API and Fabric Language Kotlin. It is open source under the GNU General Public License v3.0 only. Either side can run it, and neither needs it. The latest file, 23.06.2 for 1.20.1, was published on 2023-06-14.
Key features
Chat commands for the LLM
Players send prompts and read replies through in-game commands, without leaving the game window.
Configurable API endpoint
The URL of the language model server is set in a JSON file, so the mod can point at any compatible local host.
Local model hosting
The language model runs on a home computer or within a local network, so conversations are not sent to an outside service.
Editable prompting style
The prompt template and model choice live in the config file and can be replaced for different results.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
How it compares
Chat LLM Translation is a client-side only Fabric mod for 1.21 – 1.21.11 under the MIT License, so it works in a different version range and environment. Better Local Chat is a server-side only Fabric mod for 1.21 – 26.3, also under the MIT License and not open source, so players join it without installing anything. Bafchat differs from both by targeting only 1.20 and 1.20.1 and by running on either side.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Bafchat | Fabric | 1.20 – 1.20.1 | Client or server, optional | 2023-06-14 |
| Chat LLM Translation | Fabric | 1.21 – 1.21.11 | Client-side only | 2026-02-18 |
| Better Local Chat | Fabric | 1.21 – 26.3 | Server-side only | 2026-09-20 |
Questions
Does Bafchat need Fabric API to run?
Which game versions does Bafchat support?
Where is the model server address set?
In the catalog
Bafchat is one of 5,392 Social mods on ModsFinder, and one of 4,084 Social mods for Fabric. 34,764 mods support Minecraft 1.20.1.
More from Regular-Baf
Similar mods
What the author says
Also, OpenAI's API doesn't have unlimited free use, so once you run out of credits you have to pay. Bafchat is powered by LLMs hosted on your own computer (or local network), so you can experiment without worry of racking up charges. ## Default Configuration By default, Bafchat is pre-configured to work with…
Official listing
- Modrinth page
- modrinth.com/mod/bafchat
- Owner
- Regular-Baf
- Published
- 2023-06-14
- Updated on Modrinth
- 2023-06-14
- Facts verified
- 2026-10-15
