Skip to content
Β 
Β 

Latest commit

Β 

History

4,849 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project AIRI

A soul container of AI waifu / virtual characters β€” brought to your desktop as a practical, privacy-first daily driver.

This repository is a maintained downstream fork of moeru-ai/airi, focused on keeping the desktop experience usable, integrating high-value upstream ideas selectively, and shipping heavily tested improvements on top of the original project.

Important

Fork context: This build still credits and depends on the original moeru-ai/airi project for its foundation, vision, and broad architecture. The goal here is not to erase that lineage, but to provide a working fork that continues to land practical desktop-focused improvements while upstream changes are reviewed more selectively.

Why This Fork Exists

This fork exists to keep AIRI moving as a practical daily-driver build. The priority is:

  • keep the desktop path stable and testable
  • selectively forward-port worthwhile upstream work instead of blindly rebasing
  • ship tangible UX, performance, and workflow improvements for real usage

If you want the original project history and broader upstream context, see moeru-ai/airi. If you want the branch actively tuned for usability, this repository is that branch.

For the full list of major features added in this fork (34 systems and counting), see docs/project-major-features-added.md. For detailed sub-features and technical specifics, see docs/content/en/docs/chronicles/feature-report.md. For pending and planned work, see docs/content/en/docs/chronicles/roadmap.md.


Major Features

Character System

  • AIRI Cards β€” import/export (native JSON + SillyTavern PNG), multi-tab editor (Acting, Modules, Artistry, Generation, Proactivity), per-character generation settings and tool gating
  • Multi-Character & Actor Tokens β€” dynamic model switching mid-conversation with in-memory LRU cache to prevent flicker; multiple actors per card
  • AnimaDex Wizard β€” guided multi-step card creator with AI story suggestions, WD14 auto-tagging, and voice auto-assignment
  • Sparkle AI β€” AI-assisted field generation across all card tabs
  • Production Studio β€” layered concept stacking (Base/Additive) for complex character behaviors and visual manifestations
  • Modular Wardrobe β€” base/overlay outfit layers with interactive build mode, integrated into the Control Strip

Stage & Models

  • Model Selector β€” search by title/filename/tags/groups, filter by type, WD14 tagging, dual 2-column and dense 4-column layouts
  • VRM Animation β€” 24 presets, per-character palettes, idle hairball random cycle, ACT-triggered, user VRMA uploads, batch import
  • Live2D β€” hold-to-map expression binding, multi-moc3 zip normalization, tactile hit zones with audio+captions, lhack texture editor
  • MMD / PMX β€” real-time physics, VMD motion support, mouse tracking, auto-blink, morph integration
  • Spine 2D β€” binary format, bone-based tactile interaction, motion audio, auto-detect premultiplied alpha
  • Tactile Mode β€” cross-model interactive touch: Live2D hit zones play audio and show captions; VRM tug-and-pull physics
  • V-Hack & L-Hack β€” unified texture editors for model reskinning across all four model runtimes
  • Scene & Background Manager β€” per-character backgrounds, AI-driven creation, photo mode, portability on card export

Memory & Continuity

  • Two-Layer Memory β€” short-term daily blocks + long-term journal archive, unified retrieval, echo chips, dream state, introspective feedback loops
  • Universe-Based Story Isolation β€” session switching, isolated story universes, clean session creation free of prior memory artifacts
  • Eternal Thread β€” long-term archive view with token budget controls and persona-driven auto-titles

Chat & Desktop

  • Chatbox Redesign β€” three-column workspace with left navigation, right context panel (memory cards + media gallery), session switcher, brain popover
  • Chat UX β€” real-time spoken highlights (CSS Custom Highlight API), mood tags & colored chat bubbles, screenplay formatting, inline editing, draft autosave, timeline management, caption system
  • Desktop Control Strip β€” floating glassmorphic bar, snap-to-edge auto-hide, customizer, decoupled actor stage, touch-gesture dragging
  • Studio Monitor β€” creative diagnostics console for auditing concept stacks, wardrobes, and configurations

AI & Cognition

  • ACT Token Pipeline β€” expanded syntax formats, MMD/Spine integration, LLM emotion keyword clustering, bracket-driven bubble styling (upstream invented the pipeline; this fork broadens it)
  • AI Producer Subsystem β€” Producer Lite (stateless, zero-config suggestions in chatbox + actor stage) and Producer+ (campaign orchestration with intimacy engine)
  • Situational Awareness & Proactivity β€” OS sensors, environment telemetry, activity history, deep context awareness (expression/sticker/scene awareness)
  • Dating Sim System β€” dynamic encounter modes (sandbox vs goal-driven), intimacy engine, real-time overlay

