whatisgithub

What is miku-on-desktop?

thunguo/miku-on-desktop — explained in plain English

Analysis updated 2026-05-18

16PythonAudience · developerComplexity · 4/5Setup · moderate

In one sentence

A Hatsune Miku desktop pet powered by an AI agent that can chat, see your screen, control your mouse and keyboard, and remember past sessions.

Mindmap

mindmap
  root((repo))
    What it does
      Floating desktop pet character
      AI agent chat loop
      Screenshot and input control
      Cross session memory
    Tech stack
      Python
      PySide6
      uv package manager
      MCP tools
    Use cases
      Chat with an AI desktop companion
      Delegate tasks to Claude Code or Codex
      Automate mouse and keyboard actions
      Run as a kiosk on Raspberry Pi
    Audience
      Hobbyist developers
      AI agent enthusiasts
    Providers
      Anthropic
      OpenAI
      Gemini
      Qwen

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run an animated AI desktop pet that chats and reacts to what is on your screen.

USE CASE 2

Delegate coding tasks from the desktop pet to Claude Code or Codex.

USE CASE 3

Let the agent control your mouse and keyboard for automated actions.

USE CASE 4

Deploy the pet as a kiosk display on a Raspberry Pi with an attached screen.

What is it built with?

PythonPySide6uvMCP

How does it compare?

thunguo/miku-on-desktop920linjerry-stack/capital-studioadya84/ha-world-cup-2026
Stars161616
LanguagePythonPythonPython
Setup difficultymoderateeasyeasy
Complexity4/53/52/5
Audiencedeveloperresearchergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python 3.12+, the uv package manager, and at least one AI provider API key entered through the settings panel before it can chat.

The README does not state a license for this project.

So what is it?

Miku On Desktop is a Hatsune Miku themed desktop pet powered by an AI agent. It shows up as a transparent floating window sprite that sits on your desktop, can be dragged around, and wanders on its own. Behind that character sits an AI agent loop that can chat with you, look at your screenshots, control your mouse and keyboard, call MCP tools, and hand off tasks to external command line agents like Claude Code or Codex. It also keeps a long term memory system that carries across sessions. The project supports routing between multiple AI providers, including Anthropic, OpenAI, Gemini, and Qwen through an OpenAI compatible interface, scheduling requests across four capability tiers called mini, fast, medium, and heavy, with configurable fallback between providers. The pet itself is built with PySide6 as a borderless transparent floating window that supports dragging, wandering by itself, and switching between multiple character art sets, with chat bubbles that stream their output and can show yes or no confirmation prompts. Built in tools cover things like analyzing screenshots, operating the mouse and keyboard, expressing emotional reactions, and reading and writing memory. It can act as an MCP host, connecting to local or remote MCP servers, and it supports Skills, which are packages written as Markdown files with YAML frontmatter that can be hot reloaded. It can also spawn internal sub agents for its own tasks, or delegate work to external CLI agents like Claude Code and Codex through the Agent Client Protocol. Its long term memory is organized into four layers described as semantic, episodic, emotional, and raw session memory, managed through its own memory panel. It can optionally start conversations on its own based on what is on your screen, how long you have been idle, and configured quiet hours. Running it requires Python 3.12 or newer and the uv package manager, on macOS or Windows. After installing with uv and running the app, a tray icon and floating pet window appear, and provider API keys and other settings are entered through a settings panel in the tray menu rather than environment variables. The project also documents a separate setup for running as a kiosk display on a Raspberry Pi with an attached screen.

Copy-paste prompts

Prompt 1
Help me install uv and set up this desktop pet project on macOS or Windows.
Prompt 2
Explain how this project's four layer memory system, semantic, episodic, emotional, and raw session, might work together.
Prompt 3
Show me how to configure an MCP server so this desktop agent can connect to it.
Prompt 4
Walk me through how the Agent Client Protocol could be used to delegate tasks to an external CLI agent like Claude Code.

Frequently asked questions

What is miku-on-desktop?

A Hatsune Miku desktop pet powered by an AI agent that can chat, see your screen, control your mouse and keyboard, and remember past sessions.

What language is miku-on-desktop written in?

Mainly Python. The stack also includes Python, PySide6, uv.

What license does miku-on-desktop use?

The README does not state a license for this project.

How hard is miku-on-desktop to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is miku-on-desktop for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.