DungeonGPT
A fantasy adventure run by an AI Dungeon Master. Explore a world built fresh for your campaign, fight, talk and scheme your way through it, and play a story no one else will ever get.
Play DungeonGPT →What you'll do
An AI Dungeon Master
The AI narrates your adventure, plays the characters you meet, and responds to what you choose to do.
A world made for your campaign
Forests, deserts, rivers and mountains, dotted with towns from tiny hamlets to sprawling cities that fill in as you walk through the gates.
Proper dungeon crawling
Turn-based combat with dice rolls in the classic tabletop tradition, plus loot, an inventory, experience and levels, and more than 50 kinds of encounter.
People worth meeting
Characters come with tabletop-style ability scores, one of more than 11 roles, and gear to match their role.
A story that remembers
Your Dungeon Master draws on what happened earlier in the campaign, and the story moves forward as you reach milestones, from finding an item or winning a fight to completing a story goal.
See your adventure
Generate artwork of scenes and characters as you play (demo).
Good to know
- Plays in your browser
- No account needed
- Desktop, tablet or phone
- Sign in with an email link, no password needed
Under the hood
- LLM game master
- A large language model handles narrative, NPCs and player interactions. The offline mode can currently be pointed at other providers and open-source models.
- RAG pipeline
- Retrieval-augmented generation using Cloudflare Workers embeddings and client-side IndexedDB vector storage for long-term game memory.
- LLM non-determinism handling
- Mechanical milestones (items, combat, locations) are verified by the game engine; narrative milestones are judged by the AI with regex-based completion signals.
- Procedural generation
- Seeded terrain with biomes, rivers, towns and mountains, lazy interior generation for towns, and deterministic seeded NPCs with D&D 5e ability scores across 11+ role archetypes.
- Cloudflare AI Workers
- Edge-deployed inference, embeddings, and image generation across 8+ Workers AI models including FLUX, Stable Diffusion XL and Leonardo, with JWT authentication and strict CORS.
- Auth and persistence
- Passwordless magic-link login via Supabase with JWT sessions passed to Workers; player state, quests and world persistence in Supabase Postgres.