Creative & Vision

  • Artistry β€” ComfyUI, Replicate, NanoBanana, BYOW, workflow templates/presets, "Imagine" mode, automated image journal handoff
  • Vision Support β€” decoupled VLM ("Mind" vs "Senses"), Direct Response vs Forward-to-LLM strategies, WD14 local image tag extractor, model collection scouting
  • Audio Studio β€” virtual proxy TTS provider with Web Audio DSP, UST rules, voice bundling, pitch/rate/EQ effects

Discord Integration

  • Discord Revamp β€” classic TTS pipeline (STTβ†’LLMβ†’TTS), bidirectional Gemini Live audio bridge (audio-to-audio, zero text), slash commands (/status, /vision, /selfie, /timelines, /journalmoment), per-channel isolation, DM access control, queue/steer interaction modes

Platform & Infrastructure

  • MCP Management Hub β€” curated server discovery, per-tool toggles, one-click install, real-time status monitoring
  • Cloud Sync (BYOS) β€” S3/Cloudflare R2/Google AppData, selective sync filtering, conflict triage UI, automated 24-hour backups
  • Onboarding Overhaul β€” Sense Portal easy mode, Google sign-in for BYOS restore, human-centered terminology (Consciousness/Speech/Hearing)
  • Global User Profiles β€” user self-concepts, voice profile store, narrator voice fallback
  • Speech & Provider Integrations β€” Chatterbox, local Whisper/Kokoro, MOSS-TTS-Nano, WebGPU RWKV-7, Deepgram, AWS Polly, Gemini Live/TTS, DeepSeek/GLM-4, Qwen Portal
  • Zero-Trust Privacy β€” no telemetry, no analytics, local-first, opt-in cloud sync
  • Platform Hardening β€” CORS bypass, single instance lock, cross-window IndexedDB sync, native module safeguards, production Electron sandbox

πŸ“· See the Feature Showcase β€” visual walkthroughs with screenshots and key capabilities for the most impactful features. (Also available in the in-app docs under Showcase once you build.)


Download

Heavily inspired by Neuro-sama


Development

For detailed instructions to develop this project, follow CONTRIBUTING.md

Desktop Version (Stage Tamagotchi)

The easiest way to get started β€” no terminal required. Helper scripts build packages and launch the desktop app in one click:

Script Platform What It Does
start_airi.bat Windows Default start. Prompts for port (default 5173), builds packages, launches.
start_airi.sh macOS/Linux Same as above for Unix systems. Logs to airi.log.
start_airi_hiperf.bat Windows Forces high-performance GPU and 8GB Node heap. Use if you hit GPU or memory issues.
start_airi_skipdl.bat Windows Skips asset downloads. Use if you already have models cached locally.
start_airi_customport.bat Windows Forces a specific port (defaults to 5174). Use to recover settings/models from a previous port.
install.bat Windows Full setup from scratch: installs pnpm, project deps, builds packages, then launches.

Or from the terminal:

pnpm i
pnpm dev:tamagotchi

A Nix package for Tamagotchi is included. To run airi with Nix, first make sure to enable flakes, then run:

nix run github:dasilva333/airi

NixOS

Electron requires shared libraries that aren't in standard paths on NixOS. Use the FHS shell defined in flake.nix:

nix develop .#fhs
pnpm dev:tamagotchi

Web Version (Stage Web)

The web version requires two processes running in separate terminals β€” a backend and a frontend.

Terminal 1 β€” Backend:

pnpm dev:server

Terminal 2 β€” Frontend:

pnpm dev:web

Mobile Version (Stage Pocket)

Start the development server for the capacitor:

pnpm dev:pocket:ios <DEVICE_ID_OR_SIMULATOR_NAME>
# Or
CAPACITOR_DEVICE_ID=<DEVICE_ID_OR_SIMULATOR_NAME> pnpm dev:pocket:ios

You can see the list of available devices and simulators by running pnpm exec cap run ios --list.

If you need to connect server channel on pocket in wireless mode, you need to start tamagotchi as root:

sudo pnpm dev:tamagotchi

Then enable secure websocket in tamagotchi settings/system/general.

Documentation Site

pnpm dev:docs

Support of LLM API Providers (powered by xsai)


Acknowledgements


Star History

Star History Chart

About

🌌✨ Self-hosted AI companion. World-first to direct your avatar how to move & first in-browser voice cloning. Tactile touch avatars, multi-character casts, docked Control Strip, local AI (2 LLMs, Pocket/MOSS TTS, stable Whisper), 8-layer character memory, sub-second live voice, magic wand suggestions & 1-click Cloudflare workers.

Resources

Code of conduct

Contributing

Security policy

Stars

58 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages