Living Worlds.
Emergent NPCs.
Infinite RPG Roleplay.
An open-source engine combining LLM roleplay with D&D character sheets, persistent memory, AI-powered TTS voices, dynamic image generation, and an AI Game Master that orchestrates every encounter. Offline-first and self-hosted by default, but you can also bring your own API keys from any text, image, or voice provider — mix and match as you like.
NPCs are generated, not hand-picked.
Aikami procedurally generates every NPC — archetype, personality, D&D stats, lorebook backstory, opening dialogue, and a dynamic expression pack. AI-generated character portraits, situational scene images, and background music adapt in real-time to the unfolding narrative. (This preview uses mock data to simulate what the AI pipeline produces — in the actual engine, all fields are generated by local LLMs.)
Select an archetype above or type a custom prompt to generate an NPC.
Roleplay with consequences.
Aikami's AI Game Master orchestrates every encounter. It determines when an attribute check is required, when a battle should begin, and how NPCs react — all driven by procedurally generated D&D character sheets. Every NPC has ability scores, skill proficiencies, and HP. These stats aren't cosmetic. An NPC with high Wisdom will see through your bluffs. One with low Charisma stumbles over their words. The AI GM uses these stats to drive every interaction, making each encounter feel grounded in tabletop mechanics.
Dynamic D&D Character Sheet
Every NPC in Aikami is assigned a full set of D&D ability scores — Strength, Dexterity, Constitution, Intelligence, Wisdom, and Charisma — generated procedurally based on their archetype. A tavern owner might have high Wisdom (Insight) and Charisma (Persuasion), while a goblin scout has high Dexterity (Stealth) and low Intelligence.
These scores feed directly into the AI's decision-making — and your own character sheet matters just as much. When you try to intimidate an NPC, the AI GM evaluates both your Charisma modifier and their Wisdom score against the context. A high-Wisdom character sees through bluffs. A low-Charisma character stumbles and reveals more than they intended. Every interaction is a two-way negotiation between your stats and theirs.
The AI GM orchestrates everything.It decides when an attribute check is required, when a battle should begin, what music fits the mood, and which NPC expression or situational image to generate. When you try to persuade a guard, the engine evaluates your approach against that specific NPC's Wisdom score, Charisma modifier, current mood, faction standing, and memory of past interactions. Every outcome is computed, not pre-written.
NPCs who remember your betrayal.
Aikami NPCs don't reset when you leave. Every memory, relationship, and choice persists in a dual-track cognitive system — short-term context buffers for immediate interactions, and long-term world state that evolves across sessions.
Force-Directed Memory Graph
Every NPC maintains a dynamic memory graph connecting places, people, and events. Steal from a merchant and that node connects to "distrust." Save a village and your reputation propagates through the network. The AI engine continuously rewires connections based on player actions.
Storylet Branching Engine
Quests and dialogue aren't pre-written — they're procedurally generated from narrative metrics. Each choice branches the story along axes like Courage vs. Corruption and Mercy vs. Vengeance. Two players in the same starting village can end up in completely different worlds.
Dynamic Faction System
Factions are procedurally generated, not pre-written. Each playthrough produces its own faction landscape with unique beliefs, alliances, and rivalries. Your reputation shifts with every action — and factions talk to each other. Help one group and their rivals will know.
AI GM Combat
Describe the action you want to take and the AI Game Master determines if it's feasible, which attribute check to roll, and how the world responds. No rigid skill menus or pre-scripted combos — just write what your character does and the AI GM handles the mechanics behind the scenes.
Every NPC thinks, remembers, and adapts.
Aikami's AI engine maintains dual-track memory for every agent: a fast, volatile short-term buffer for immediate context, and a persistent long-term world state that evolves with every interaction.
Volatile context buffer — recent dialog, active quests, combat state. Resets on session end.
Persistent knowledge — world lore, faction relations, player choices. Survives across sessions.
Click any node to inspect the agent's current state.
Every choice branches the story.
Aikami's AI generates rich, fluid narratives where player decisions ripple through the world organically. There are no fixed branches — every story evolves dynamically, colored by narrative metrics that shift with each choice.
From browser to native desktop. Same world, same NPCs.
Aikami is architected as a sync-first simulation engine powered by bitECS for high-performance entity-component-system game logic. The same world state streams in real-time across the Web Client and Tauri v2 desktop app. Turso (libSQL) provides offline-first local persistence with optional Firebase sync for cloud saves and multi-device continuity. Every character is rendered with dynamically generated LPC (Liberated Pixel Cup) sprites, assembled procedurally from layered assets.
Web Client
Svelte 5 + PixiJS v8
Play instantly in any modern browser. Full 2D rendering with WebGL, WebSocket sync, and offline PWA support. Auto-generated LPC character sprites rendered in real-time.
Desktop
Tauri v2
Native desktop experience with Rust-powered performance. File system access, system tray, and multi-window support across Windows, macOS, and Linux.
Aikami dynamically generates every NPC's visual appearance using the LPC (Liberated Pixel Cup) sprite system. Each character is assembled from modular layers — head, body, hair, torso, legs, and feet — all chosen procedurally to match the NPC's generated archetype, faction, and backstory. Expression packs auto-update based on conversation context (happy, sad, angry, surprised) and situational scene images are generated on demand by the AI pipeline. Background music shifts with mood. NPCs speak with unique AI-generated voices. ComfyUI and Kokoro TTS run locally by default, but you can swap in any supported provider — ElevenLabs, Stability AI, DALL·E, and more. No static sprite sheets. Every character is unique.
Player moves, dialogue, combat
State sync layer
Svelte 5
Tauri v2
All clients share a single world state. Play on web, continue on desktop — same world, same NPCs.
Deploy anywhere. Own everything.
Aikami is built from the ground up for self-hosting and offline-first operation. Everything runs locally by default. Saves, assets, and world state can sync to Firebase for multi-device continuity, but it's completely optional — your world works perfectly offline with no internet connection. No vendor lock-in. No subscriptions. Just your hardware, your rules.
How to Run Aikami
Run everything locally on your machine. No internet needed after initial setup. ComfyUI for image generation, Kokoro for TTS, Ollama for LLM — all bundled.
git clone https://github.com/BearlySleeping/aikami
cd aikami
docker compose up aikami-client
# Open http://localhost:5173Client only. Bring your own LLM/TTS/image endpoints or use BYOK.
git clone https://github.com/BearlySleeping/aikami
cd aikami
docker compose up aikami
# Includes: client, ComfyUI, Kokoro TTS,
# Ollama, Firebase emulators
# Everything runs locally. No internet.ComfyUI (default image gen) and Kokoro (default TTS) included. Swap for any supported provider via Settings — ElevenLabs, Stability AI, and more.
Native desktop experience via Tauri v2. Run local LLM providers like Ollama or vLLM on your machine, or bring your own API keys for cloud providers.
# Download from GitHub Releases
# https://github.com/BearlySleeping/aikami/releases
# Or build from source
git clone https://github.com/BearlySleeping/aikami.git
cd aikami
bun install
bun tauri build
# Supports: Windows, macOS, Linux
# Local LLM via Ollama/vLLM or BYOK to any providerRust-powered. File system access, system tray, multi-window. Windows, macOS, Linux.
Play directly in the browser. No download, no setup — just bring your own API keys for Anthropic, OpenAI, or any OpenAI-compatible endpoint.
# Launch the web client
# https://aikami.bearlysleeping.com
# Configure your API keys in Settings:
# - Anthropic (Claude)
# - OpenAI (GPT-4, GPT-4o)
# - Google Gemini
# - Any OpenAI-compatible endpoint
# TTS providers: ElevenLabs, OpenAI TTS,
# VOICEVOX, Fish Speech
# Image providers: DALL-E, Stability AI,
# NovelAI, fal.aiZero install. Mix and match providers per NPC role. Your keys, your data.
Zero Setup — Coming Soon
Fully managed AI infrastructure hosted on Cloud Run. A pre-trained LLM fine-tuned specifically for Aikami handles text generation, with managed TTS and image generation services running alongside. No setup, no GPUs, no Docker. Just open your browser and play. Pay only for what you use.
Built on Modern Open-Source Foundation
Frontend
Svelte 5
+ PixiJS v8
Backend
Firestack
+ Data Connect
AI Runtime
Ollama
+ vLLM + BYOK
Voice & Image
Kokoro
+ ComfyUI
Desktop
Tauri v2
Rust-powered
Join the guild. Build the realm.
Aikami is free, open-source, and self-hosted. Clone the repo, spin up local AI, and start building your world. No waitlist. No subscription. Just code and creativity.