---
name: claude-code-vtuber-avatar
description: Use when turning one illustration into an animated 2D VTuber avatar with a coding agent, then rigging, lip-syncing and streaming it locally.
---
# Claude Code VTuber Avatar
## What this does
Turns a single illustration into an animated 2D mesh avatar that blinks, talks, turns its head, breathes and sways its hair. A coding agent (Claude Code or Codex) prepares the avatar from your image; you fine-tune it in a local editor with a live preview.
## When to use
You have a front-facing, head-and-shoulders PNG with a transparent background and want a streamable 2D avatar.
## How to run it
1. Requires Node.js 22.17+ and Git. Install and start the editor:
```sh
npx create-mesh-avatar-studio
cd mesh-avatar-studio
npm run dev
```
Open the printed URL (e.g. `http://127.0.0.1:5173/`). On Windows prefer `git clone` over a ZIP (Unblock the ZIP before extracting, if shown) and create `projects/` under your own account.
2. Ask the agent to build the avatar — paste this in Claude Code or Codex opened in the repository folder:
> Create an avatar from this image following docs/agent-guide.md: `/path/to/your-image.png`
The agent places the rig on zoomed grids, cuts the image into layers and reviews fixed poses; the project is saved in `projects/<name>/`.
3. One command with Codex (it asks before sending your image and masks to OpenAI):
```sh
npm run create -- /path/to/your-image.png
```
`--yes` agrees in advance; `--no-variants` keeps everything on your machine. Without an illustration:
```sh
npm run create -- --random --prompt "silver short hair, school uniform"
```
4. In the editor choose **Open project** and check it: **Pose test** (turn and tilt the head, close the eyes) and **Lip sync** (mouth style with kana text).
5. Fix what looks wrong by dragging a part's dots on the image; the preview follows immediately. After changing eye/hand outlines or head, hair and bun areas, choose **Save and rebuild layers** (a few seconds).
6. For drawn variants open **Drawn variants**, check **Eyes**, **Mouth** or both, copy the message and paste it into Codex, which draws and imports them. Claude Code cannot generate images; its message prepares the masks and prompts for an image generator. **Expressions** is optional.
7. Choose **Export .mavatar** to share, or **Live** to stream: start the camera, face forward with relaxed eyes and a closed mouth, choose **Calibrate**, then **Copy OBS URL** and add it as an OBS Browser Source (e.g. 1080 × 1080).
## Output
Report the project path under `projects/`, what still looks wrong and which handles to drag, any layer rebuild needed, and the `.mavatar` export or OBS URL for streaming.
Credit: Based on public content by davidiya.co, packaged by Orbit.