How the AI works

AI transparency

The Dungeon Trainer pairs AI narration with deterministic game code. This page explains, in plain language, which is responsible for what, how the dice stay fair, what the AI remembers, whose models run it, and where its limits are. The Privacy Policy and Terms of Service remain the governing documents.

What the AI does

Large language models handle the fiction: the Dungeon Master’s narration, non-player characters, interpreting what your character attempts, and deciding what happens in the story within the SRD 5.2 rules. AI also powers the preparation and practice tools: Scry’s scene forecasts, the Coach’s feedback on your play, character-concept generation, and the optional scene art and read-aloud audio.

It also writes Chronicles, the story Beats, cast, and world of a Chronicle; the generator tools’ monsters, NPCs, items, spells, and locations; the campaigns and one-shots the forge builds to your premise; and the AI-drawn campaign maps. The ambient music tracks were generated with an AI music model ahead of time; each mood is a fixed set of those tracks, and the table shares the mood while each listener’s player shuffles its tracks. Some posts on the blog are drafted with AI.

What deterministic code does

Our own code, not a model, computes these numbers: dice rolls, ability checks, damage, character generation math, validation of rules outcomes, and your plan’s usage limits. Leveling is shared: when a new level calls for choices, such as a subclass, an ability score increase, or new spells, the model proposes them, and our code checks each choice against the rules and computes the new level and hit points. Your campaign’s canonical state (characters, hit points, quests, inventory) lives in a database the model can only read and write through defined, validated operations. The AI narrates; the code keeps score.

Fair dice

Every roll draws from the platform’s cryptographic random number generator, the same class of randomness used for security keys. Rolls are unpredictable and cannot be steered or reproduced, by us or by the model; the AI is never a source of randomness, and every outcome you see traces to a real roll made in code.

Fairness means honest odds, not good luck: a fair d20 still rolls a 1 five percent of the time, and a bad night of dice is still a bad night of dice. More detail: A fair dice roller for RPGs you can trust.

Memory and context

The Dungeon Master keeps three kinds of memory: the current game state (the canonical facts of your campaign), a rolling summary of the story so far, and a searchable store of specific past details it can recall when they become relevant again. Each campaign’s memory is isolated: nothing carries over between campaigns.

Recall is selective by design: the model works from a compact view of your campaign, not a full replay of every past turn, so a minor detail from long ago can occasionally be missed even though the canonical game state is never lost.

Providers and your choice of model

Hosted play runs on models from established AI labs, currently Anthropic and OpenAI, each matched to the job it does best. Higher plan tiers unlock stronger models. The current lineup as of October 2026 (specific models can change without notice as better ones ship):

  • Dungeon Master and play: on the Free plan, OpenAI GPT-5.4 mini keeps pace across a long session and reliably calls for dice rolls, with Anthropic Claude (Haiku 4.5) as its fallback; paid plans play on Anthropic Claude (Sonnet 5.5) by default, and the host can pick another model the plan allows, including Opus 5.5 on Premium, or their own key.
  • Character building, leveling, and Scry’s forecasts: Anthropic Claude (Sonnet 5.5) on paid plans, Claude (Haiku 4.5) on Free.
  • The Coach’s rubric-grounded feedback: Anthropic Claude (Opus 5.5) on Premium, Sonnet 5.5 on Standard, and Haiku 4.5 on Free.
  • Scene art and portraits: OpenAI image generation.
  • Read-aloud voice: OpenAI text-to-speech.
  • Ambient music: Stability AI’s Stable Audio, used once ahead of time to make the tracks, not during play.

You can also run on your own models: add your own Anthropic, OpenAI, or Google API key, or connect your own Ollama-compatible model endpoint, and supported text generation runs there instead. An endpoint must be reachable from our servers over the public internet. Your keys are stored encrypted and used only for model calls in your own play and in campaigns you host: in a campaign the AI runs, the host’s key or endpoint runs every player’s turns.

Playing without the AI

The AI Dungeon Master is a choice, not a requirement. When you create a campaign you decide who runs the game, and picking yourself takes the model out of the DM’s chair: you narrate and adjudicate, and the app is a virtual table that rolls the dice in code, tracks character sheets, hit points, conditions, rests, death saves, XP, and combat rounds, and keeps one shared transcript for everyone at the table. Those controls run through the same engine as everything else, with no model call behind them and no draw on your AI allowance. The one exception is leveling up: when a new level calls for choices, the model proposes them, as described above, and that draws on the daily level-up allowance. The host can also hand the chair over mid-campaign, in either direction, without losing any play state.

In a campaign you run, the AI appears only in roles you add on purpose: a companion character or a single named NPC, each scoped to what that character would plausibly know rather than to your notes. The NPC speaks when you invoke it; a companion also takes its own turns in combat. Define none and no AI voice takes part in your story. A new campaign you run starts with a blank map unless you choose an AI-drawn one, and it gets no automatic recap of the last session. Multiplayer, friends, presence, and chat work the same either way.

One automated check still applies. Narration, scene, NPC, and quest text the Dungeon Master writes, and the actions players type, are screened by OpenAI’s moderation service before they are saved, the same safety check an AI-run campaign uses. It writes nothing into your game and does not count against your AI allowance. If the moderation service is unavailable, text is saved without that check rather than stopping play.

Privacy and data handling

To produce responses, your prompts and the relevant play context are sent to the AI provider serving your session. Text you write for play and the creation tools is also screened by OpenAI’s moderation service before it is saved or used, including in a campaign a person runs; if that service is unavailable, the text goes ahead without the check. Providers process that data on our behalf under their own terms and are not permitted to use it for unrelated purposes. Your campaign data is protected by per-user database access controls, and product analytics run only with your consent and never contain your play content. The full detail, including every subprocessor, lives in the Privacy Policy.

Known limitations

AI output is generated automatically and can be inaccurate, inconsistent, or unexpected; it is not professional advice. The deterministic layer bounds the mechanics, but narration can still err, a rules interpretation can be imperfect, and the product is in beta, so behavior changes as it improves and play data may occasionally be reset between updates. Review anything generated before you rely on it.

Reporting a problem

If the AI behaves incorrectly, or you have a privacy or security concern, use the in-app feedback control (bottom-right when signed in) or email support@thedungeontrainer.com. Reports go straight to the team.