QuestForge: AI Dungeon Master logo

QuestForge: AI Dungeon Master

Free

A text-based TTRPG engine running on Grok as the dungeon master. Tracks state across thousands of messages with sarcastic, ruthless gameplay.

GamesFreeFree tier
#grok#dungeon-master#ttrpg#text-adventure#roleplay
Inputs: textOutputs: text
Type
Saas
Company
Rod Trent

About QuestForge: AI Dungeon Master

QuestForge is a persistent, text-based TTRPG engine that runs 100% locally on your laptop, powered by Grok-4 as the dungeon master. It automatically saves campaigns to disk, tracks state across thousands of messages, and includes real dice rolls, full character sheets, inventory, spell slots, conditions, gold, and time-of-day tracking. Compatible with D&D 5e, Cyberpunk RED, Call of Cthulhu, Pathfinder, and any homebrew system. The open-source app is built with Flask and simple HTML/CSS/JS, can run on a Raspberry Pi, and is completely private except for API calls to Grok. It supports co-op play by opening multiple browser tabs and copy-pasting actions, with Grok tracking each character separately.

Key Features

Persistent campaign memory that auto-saves to disk
Tracks state across thousands of messages
Real dice rolls (not fake)
Full character sheets, inventory, spell slots, conditions, gold, time-of-day tracking
Beautiful chat interface inspired by Discord and Foundry VTT
Compatible with D&D 5e, Cyberpunk RED, Call of Cthulhu, Pathfinder, and any homebrew system
Completely private – your story never leaves your machine except API calls to Grok
Open-source, runs on a Raspberry Pi
Supports co-op play via multiple browser tabs
Sarcastic, ruthless AI DM personality from Grok

Pros & Cons

Pros
  • Persistent memory across thousands of messages – never forgets NPCs or events
  • Real dice rolls ensure fair and transparent gameplay
  • Open-source and free software – no subscription required
  • Runs locally on your machine, keeping campaign data private
  • Supports multiple RPG systems out of the box
  • Easy to set up in under 2 minutes with a Flask app
  • Can run on low-resource devices like a Raspberry Pi
  • Engaging and sarcastic AI personality from Grok adds flavor
Cons
  • Requires a Grok xAI API key (free tier available but limited; paid usage may incur costs)
  • No graphical VTT features – purely text-based interface
  • Co-op requires manual copy-pasting between browser tabs, not native multiplayer
  • Relies on Grok API – tool functionality may be affected if API changes or is discontinued
  • Requires basic technical setup (Python, pip, environment variables)

Best For

Playing D&D 5e solo or with friends without a human DMRunning any TTRPG campaign (Cyberpunk, Call of Cthulhu, Pathfinder, homebrew)Co-op storytelling with two browser tabsTesting AI capabilities for persistent RPGs and state trackingGaming without needing to coordinate schedules with a group

Alternatives to QuestForge: AI Dungeon Master

FAQ

Why use Grok instead of a local model like Llama or MythoMax?
Grok tracks state perfectly across thousands of messages, is sarcastic when appropriate, ruthless when deserved, and genuinely funny. Local models tested (Llama 3.2 8B, MythoMax, Dolphin-Mixtral) had issues with memory, lying about HP, or breaking character. Grok feels like a human DM who read the entire rulebook.
How do I get started with QuestForge?
Get a free/paid xAI API key from https://x.ai/api, clone the repository (or copy the two files: app.py and index.html), create a .env file with XAI_API_KEY and GROK_MODEL=grok-4, install Flask and dependencies (pip install flask python-dotenv requests), then run 'python app.py' and open http://localhost:5000. Type 'Start a new adventure' to begin.
Is QuestForge really free?
The tool itself is free and open-source. You do need your own Grok xAI API key, which has a free tier. The entire code is provided at no cost.
Can I play with friends?
Yes, co-op is supported by opening two browser tabs and copy-pasting actions. Grok tracks both characters separately, but it is not native multiplayer.