Skip to content
プロジェクト

概要

オープンソースの3D AIコンパニオン兼、透明なデスクトップペットです。ローカルで3Dキャラクターとの交流を楽しめます。デスクトップ上のVRM、MMD、GLBモデルに対応し、音声、リップシンク、モーション、ダンス、カメラ、タロット、ローカルでの記憶機能を備えています。中国語、英語、日本語、韓国語に対応しています。

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
+5
7日間
+40
15日間
+98
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

xiaoke.ai

An open-source, local-first 3D AI companion and transparent desktop pet.

Open Xiaokeai to see the official character turn and bow before she enters the live 3D stage. Talk by voice, watch a video together, or keep her on your desktop as a transparent pet. The November 29 release updates the welcome sequence, stage, and chat panel. It includes the finalized PMX character with new facial textures and adjustable 3D lighting, plus a character journal where you can revisit recent events and plans.

English · 简体中文 · Website · Download · Discord

License: Apache 2.0 Platform UI & Voice

Why xiaoke.ai?

  • A companion you can see and hear. Real-time 3D performance combines speech, lip-sync, expressions, motion, dance, and cinematic camera work—not just a text chat window.
  • Local-first and private by design. Chats, long-term memory, keepsakes, and local model weights stay on your computer. Screen-companion video is processed locally; only the cloud services you configure receive their respective requests.
  • More than conversation. Watch movies, short videos, and listen to music together; draw tarot cards, save memories, launch installed games, or interact with a livestream audience.
  • Your character, your setup. Import VRM, MMD/PMX, GLB, or Live2D/Cubism (.model3.json) models, use SillyTavern character cards and lorebooks, and choose local or cloud chat and speech providers.
  • Free and open source. No membership or usage cap. The source is Apache 2.0; third-party models, motions, music, and voices retain their own licenses.

The interface and speech languages can be configured independently: Simplified Chinese, English, Japanese, Korean, and Russian. Russian includes optional offline ASR/TTS; models are downloaded on demand and are not included in Git or the B bundle.

Meet the new stage

The official Xiaokeai character on the November 29 release stage

The live 3D stage in the November 29 release, featuring the official Xiaokeai character included in the Windows packs.

The official Xiaokeai character looking down in the new welcome sequence The new stage with the chat panel open
Welcome sequence with Xiaokeai’s bow and shy glance Scene chat in the library after closing
Shared-life activities in Our Space The character journal for Xiaokeai
Our Space for meals, outings, and furnishing a home The journal toggle for the current character

Character lighting and stage settings

The new graphics settings with a live view of the official Xiaokeai character

Adjust the stage brightness, character lighting, or stage surface under Settings → Picture while keeping the live character in view.

Download Windows

Latest Windows release · November 29, 2026 · 20261129103904. A, B, and Online use the same version. The release ships with the finalized official Xiaokeai character, with a new welcome sequence and stage entrance, framing that stays in place when chat opens, updated facial expressions, adjustable 3D lighting, and a character life journal. It also fixes provider and speech settings issues.

Online all-in-one pack

Download Online from GitHub or Hugging Face. Extract it on its own, run xiaoke-ai.exe, and configure your Volcengine Ark key under Settings → AI Chat. Browser speech recognition and Edge speech synthesis are the defaults. If browser recognition reports a network error, switch to Volcengine speech recognition and enter its credentials.

Local A/B packs

For local speech, embeddings, or vision models, download both A and B with version 20261129103904.

Use 7-Zip to extract A and B under the same parent directory, then run xiaoke-ai.exe from A. Configure your provider and model under Settings → AI Chat. The packs include Chromium and Python and run on Windows 10 or later. An NVIDIA GPU is recommended for local Qwen TTS. Edge TTS is also available.

xiaoke/
  xiaoke-ai-agent-A-20261129103904/
    xiaoke-ai.exe
  xiaoke-ai-agent-B-20261129103904/
    xiaoke-content.json

Previous releases · Version history

Features

Chat, voice, and memory

  • 38 chat-service presets plus custom endpoints: OpenAI, Anthropic, Google Gemini, DeepSeek, Qwen, Doubao, Kimi, GLM, MiniMax, OpenRouter, and more. Local options include Ollama, vLLM, SGLang, and Player2; any OpenAI-compatible endpoint can also be configured manually.
  • Layered personas: Separate identity, temporary role-play, time, scene, memory, and performance directions. Import SillyTavern v1/v2/v3 and AICC character cards, export v2 cards, and use keyword-triggered lorebooks and an optional user persona.
  • Long-term memory: Extract preferences, relationships, and promises with mem0, store embeddings locally in Qdrant, and recall them in later conversations. Choose automatic routing or one of five explicit embedding backends: local MiniLM, Doubao, Qwen, OpenAI, or Gemini. Memory can be inspected and deleted.
  • Conversation controls: Review transcripts, rewrite the previous reply, rewind to an earlier message, or perform the same line again with a different emotion without another model request.
  • Full-duplex interaction: Listen while speaking, choose per-sentence interruption or queueing, and continue after silence. Silero VAD and WebRTC AEC3 help distinguish your voice from the companion's playback.
  • Five UI and speech languages: Configure Simplified Chinese, English, Japanese, Korean, and Russian independently for the interface and conversation.

