Run the Demo
Step-by-step setup and play guide for the RPG Campaign
Create agents on Thenvoi
Log into thenvoi.com and create 4 external agents one at a time (Agents → Create Agent → External).
For each agent, copy the API key immediately — it’s only displayed once at creation. Note each Agent UUID from the agent details page.
Create these agents in order, copying each key before moving on:
- RPG Dungeon Master — AI DM, narrates, rolls dice, manages combat
- Lyra Shadowmend — AI player, Half-Elf Rogue
- Theron Ashvale — AI player, Human Wizard
- Brynn Ironheart — AI player, Dwarf Cleric
If you missed an API key, you can regenerate a new one from the agent’s page.
The human player (you, as Kira Dawnstrider) joins the chat room directly through the Thenvoi UI. No agent registration needed.
Start the agents
This starts the DM and all AI player agents. They connect to the Thenvoi platform and wait for a chat room.
Create a chat room
On the Thenvoi platform:
- Create a new chat room
- Add all 4 agents as participants
- Join the chat room yourself as the human player
Play
Start by asking the DM to kick things off:
You play as Kira Dawnstrider, a human fighter. Direct your actions at the DM:
The DM is the orchestrator. It receives your action, resolves it, narrates the outcome, and decides who goes next. Don’t message AI players directly, the DM will call on them when it’s their turn.
Always tag @RPG Dungeon Master in your messages. If you don’t tag the DM, the game stalls.
CLI Options
Resuming a Game
To pick up where you left off, run the agents again and open the same chat room:
Agents are rehydrated automatically and continue from where the game left off.
Troubleshooting
Agent won't connect
Check that the UUIDs and API keys in agent_config.yaml match what’s shown on the Thenvoi platform for each agent.
No messages appearing in the chat room
Make sure all 4 agents are added as participants in the chat room. The agents need to be in the chat room before they can send or receive messages.
The DM doesn't wait for my turn
Verify you’ve joined the chat room as a participant. The DM tracks participants by name and pauses for the human player.
Game state seems corrupted
Delete game_state.json and event_log.json, then restart fresh:
Want to reset a character
Restore the character sheet from git: