# airi
**Repository Path**: yan6818/airi
## Basic Information
- **Project Name**: airi
- **Description**: 电子老婆
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-03-05
- **Last Updated**: 2026-05-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Project AIRI
复刻 Neuro-sama,让 AI waifu / 虚拟角色也能来到我们的世界。
[加入 Discord] [试试看] [English] [日本語] [Русский] [Tiếng Việt] [Français] [한국어]
> 深受 [Neuro-sama](https://www.youtube.com/@Neurosama) 启发
> [!WARNING]
> **注意:**
> 我们**没有发行任何**与本项目关联的加密货币或代币,请注意判断资讯并谨慎行事。
> [!NOTE]
>
> 我们有一个专门的组织 [@proj-airi](https://github.com/proj-airi) 用于所有从 Project AIRI 诞生的子项目,快来看看吧!
>
> RAG(检索增强生成)、记忆系统、嵌入式数据库、图标、Live2D 实用工具等等!
> [!TIP]
> 我们在 [Crowdin](https://crowdin.com/project/proj-airi) 上有翻译项目。如果你发现翻译不准确,欢迎在上面参与翻译并贡献修正。
> `
```
你是否梦想过拥有一个赛博生命(赛博 waifu、数字桌宠),或者能与你玩耍和交谈的数字伴侣?
借助现代大型语言模型的力量,像是 [ChatGPT](https://chatgpt.com) 和著名的 [Claude](https://claude.ai) 所能带来的,想要 LLM(大语言模型)和我们角色扮演、聊天已经超简单了,每个人都能上手。而像 [Character.ai(又称 c.ai)](https://character.ai) 和 [JanitorAI](https://janitorai.com/) 这样的平台,以及本地应用如 [SillyTavern(又称酒馆)](https://github.com/SillyTavern/SillyTavern),已经是基于聊天或文字冒险游戏体验的相当不错的解决方案。
> 但是,如何赋予它们玩游戏的能力呢?让它们能看到你正在编写的代码?不仅能一边聊天一边玩游戏,也可以看视频,还能做很多其他事情?
你可能已经知道 [Neuro-sama](https://www.youtube.com/@Neurosama),她目前是最好的能够玩游戏、聊天并与你和参与者(在VTuber社区中)互动的 AI VTuber / 伴侣,有些人也称这种存在为"数字人"。**可惜的是,她并不开源,当她从直播中下线后,你就无法与她互动了**。
因此,这个项目 AIRI,在这里提供了另一种可能性:**让你轻松拥有自己的数字生命、赛博生命,随时随地**。
## 我们发布的 DevLog & 近期更新
- [DevLog @ 2026.01.01](https://airi.moeru.ai/docs/zh-Hans/blog/DevLog-2026.01.01/) — 2026 年 1 月 1 日
- [DevLog @ 2025.10.20](https://airi.moeru.ai/docs/zh-Hans/blog/DevLog-2025.10.20/) — 2025 年 10 月 20 日
- [DevLog @ 2025.08.05](https://airi.moeru.ai/docs/zh-Hans/blog/DevLog-2025.08.05/) — 2025 年 8 月 5 日
- [DevLog @ 2025.08.01](https://airi.moeru.ai/docs/zh-Hans/blog/DevLog-2025.08.01/) — 2025 年 8 月 1 日
- [DevLog @ 2025.07.18](https://airi.moeru.ai/docs/zh-Hans/blog/DevLog-2025.07.18/) — 2025 年 7 月 18 日
- [DreamLog 0x1](https://airi.moeru.ai/docs/zh-Hans/blog/dreamlog-0x1/) — 2025 年 6 月 16 日
- ...更多请见[文档站](https://airi.moeru.ai/docs/zh-Hans/)
## 这个项目有什么特别?
与其他 AI 和 LLM 驱动的 VTuber 开源项目不同,アイリ VTuber 从开始开发的第一天开始就支持多种 Web 技术,涵盖诸如 [WebGPU](https://www.w3.org/TR/webgpu/)、[WebAudio](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)、[Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers)、[WebAssembly](https://webassembly.org/)、[WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) 等已经广泛应用或仍在大量实验的 API。
> [!TIP]
> 担心使用 Web 技术会导致性能下降吗?
>
> 不用担心,浏览器版本旨在展示我们在浏览器和 webview 里能做到什么,但不会完全依赖它。AIRI 的桌面版默认可用 [NVIDIA CUDA](https://developer.nvidia.com/cuda-toolkit) 和 [Apple Metal](https://developer.apple.com/metal/)(多亏了 HuggingFace 与可爱的 [candle](https://github.com/huggingface/candle) 项目),且无需复杂的依赖管理。考虑到取舍,我们在图形、布局、动画和 WIP 插件系统上部分使用了 Web 技术,方便大家集成。
这意味着 **アイリ VTuber 能够在现代浏览器和设备上运行**,甚至能够在移动设备上运行(已经完成了 PWA 支持),这为我们(贡献者们)带来了更多的可能性,让我们得以更进一步构建和扩展 アイリ VTuber 的外部功能,而与此同时也不失配置的灵活性——可以有选择地在不同设备上启用会需要 TCP 连接或其他非 Web 技术的功能,例如连接到 Discord 的语音频道一起开黑,或是和朋友们一起玩 Minecraft(我的世界)、Factorio(异星工厂)。
> [!NOTE]
>
> アイリ VTuber 仍处于早期开发阶段,我们欢迎优秀的开发者加入我们,一起将它变为现实。
>
> 即使不熟悉 Vue.js、TypeScript 和所需的其他开发工具也没关系,我们也欢迎艺术家、设计师、运营策划的加入,你甚至可以成为第一个用 アイリ VTuber 直播的博主。
>
> 如果你使用的是 React、 Svelte,甚至 Solid 也没关系,您可以自己创建一个子目录,添加您希望在 アイリ VTuber 中看到的功能,或者想实验的功能。
>
> 我们非常期待以下领域的朋友加入:
>
> - Live2D 模型师
> - VRM 模型师
> - VRChat 模型设计师
> - 计算机视觉(CV)
> - 强化学习(RL)
> - 语音识别
> - 语音合成
> - ONNX 推理运行时
> - Transformers.js
> - vLLM
> - WebGPU
> - Three.js
> - WebXR (也可以看看我们在 @moeru-ai 组织下另外的[这个项目](https://github.com/moeru-ai/chat))
>
> **如果你已经感兴趣了,为什么不来这里和大家打个招呼呢?[Would like to join part of us to build AIRI?](https://github.com/moeru-ai/airi/discussions/33)**
## 当前进度
目前已经能做到:
- [X] 大脑
- [X] 玩 [Minecraft](https://www.minecraft.net)
- [X] 玩 [Factorio](https://www.factorio.com)(进行中,但已提供 [PoC 和 demo](https://github.com/moeru-ai/airi-factorio))
- [X] 在 [Telegram](https://telegram.org) 聊天
- [X] 在 [Discord](https://discord.com) 聊天
- [ ] 记忆
- [X] 纯浏览器内数据库支持(DuckDB WASM | `pglite`)
- [ ] Alaya 记忆层(施工中)
- [ ] 纯浏览器的本地推理(基于 WebGPU)
- [X] 耳朵
- [X] 浏览器音频输入
- [X] [Discord](https://discord.com) 音频输入
- [X] 客户端语音识别
- [X] 客户端说话检测
- [X] 嘴巴
- [X] [ElevenLabs](https://elevenlabs.io/) 语音合成
- [X] 身体
- [X] VRM 支持
- [X] 控制 VRM 模型
- [X] VRM 模型动画
- [X] 自动眨眼
- [X] 自动看
- [X] 空闲眼睛移动
- [X] Live2D 支持
- [X] 控制 Live2D 模型
- [X] Live2D 模型动画
- [X] 自动眨眼
- [X] 自动看
- [X] 空闲眼睛移动
## 开发
> 开发本项目的详细指南请参阅 [CONTRIBUTING.md](../.github/CONTRIBUTING.md)
> [!NOTE]
> 默认情况下 `pnpm dev` 会启动 Stage Web(浏览器版)的开发服务器;如果你想尝试桌面版,请先阅读 [CONTRIBUTING.md](../.github/CONTRIBUTING.md) 正确完成环境配置。
```shell
pnpm i
pnpm dev
```
### 网页版 (也就是 [airi.moeru.ai](https://airi.moeru.ai) 的版本)
```shell
pnpm dev
```
### 桌面版(也叫拓麻歌子,aka 电子宠物)
```shell
pnpm dev:tamagotchi
```
我们提供了拓麻歌子的 Nix 包。先启用 flakes,然后可以直接运行:
```shell
nix run github:moeru-ai/airi
```
### 文档站
```shell
pnpm dev:docs
```
### 发布
运行 `bumpp` 后,请记得在 `Cargo.toml` 中更新版本号:
```shell
npx bumpp --no-commit --no-tag
```
## 原生支持的 LLM API 服务来源列表(由 [xsai](https://github.com/moeru-ai/xsai) 驱动)
- [X] [AIHubMix (recommended)](https://aihubmix.com/?aff=OOiX)
- [X] [OpenRouter](https://openrouter.ai/)
- [X] [vLLM](https://github.com/vllm-project/vllm)
- [X] [SGLang](https://github.com/sgl-project/sglang)
- [X] [Ollama](https://github.com/ollama/ollama)
- [X] [302.AI (sponsored)](https://share.302.ai/514k2v)
- [X] [OpenAI](https://platform.openai.com/docs/guides/gpt/chat-completions-api)
- [ ] [Azure OpenAI API](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)(欢迎 PR)
- [X] [Anthropic Claude](https://anthropic.com)
- [ ] [AWS Claude](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)(欢迎 PR)
- [X] [深度求索 DeepSeek](https://www.deepseek.com/)
- [X] [通义千问 Qwen](https://help.aliyun.com/document_detail/2400395.html)
- [X] [Google Gemini](https://developers.generativeai.google)
- [X] [xAI](https://x.ai/)
- [X] [Groq](https://wow.groq.com/)
- [X] [Mistral](https://mistral.ai/)
- [X] [Cloudflare Workers AI](https://developers.cloudflare.com/workers-ai/)
- [X] [Together.ai](https://www.together.ai/)
- [X] [Fireworks.ai](https://www.together.ai/)
- [X] [Novita](https://www.novita.ai/)
- [X] [智谱](https://bigmodel.cn)
- [X] [硅基流动](https://cloud.siliconflow.cn/i/rKXmRobW)
- [X] [阶跃星辰](https://platform.stepfun.com/)
- [X] [百川](https://platform.baichuan-ai.com)
- [X] [Minimax](https://api.minimax.chat/)
- [X] [月之暗面](https://platform.moonshot.cn/)
- [X] [魔搭社区](https://modelscope.cn/docs/model-service/API-Inference/intro)
- [X] [Player2](https://player2.game/)
- [X] [腾讯混元](https://cloud.tencent.com/document/product/1729)
- [ ] [讯飞星火](https://www.xfyun.cn/doc/spark/Web.html)
- [ ] [火山引擎(豆包)](https://www.volcengine.com/experience/ark?utm_term=202502dsinvite&ac=DSASUQY5&rc=2QXCA1VI)
## 从这个项目诞生的子项目
- [Awesome AI VTuber](https://github.com/proj-airi/awesome-ai-vtuber):AI VTuber 及相关项目的精选列表
- [`unspeech`](https://github.com/moeru-ai/unspeech):通用的 `/audio/transcriptions` 与 `/audio/speech` 代理,类似 LiteLLM,但适用于任意 ASR 和 TTS
- [`hfup`](https://github.com/moeru-ai/hfup):帮助部署与打包到 HuggingFace Spaces 的工具
- [`xsai-transformers`](https://github.com/moeru-ai/xsai-transformers):面向 [xsAI](https://github.com/moeru-ai/xsai) 的实验性 [🤗 Transformers.js](https://github.com/huggingface/transformers.js) provider
- [WebAI: Realtime Voice Chat](https://github.com/proj-airi/webai-realtime-voice-chat):从零实现 ChatGPT 实时语音(VAD + STT + LLM + TTS)的完整示例
- [`@proj-airi/drizzle-duckdb-wasm`](https://github.com/moeru-ai/airi/tree/main/packages/drizzle-duckdb-wasm/README.md):DuckDB WASM 的 Drizzle ORM 驱动
- [`@proj-airi/duckdb-wasm`](https://github.com/moeru-ai/airi/tree/main/packages/duckdb-wasm/README.md):好用的 `@duckdb/duckdb-wasm` 封装
- [`tauri-plugin-mcp`](https://github.com/moeru-ai/airi/blob/main/crates/tauri-plugin-mcp/README.md):与 MCP servers 交互的 Tauri 插件
- [AIRI Factorio](https://github.com/moeru-ai/airi-factorio): 让 AIRI 玩 Factorio
- [Factorio RCON API](https://github.com/nekomeowww/factorio-rcon-api): Factorio 无头服务器控制台的 RESTful API 封装
- [`autorio`](https://github.com/moeru-ai/airi-factorio/tree/main/packages/autorio): Factorio 自动化库
- [`tstl-plugin-reload-factorio-mod`](https://github.com/moeru-ai/airi-factorio/tree/main/packages/tstl-plugin-reload-factorio-mod): 开发时支持热重载 Factorio 模组
- [Velin](https://github.com/luoling8192/velin):用 Vue SFC 和 Markdown 写可管理的多轮提示词
- [`demodel`](https://github.com/moeru-ai/demodel):轻松加速不同推理引擎/下载器拉取模型与数据集
- [`inventory`](https://github.com/moeru-ai/inventory):集中式模型目录与默认 provider 配置的后端服务
- [MCP Launcher](https://github.com/moeru-ai/mcp-launcher):易用的 MCP 构建器与启动器,就像模型界的 Ollama!
- [🥺 SAD](https://github.com/moeru-ai/sad):自托管与浏览器运行 LLM 的文档与笔记
```mermaid
%%{ init: { 'flowchart': { 'curve': 'catmullRom' } } }%%
flowchart TD
Core("Core")
Unspeech("unspeech")
DBDriver("@proj-airi/drizzle-duckdb-wasm")
MemoryDriver("[WIP] Memory Alaya")
DB1("@proj-airi/duckdb-wasm")
SVRT("@proj-airi/server-runtime")
Memory("Memory")
STT("STT")
Stage("Stage")
StageUI("@proj-airi/stage-ui")
UI("@proj-airi/ui")
subgraph AIRI
DB1 --> DBDriver --> MemoryDriver --> Memory --> Core
UI --> StageUI --> Stage --> Core
Core --> STT
Core --> SVRT
end
subgraph UI_Components
UI --> StageUI
UITransitions("@proj-airi/ui-transitions") --> StageUI
UILoadingScreens("@proj-airi/ui-loading-screens") --> StageUI
FontCJK("@proj-airi/font-cjkfonts-allseto") --> StageUI
FontXiaolai("@proj-airi/font-xiaolai") --> StageUI
end
subgraph Apps
Stage --> StageWeb("@proj-airi/stage-web")
Stage --> StageTamagotchi("@proj-airi/stage-tamagotchi")
Core --> RealtimeAudio("@proj-airi/realtime-audio")
Core --> PromptEngineering("@proj-airi/playground-prompt-engineering")
end
subgraph Server_Components
Core --> ServerSDK("@proj-airi/server-sdk")
ServerShared("@proj-airi/server-shared") --> SVRT
ServerShared --> ServerSDK
end
STT -->|Speaking| Unspeech
SVRT -->|Playing Factorio| F_AGENT
SVRT -->|Playing Minecraft| MC_AGENT
subgraph Factorio_Agent
F_AGENT("Factorio Agent")
F_API("Factorio RCON API")
factorio-server("factorio-server")
F_MOD1("autorio")
F_AGENT --> F_API -.-> factorio-server
F_MOD1 -.-> factorio-server
end
subgraph Minecraft_Agent
MC_AGENT("Minecraft Agent")
Mineflayer("Mineflayer")
minecraft-server("minecraft-server")
MC_AGENT --> Mineflayer -.-> minecraft-server
end
XSAI("xsAI") --> Core
XSAI --> F_AGENT
XSAI --> MC_AGENT
Core --> TauriMCP("@proj-airi/tauri-plugin-mcp")
Memory_PGVector("@proj-airi/memory-pgvector") --> Memory
style Core fill:#f9d4d4,stroke:#333,stroke-width:1px
style AIRI fill:#fcf7f7,stroke:#333,stroke-width:1px
style UI fill:#d4f9d4,stroke:#333,stroke-width:1px
style Stage fill:#d4f9d4,stroke:#333,stroke-width:1px
style UI_Components fill:#d4f9d4,stroke:#333,stroke-width:1px
style Server_Components fill:#d4e6f9,stroke:#333,stroke-width:1px
style Apps fill:#d4d4f9,stroke:#333,stroke-width:1px
style Factorio_Agent fill:#f9d4f2,stroke:#333,stroke-width:1px
style Minecraft_Agent fill:#f9d4f2,stroke:#333,stroke-width:1px
style DBDriver fill:#f9f9d4,stroke:#333,stroke-width:1px
style MemoryDriver fill:#f9f9d4,stroke:#333,stroke-width:1px
style DB1 fill:#f9f9d4,stroke:#333,stroke-width:1px
style Memory fill:#f9f9d4,stroke:#333,stroke-width:1px
style Memory_PGVector fill:#f9f9d4,stroke:#333,stroke-width:1px
```
## 同类项目
### 开源项目
- [kimjammer/Neuro: A recreation of Neuro-Sama originally created in 7 days.](https://github.com/kimjammer/Neuro):非常完善的 Neuro-Sama 实现
- [SugarcaneDefender/z-waif](https://github.com/SugarcaneDefender/z-waif):以游戏、自主代理和提示词工程见长
- [semperai/amica](https://github.com/semperai/amica/):适配 VRM, WebXR
- [elizaOS/eliza](https://github.com/elizaOS/eliza):将 AI 智能体集成至各类系统和 API 中的一个软件工程实践
- [ardha27/AI-Waifu-Vtuber](https://github.com/ardha27/AI-Waifu-Vtuber):Twitch API 集成
- [InsanityLabs/AIVTuber](https://github.com/InsanityLabs/AIVTuber):优秀的 UI/UX 设计
- [IRedDragonICY/vixevia](https://github.com/IRedDragonICY/vixevia)
- [t41372/Open-LLM-VTuber](https://github.com/t41372/Open-LLM-VTuber)
- [PeterH0323/Streamer-Sales](https://github.com/PeterH0323/Streamer-Sales)
### 非开源项目
- https://clips.twitch.tv/WanderingCaringDeerDxCat-Qt55xtiGDSoNmDDr https://www.youtube.com/watch?v=8Giv5mupJNE
- https://clips.twitch.tv/TriangularAthleticBunnySoonerLater-SXpBk1dFso21VcWD
- https://www.youtube.com/@NOWA_Mirai
## 项目状态

## 鸣谢
- [Reka UI](https://github.com/unovue/reka-ui): 文档站的设计,新的 landing page 也基于此,并感谢他们实现了大量 UI 组件。(shadcn-vue 使用 Reka UI 作为 headless 组件,去看看!)
- [pixiv/ChatVRM](https://github.com/pixiv/ChatVRM)
- [josephrocca/ChatVRM-js: A JS conversion/adaptation of parts of the ChatVRM (TypeScript) code for standalone use in OpenCharacters and elsewhere](https://github.com/josephrocca/ChatVRM-js)
- UI 和样式的灵感来源于 [Cookard](https://store.steampowered.com/app/2919650/Cookard/)、[UNBEATABLE](https://store.steampowered.com/app/2240620/UNBEATABLE/)、[Sensei! I like you so much!](https://store.steampowered.com/app/2957700/_/),以及 [Ayame by Mercedes Bazan](https://dribbble.com/shots/22157656-Ayame) 和 [Wish by Mercedes Bazan](https://dribbble.com/shots/24501019-Wish) 的作品
- [mallorbc/whisper_mic](https://github.com/mallorbc/whisper_mic)
- [`xsai`](https://github.com/moeru-ai/xsai):实现了相当数量的包来与 LLM 和模型交互,像 [Vercel AI SDK](https://sdk.vercel.ai/) 但是更小
## Star History
[](https://www.star-history.com/#moeru-ai/airi&Date)