LibreAI / Writing / gpt-dungeon-master
// writing · SverreNystad/gpt-dungeon-master

gpt-dungeon-master

A dynamic AI dungeon master for your D&D-style adventures.

💎 Hidden gem★ 53 stars⑂ 5 forksCustomupdated 2026-09
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

gpt-dungeon-master is an open-source writing project by SverreNystad (SverreNystad/gpt-dungeon-master on GitHub). It has 53 GitHub stars and 5 forks, is released under the Custom license, and was last updated on GitHub on 2 September 2026.

GitHub stars
53
Forks
5
License
Custom
Last updated on GitHub
2 September 2026
Category
Writing
Listing
Hidden gem — a shorter page for a lesser-known project
Official site
GitHub
// how it works

How it works

  1. Clone the repo

    Get the code on your machine.

  2. Add your API key

    Configure access to a GPT model.

  3. Start a campaign

    Let the AI DM set the scene.

  4. Play

    Talk, roll, and explore; the DM adapts.

// features

Why people love it

AI dungeon master

GPT-driven narration and rulings.

Dynamic stories

Adventures that adapt to your choices.

Image generation

Visuals for scenes and characters.

Voice in and out

Speech-to-text and text-to-speech.

Game knowledge base

Lore-aware responses.

Python codebase

Easy to extend and mod.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and enter the folder.

    git clone https://github.com/SverreNystad/gpt-dungeon-master.git
    cd gpt-dungeon-master
  2. Step 2 — Install deps

    Set up the Python environment.

    pip install -r requirements.txt
  3. Step 3 — Start the game

    Add your API key per the README, then play.

    python main.py
// use cases

What you can build

Advertisement
// faq

Questions, answered

What is GPT Dungeon Master?

A Python project that uses GPT models to run dynamic tabletop adventures, at SverreNystad/gpt-dungeon-master.

Do I need D&D experience?

No. The AI narrates and guides the game.

Does it generate images and voice?

Yes. It includes image generation, STT, and TTS features.

Is it free?

The code is on GitHub under a custom license; check the repo terms.

What model does it need?

A GPT-class model via API; see the README.

// keep exploring

Similar tools

Writing

NeverEndingQuest

An AI dungeon master built on open WOTC creative commons.

★ 75 starsNOASSERTION
View guide →
Easy Install

fitness-coach-rpg

A local file-driven AI fitness coach with RPG progression.

★ 89 starsMIT
View guide →
Video

claude-avatar

3D talking avatar linked to Claude Code CLI - voice conversation with lip-sync

★ 30 starsMIT
View guide →
Writing

NarrativeEngine-P

Self-hostable AI Dungeon Master - run extended TTRPG campaigns with smart memory

★ 101 starsMIT
View guide →
Writing

xiaoma-durex-copywriter

Witty Durex-style copywriting and poster-design skill for Claude Code.

★ 581 starsCustom
View guide →
Writing

writing-helper

Multi-model AI writing assistant with deep style customization.

★ 646 starsMIT
View guide →
// alternatives

Alternatives in Writing

The most-starred other Writing projects in the LibreAI catalogue — the realistic shortlist if gpt-dungeon-master is not the right fit.

Get gpt-dungeon-master

Free and open — grab the source, star the repo, and start creating.