Satchel Hamilton
← Projects
Games

Tavern: AI teammates for Warcraft 3

Free, offline AI teammates and opponents for Warcraft 3. They chat, take voice commands, plan strategy and trash-talk, all on a local LLM with no cloud.

Source ↗

Tavern fills a 4v4 lobby without six more humans. Its AI players listen to your voice, react to the map, plan at the strategic level and talk trash, good-naturedly. The AI does the talking and the strategy. The existing AMAI mod handles the unit control it is already good at. Everything runs offline once installed.

What's technically interesting

One constraint shapes the whole design. Warcraft 3's scripting sandbox can't open sockets, make HTTP requests or touch the filesystem in the normal way, so the LLM can't live inside the map.

It runs outside instead, as a companion daemon in Python with one persona per AI player, talking to a local model through Ollama. The daemon reaches the game through files. A bridge written in TypeScript, compiled to Lua and baked into a modified map, reads directives and writes out game state. Voice is a separate front end: whisper.cpp for speech in, Piper for speech out.

A --fake-llm mode runs the whole persona loop with no model, which keeps it testable offline.

Status

Early. The toolchain is installed and the daemon runs the persona loop against a real local model: in-character chat, valid directives and spoken lines all work. Before building anything else I checked whether an 8B model on my hardware could play an aggressive Orc convincingly. It could, so the project went ahead. Persona tuning is what's left of the first milestones.