MnesOS
MnesOS is a stateless, event-sourced agentic RPG engine that can operate on a Bring-Your-Own-Key (BYOK) model. It is designed to solve the unreliability of traditional "LLM-only" RPGs by explicitly separating deterministic logic and prose generation/narration from high-fidelity orchestration.
Fun Fact: The name MnesOS (pronounced NESS-O-S) is derived from the Greek goddess of memory and remembrance, "Mnemosyne".
🌟 Key Features & Architecture
-
Deterministic Rules (YARE): All state mutation, math operations, and RNG are handled by the non-Turing complete YARE Agentic Rules Engine (YARE) rather than the LLM.
-
Air-Gapped Narration: MnesOS utilizes a two-node LangGraph structure (Director and Narrator), isolating system mechanics and numbers from the narrative output.
-
Stateless & Branchable: The backend retains no operational memory across network turns, employing a tree-based event source model that natively supports branching timelines.
-
Secure Identity: Uses a zero-knowledge, side-by-side authentication approach where LLM API keys are passed in-flight via PKCE and never stored on the server.
For comprehensive details on the engine's mechanics and design constraints, read the Architecture Design and Core Philosophy documents.
🚀 Getting Started
For Players
MnesOS can be installed as a pre-compiled Python package, bundling the backend and frontend into a single instance:
pip install MnesOS[api]
uvicorn MnesOS.api.app:app --host 127.0.0.1 --port 8000
Refer to the Player Guide for full instructions on setting up your environment, navigating the UI, and connecting your local OpenRouter credentials.
For Cartridge Developers
MnesOS games are distributed as "Cartridges". A cartridge typically contains:
-
yare.yaml: Defines the deterministic state schema and logic. Read the YARE Specification for syntax rules and capabilities. -
bot_lore.md: Markdown-formatted world facts, item definitions, and NPC details used for context retrieval. -
prompt_directives.yaml: Per-role steering instructions for the Director, Narrator, and NPC roles. -
first-message.md: The opening scene of the game.
Check the Cartridge Developer Guide to learn about best practices, including semantic grounding and phase-based combat intention.
For Engine Contributors
MnesOS requires Python 3.12+ and Node.js (v20+ LTS) for full-stack, split-terminal development.
-
Setup & Testing: Learn about
Makefilecommands, continuous integration gating rules, and test runners in the CI/CD & Build Instructions. -
Codebase Structure: Familiarize yourself with the Python/React layers and directory locations in the Directory Map.
-
Interfaces: Review the generated API Reference for backend endpoint details.
📚 Full Documentation Map
Our detailed documentation is organized tightly by domain:
-
Core Architecture: Architecture | Philosophy | YARE Spec | API
-
Guides: Player Guide | Cartridge Dev Guide
-
Development: Directory Map | CI/CD
-
AI Context: AI Knowledge Map
Release files for MnesOS 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mnesos-0.7.1.tar.gz | 1.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mnesos-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.9 MB
Release files / mnesos-0.7.1.tar.gz
| Download URL | mnesos-0.7.1.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17e86f4c840bdbe3056b5c9d760c45ed04d41162ead8121d7dccddab44505618
|
|
BLAKE2b-256 checksum How to use checksums |
c5c0be3767f777964247bf7b7c5b308ef0ed31d942a10572907993999d3de876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logRelease files / mnesos-0.7.1-py3-none-any.whl
| Download URL | mnesos-0.7.1-py3-none-any.whl |
|---|---|
| Size | 171.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
250415dcf39de66acf8a5a93e6b7c78cb82c4154bdd9213116d148ced5c1853d
|
|
BLAKE2b-256 checksum How to use checksums |
2ac1a3e68fb4508f5d234c1735f03fcbc9f56b13f638077e59f9a3c399975a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency log