A solo session runs ~$0.28 in API usage. Four players for three hours: ~$0.70. No subscription. No platform fees.
docker compose up — that's it.
Game server, database, web client.
Add your Anthropic API key and start your adventure.
git clone https://github.com/t11z/tavern
cd tavern
cp .env.example .env
# Add your ANTHROPIC_API_KEY to .env
docker compose up
Then open localhost:3000 and roll for initiative.
Tavern is an open-source project that brings tabletop RPGs to everyone — with an AI that handles the storytelling while your code handles the rules. Built on the SRD 5.2.1 under the Open Game License, powered by Claude, and designed to be self-hosted on anything from a Raspberry Pi to a cloud server. No accounts, no subscriptions, no platform lock-in. Just your API key and a story waiting to be told.
Tavern is Apache 2.0 licensed and built in the open. Whether you're fixing SRD mechanics, writing world presets, improving the narrator, or building a new client — there's a seat at the table.
Read the Contributing Guide