Speech recognition — 7 ASR options

Engine Runs Model / notes
SenseVoice-Small Local, CPU Automatic Chinese, English, Japanese, Korean, and Cantonese recognition; approximately 230 MB
GigaAM-v3 Local, CPU Offline Russian recognition through sherpa-onnx; approximately 232 MB on first preparation
Alibaba Cloud Model Studio Cloud qwen3-asr-flash
Volcengine Doubao ASR 2.0 Cloud volc.seedasr.sauc.duration
OpenAI Cloud gpt-transcribe
ElevenLabs Cloud scribe_v2
Google Gemini Cloud gemini-2.5-flash audio understanding
Browser Web Speech Cloud / browser Chrome and Edge

Speech synthesis — 9 TTS options, plus off

Local and cloud engines provide 300+ listed preset voices. Lip-sync follows real audio amplitude; browser system speech does not provide true lip-sync.

Engine Runs Model / voices
Qwen3-TTS Local, GPU, streaming 0.6B or 1.7B models, 9 shared voices, optional style instructions on 1.7B
TeraTTSv2 Optional local GPU, streaming Russian and English voices; downloaded from Speech settings, not bundled
Browser system speech Local Voices installed on the device
Xiaomi MiMo Cloud, streaming mimo-v2.5-tts, 9 preset voices with emotion directions
Volcengine Doubao TTS 2.0 Cloud seed-tts-2.0, 100 voices
Alibaba Cloud CosyVoice Cloud, streaming CosyVoice-v3-Flash, 88 voices
OpenAI TTS Cloud gpt-4o-mini-tts, 13 voices
ElevenLabs Cloud, streaming Flash v2.5, 52 official preset voices
Google Gemini TTS Cloud, streaming PCM 30 voices
edge-tts Cloud, streaming Microsoft neural voices, 11 built-in choices

3D stage and performance

  • Three model formats: Hot-swap VRM, MMD/PMX, and GLB characters, with MMD cloth physics for hair, skirts, and ribbons.
  • Optional Live2D module: Enable it in Settings and import a Cubism package containing .model3.json; native motions, physics, gaze, touch, outfits, parameters, and presets are supported. When disabled, the Live2D engine is not loaded and the 3D path is unchanged.
  • Stage appearance: Choose from 20 image scenes, six solid-color backgrounds, or a custom image; adjust rendering resolution, lighting, physics, music volume, and the stage base.
  • Performed replies: Streamed emotion, action, dance, camera, and stance tags drive expressions and movement in real time. A local fallback keeps the performance path usable without a chat API key.
  • Camera review: Approve shot × camera × stance × motion combinations before they enter a performance to reduce clipping and mismatched movement.
  • Motion capture: Use a webcam or a local video; MediaPipe Holistic tracks body, hands, and face in a Worker.
  • Transparent desktop pet: Float the character above other windows, click through empty space, drag and resize her, and remember her size, position, display, and current character.

Companionship and play

  • Watch together: A separate local MiniCPM-V 4.7 1B process understands continuous video with real timestamps. Watch movies, short videos, and gameplay, or listen to music together with scene context and subtitle timelines. The picture and sound stay on your computer.
  • Omni test interface: Try MiniCPM-o 4.5 text, speech, and image input through the ModelBest cloud or a self-hosted gateway, separately from the main stage pipeline.
  • Touch reactions: Double-tap different body areas on the stage or desktop pet for context-aware poses and responses, with familiarity tracked separately from long-term memory.
  • Tarot and scenes: Nine interactive spreads, 80 original Chinese-style card faces, code-controlled deals and orientations, and 22 built-in scene cards.
  • Keepsakes and creativity: Save stage screenshots and short clips by character, generate drawings with Volcengine, and ask for weather, prices, or news.
  • Phantom Tavern: A four-seat bluffing card game with model-driven opponents, scoring, four art styles, cinematic judgments, and non-blocking voiced play.
  • Games and code: Launch installed WeGame, Steam, or Epic games by natural language; follow activity from Cursor, Codex, Claude Code, Tongyi Lingma, Trae, and Baidu Comate, then react on the stage.
  • Livestreams: Receive Douyin and Bilibili chat, follows, and gifts with aggregation, deduplication, bounded queues, and playback receipts. Test the full pipeline in a local rehearsal lab with scripted viewers and fault injection.
  • Local coins and wishes: Earn coins through idle time and chat, then use the wishing pool and its animated props and coin rain. No account or upload is required.

