This package contains art, text, or software code produced using generative AI.
Generative AI was used in the code of this project.
FoundryAI
AI-powered DM assistant module for Foundry VTT v13.
FoundryAI adds an intelligent chat assistant to your Foundry game that can read your journals and actors, answer questions about your world, generate session recaps, roleplay as NPCs, manage combat, control audio, and more — all powered by OpenRouter.
Features
- AI Chat — Sidebar tab and popout window with streaming responses
- RAG (Retrieval-Augmented Generation) — Indexes your journals, actors, and scenes into a local vector store so the AI can search and reference your world content
- 40+ Tools — The AI can search content, manage tokens, run combat, play audio, place spell templates, and much more (see Tools below)
- Actor Roleplay — Start a dedicated chat session where the AI roleplays as a specific actor, using their biography, personality traits, abilities, and equipment
- Session Chat History — Conversations are saved as journal entries in the organized
FoundryAI/folder hierarchy - Session Recaps — Generate polished narrative summaries of your sessions with AI
- Text-to-Speech — Click to hear NPC dialogue read aloud via OpenRouter TTS
- Organized Journal Folders — Automatic
FoundryAI/folder structure: Notes, Chat History, Sessions, Actors - Per-Category Tool Toggles — Enable or disable tool categories (scene, dice, token, combat, audio, chat, compendium, spatial) individually
- OpenRouter Integration — Access any model available on OpenRouter (GPT-4o, Claude, Llama, Mistral, etc.)
- Fully Client-Side — Vector store uses IndexedDB; no external database needed
Requirements
- Foundry VTT v13
- An OpenRouter API key