Quick Start
This page explains how to install dependencies and run/build Live2D Copilot in a local environment.
Environment requirements
⚠️
package.jsondoes not declareengines; the following versions are assumptions for a typical dev environment. Use the actual runnable environment as the source of truth (requires manual review).
- Node.js: An LTS version is recommended (18 or higher).
- Package manager:
pnpm(the repository usespnpm-lock.yaml). - Rust toolchain: Rust must be installed (required by Tauri 2; a stable toolchain is recommended).
- Platform: Target platform is desktop. Currently, some of the Rust-side capabilities (mouse passthrough, gaze tracking, window screenshot) are mainly implemented on Windows (
#[cfg(windows)]), so cross-platform support is limited. - Tauri system dependencies: Install the build dependencies for your platform per the Tauri 2 official documentation.
Install dependencies
Run in the repository root:
pnpm installDevelopment run
In dev mode, tauri dev first starts the Vite frontend via beforeDevCommand, then brings up the Tauri window:
pnpm tauri devNote: In
package.json, thedevscript isvite(frontend only), and thetauriscript istauri. For full desktop development,pnpm tauri devis recommended.
Build
pnpm tauri buildBefore building, pnpm build (i.e., vue-tsc --noEmit && vite build) is run via beforeBuildCommand for type checking and frontend bundling.
Frontend build (standalone)
pnpm buildKey configuration
- Tauri configuration:
src-tauri/tauri.conf.json(product nameLive2D Copilot, identifiercom.ai-zen.live2d-copilot; the window is created dynamically on the Rust side). - Permissions declaration:
src-tauri/capabilities/default.json(core:default,opener:default). - Default model:
public/models/Mao/("虹色Mao"). - TTS voice list:
public/voices.json(available Edge-TTS voices, read and cached by the frontend).
Configuration before use
On first use, you need to configure the AI service in the Settings window:
- Choose the model provider (DeepSeek / ChatGLM) in the Settings window.
- Fill in the corresponding API Key.
- Select the LLM model.
- Select a TTS voice (default
zh-CN-XiaoyiNeural). - Click "Save Settings".
The settings are written to settings.json under the app config directory via the Tauri Command (save_setting), and are immediately synced to the desktop pet window through the settings-updated event.
Related pages
- Product Overview: Product positioning and core features.
- Features & Architecture: Tech stack and data flow.
- Development Progress: Current version and roadmap.