Assets and customization

  • Asset hub: Import ZIP/RAR archives or individual models, motions, cameras, and audio; repair mojibake filenames and classify assets automatically. Convert VPD poses to VMD, or use optional aplaybox search and download.
  • Character controls: Bind a model, persona, voice, emotion-to-morph mapping, greeting, and idle-motion preferences to each character. Twenty-seven Chinese persona templates are included.
  • Modular experience: Toggle memory, scenes, rewriting, keepsakes, tarot, Phantom Tavern, Code companion, touch, Harness, and livestream features independently. Watch-together and livestream integrations are off by default.
  • Branding: Configure a shared logo and color theme for the app, window, tray, and installer.

Watch-together does not click or operate your computer, and its local vision process exits when watching stops or the app closes. See the complete feature list for all 15 feature categories.

Run from Source

Prerequisites: Windows, Node.js 18+, and Python 3.11+.

git clone https://github.com/liupig/xiaokeai.git
cd xiaokeai

Open two Command Prompt terminals. Alternatively, run companion/start.bat once to install dependencies and open both servers.

Terminal 1 — backend (http://127.0.0.1:8600)

cd companion\backend
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
set NO_PROXY=*
set PYTHONUNBUFFERED=1
.venv\Scripts\python -m uvicorn app.main:app --host 127.0.0.1 --port 8600

Terminal 2 — frontend (http://localhost:5175)

cd companion\frontend
npm install --legacy-peer-deps
npm run dev

Open http://localhost:5175 and configure your chat provider in Settings. The initial stage is empty until you import a model. Offline speech weights are downloaded when you prepare the corresponding model.

Do not start the backend with --reload or --workers; press Ctrl+C in both terminals to stop. Configuration, the performance-tag protocol, PowerShell commands, and troubleshooting are in the developer guide (Chinese).

Repository Layout

Path Description
companion/ Main product: Vue frontend, FastAPI backend, and Electron desktop shell
companion/docs/ Product design, personas, feature status, tarot, and development notes
companion-3d/ Early standalone 3D rendering and motion prototype
music-api/ Independent music-search research API

The repository contains source code, scene backgrounds, stage textures, and original tarot artwork. It does not include third-party 3D models, motions, music, speech weights, databases, or API keys; see the README.txt files under companion/assets/ for asset placement.

Tech Stack

  • Frontend: Vue 3, TypeScript, Vite, Pinia, Naive UI, Three.js, three-vrm, three-stdlib, MediaPipe Holistic
  • Backend: Python 3.11, FastAPI, SQLModel/SQLite, mem0, Qdrant, sherpa-onnx, SenseVoice, Qwen3-TTS
  • Desktop: Electron, PyInstaller
  • Integrations: OpenAI-compatible chat APIs, edge-tts, DashScope CosyVoice, MiMo-V2.5-TTS, MiniCPM-V

Documentation

Document Contents
Developer guide Configuration, speech providers, tag protocol, and troubleshooting (Chinese)
Windows packaging Build a double-click desktop distribution (Chinese)
Complete feature list All 15 categories of currently implemented features
Persona guide Character cards and layered persona design (Chinese)
Prompt stack How system prompts are assembled (Chinese)
Tarot design Tarot interaction, framing, and stage integration (Chinese)

Community

Players, developers, character-card authors, MMD/VRM creators, streamers, and curious newcomers are all welcome. Share characters and stages, compare notes, suggest features, or build with us.

Acknowledgements

Read the full acknowledgements

Thanks to the aplaybox community and every asset author, Reze MiPo for the motion-capture approach, and the teams behind Three.js, VRM, MMD, MediaPipe, Vue, FastAPI, Electron, mem0, Qdrant, Qwen, SenseVoice, and the other open-source projects that make xiaoke.ai possible.

Character-card compatibility builds on the open ecosystem established by SillyTavern and the community Character Card V2 specification. The full document also acknowledges Xiaoice, Doubao, the One-Euro Filter authors, the Rider–Waite tradition, live-interaction references, model and speech providers, and the many communities whose work made this project possible.

License

Source code and project-generated tarot/scene art are licensed under Apache License 2.0. The xiaoke.ai / 小可爱 names and marks are not transferred; third-party models, motions, cameras, music, voices, character cards, and other assets remain under their authors' terms. See NOTICE before redistributing or using assets commercially.

Cloud LLM, ASR, and TTS providers process the text or audio sent to them under their own privacy policies. Tarot is for psychological reflection and entertainment, not professional advice.

Search keywords / 搜索关键词

Open-source 3D AI companion, 3D AI companion, local AI companion, AI companion, AI waifu, waifu, awesome-ai, virtual companion, transparent desktop pet, VRM chatbot, MMD desktop pet, AI VTuber, AI movie companion, watch a movie together, watch videos together, listen to music together; 开源 3D AI 伴侣、AI 伴侣、本地 AI 伴侣、开源 3D 陪玩、虚拟陪玩、本地桌宠、透明桌宠、VRM 聊天、MMD 陪玩、AI 虚拟主播、陪看电影、陪刷视频、陪听音乐、视觉互动。

関連プロジェクトを探す

読み込み中…