Anyworld, a self-hosted multiplayer text RPG where a local LLM is the Dungeon Master
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| Hey everyone, I’ve been working on a game called Anyworld. It’s a browser-based multiplayer (single player also supported) text adventure inspired by the early days of AI Dungeon, especially its browser-based free version AI Dungeon 2. The setup is pretty straightforward: one person hosts the server and runs the model via llama.cpp (OpenAI or other cloud APIs are also supported, and great for non-English play!), and your friends join through a browser link. The host sets the scene and the goals, players type out their actions, and the LLM acts as the DM to resolve the chaos and drive the story. Admittedly the host requires some technical skills with Python, and possibly with networking (opening routes to the hosted game via VPN, port forwarding etc.). I'll work on this as well as the development continues. Using Docker was suggested in another subreddit, so I'll definitely consider that, as it would allow including both the llama.cpp backend, recommended model and configurations etc., in addition to the game itself. Instead of pasting the entire repo documentation, here are the main features right now: How it plays
DM Tools & Hidden Mechanics
Under the Hood & Memory
It’s still a work in progress. Right now, a server only runs one game at a time, and if you restart the server, the live session is lost (it generates HTML/JSONL transcripts, but they aren't loadable save states yet). The overall story quality is also going to heavily depend on which model you use and how you tweak the settings. Suggested model: During development, I used llama.cpp and Gemma 4-26B-A4B Q4 with a context size of 128k and found it to be more than an adequate backend for functioning as the DM. Even the speeds are fast enough with my RTX 5070 Ti 16 GB that round resolutions take only 5 or so seconds. The specific model I used and can recommend: https://huggingface.co/EZForever/gemma-4-26B-A4B-it-qat-uncensored-heretic-UDmerge-GGUF (the model was great at following instructions and remembering plot points even with longer contexts) Recommended parameters for Gemma 4 models: Of course, feel free to try your own models! The repo contains a benchmark file that tries to measure how well the running model follows the game's requests. AI use disclosure: I used Alibaba Cloud's Qwen 3.8 27b and OpenAI's GPT-5.6 Luna and GPT-6 Astra models to help develop the game. How to run: Read INSTALL.md to set up, configure and run the game. README.md contains some details on how the game functions. I'll post a link to the repository in the comments. I'll post the link to the repository in the comments. Some gameplay in Finnish with OpenAI's Luna: The game is MIT licensed, so open source all the way. Forking or collaborating is encouraged. I'd love to hear some feedback, and I hope someone finds the game fun to play! [link] [comments] |
More from r/LocalLLaMA
-
POV 8GB VRAM + 16GB RAM folks checking locallama everyday:
Oct 3
-
Yes bots we get it, Strata is good now please stop
Oct 3
-
Aleph-Alpha/Kolibri-1 · Hugging Face - 78B parameters. 3.46B active. Up to 1M tokens of context - Apache 2.0
Oct 3
-
I tried building a small RAG search node for Qwen3.8 27B using a fake AliExpress Mini PC... and Intel sent me back to 2018.
Oct 3
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.