You can download a model, start KoboldCpp, connect SillyTavern, paste in a dungeon-master prompt, and be exploring a haunted keep tonight. That setup can be private, inexpensive to run, and much more customizable than any hosted AI game.
It is also the first ten percent of a durable AI dungeon master.
The difficult part is not getting a model to write fantasy prose. The difficult part is making the campaign remain a game when the chat is long, the rules interact, two players act at once, or a model call stops halfway through a state change.
Why running locally is genuinely attractive
Privacy. With local model weights and a local frontend, prompts and generated text can stay on your machine. You decide what is logged, backed up, or transmitted.
Model control. Choose the model, quantization, context size, sampler, prompt format, and upgrade schedule. If a new fine-tune handles roleplay better, you can switch without waiting for a product team.
Cost control. Once you own suitable hardware, there is no per-turn API bill. Long sessions stop feeling like a meter is running.
Content freedom. You define the setting, house rules, tone, and boundaries. A local stack can support genres and content a purpose-built 5e product does not.
Ownership. Export the data, fork the code, keep a known version, and avoid dependence on one hosted service.
Those are substantial advantages. If privacy is non-negotiable, TableForge is not the better fit. It is a hosted service.
The stack behind a real AI DM
A local inference server solves one layer: turning context into an output. A campaign application needs several more.
| Piece | What it must do | What happens without it |
|---|---|---|
| Model | Generate and stream narration | No AI output |
| Campaign memory | Keep characters, NPCs, places, and quests straight | The story contradicts itself |
| Rules and dice | Settle outcomes with real rolls | The model improvises rulings and numbers |
| Character sheets | Stay current without anyone editing them | Someone becomes the bookkeeper |
| Multiplayer | Let each player act from their own device | One person relays every action through one screen |
| Interface | Show sheets, rolls, combat, and history | Players manage the game through prompt syntax |
None of these is individually impossible. Together they are a software product.
Why prompt engineering stops helping
A strong system prompt can improve tone, pacing, and instruction following. A Lorebook or retrieval system can bring relevant facts back into context. Function calling can let a model request external operations.
The remaining question is authority.
If the model can simply ignore a rule, invent an item, or get the damage wrong, the prompt is a suggestion, not a game.
The difference looks small in a demo. Ask the model to run one goblin and one fighter, and it can keep the numbers straight. Add four characters and a long fight. Now keeping the books is the game.
A practical local setup
For a narration-first experiment, the stack can remain simple:
- Run a model through KoboldCpp or another local server. Our KoboldAI for D&D guide covers what that stack does and does not give a table.
- Connect SillyTavern as the frontend.
- Create a DM character card and a compact campaign Lorebook.
- Roll physical or digital dice outside the model.
- Keep the character sheet in a dedicated tool.
- Write a canonical session summary after every game.
That can be delightful solo play. It is also honest about the division of labor: the model narrates, while you remain rules referee, database administrator, and recovery system.
Going further than that stops being a prompt project and becomes a software project.
Build or play?
Build your own if the stack itself interests you, if you need complete privacy, if you already own capable hardware, or if your campaign requires content and house rules no hosted product supports. The flexibility ceiling is much higher.
Use TableForge if you want to invite players and start. It handles the storytelling, the rules and dice, the character sheets, and multiplayer in the browser. You give up infrastructure control and uploaded homebrew in exchange for an application that is already a game. How a hosted AI dungeon master runs a campaign describes what you would otherwise be rebuilding.
For frontend-specific tradeoffs, read SillyTavern for D&D. For the best raw-chat experience without local infrastructure, compare Claude as a dungeon master.