@specode/pi-kimi-cu
Lightweight Kimi Computer Use installer and MCP setup for Pi
Package details
Install @specode/pi-kimi-cu from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@specode/pi-kimi-cu- Package
@specode/pi-kimi-cu- Version
2.0.1- Published
- Oct 31, 2026
- Downloads
- 578/mo · 219/wk
- Author
- specode
- License
- MIT
- Types
- extension, skill
- Size
- 58.7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./extensions/kimi-cu.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-kimi-cu
A Pi extension and skill for macOS that installs Kimi Computer Use (KimiCU.app) and connects it to Pi's built-in MCP client so Pi can inspect and control desktop apps.
/kimi-cu status output:
KimiCU 本地环境 / Local setup: ready
平台 / Platform: darwin/arm64 · macOS 15.4
App: 已安装 / installed · v0.1.0
后台服务 / Service: 运行中 / running
权限 / Permissions: 辅助功能、屏幕录制均已授权 / Accessibility & Screen Recording granted
MCP 配置 / MCP config: ~/.pi/agent/mcp.json
MCP 连接与工具状态 / Connection and tool status: 请使用 Pi 内置 /mcp 检查 / check Pi's built-in /mcp
Requirements
- Apple Silicon Mac (
arm64) running macOS 14 (Sonoma) or later - Pi >= 0.99.0 with built-in MCP enabled (1.0.2 or later recommended)
- Node.js >= 22.19.0
For Pi versions before 0.99.0 with pi-mcp-adapter, install npm:@specode/pi-kimi-cu@1.0.0.
Installation
From npm:
pi install npm:@specode/pi-kimi-cu
From GitHub:
pi install git:github.com/specode/pi-kimi-cu
From a local directory for development:
pi install /path/to/pi-kimi-cu
Restart Pi after installing.
Usage
- Run
/kimi-cu(or/kimi-cu setup) to start the guided setup. - The setup guide checks what is missing and asks before each step:
- Downloads and verifies
KimiCU.appfrom Moonshot AI's CDN if/Applications/KimiCU.appis not installed. - Registers and starts the
launchdbackground service (ai.kimi.cu.service) if it is not running. - Opens
KimiCU.appso you can grant Accessibility and Screen Recording permissions in macOS System Settings. - Writes the
kimi-cuentry to~/.pi/agent/mcp.jsonand offers to run/reload.
- Downloads and verifies
- Run
/mcpto verify the live MCP connection. Once connected, ask Pi to operate macOS apps (click, type, scroll, drag, or capture window screenshots).
Commands
| Command | Description |
|---|---|
/kimi-cu |
Open the menu to check status or run guided setup |
/kimi-cu status |
Check platform, KimiCU.app, launchd service, macOS permissions, and local MCP config |
/kimi-cu setup |
Walk through installing and configuring any missing parts |
/kimi-cu mcp |
Write MCP config to ~/.pi/agent/mcp.json (global), .pi/mcp.json (trusted project), or view the JSON snippet |
Configuration
/kimi-cu mcp writes the following server entry to ~/.pi/agent/mcp.json (following PI_CODING_AGENT_DIR):
{
"mcpServers": {
"kimi-cu": {
"command": "/Applications/KimiCU.app/Contents/MacOS/kimi-cu",
"args": ["mcp"]
}
}
}
- With Pi's default
codemodeexposure, the agent discovers KimiCU tools throughsearchTools(). You can switchkimi-cutodirectexposure in/mcpif you want the tools declared directly. - On Pi 1.0.1 or later,
.pi/mcp.jsonin a trusted project can overrideenabled,exposure, ortoolExposureon its own; on Pi 0.99.x and 1.0.0, use a full server entry. Set"enabled": falseto disable the server.
Migrating from v1.x (pi-mcp-adapter)
- Back up your old adapter configuration, then uninstall
pi-mcp-adapteror disable it inpi config(an active adapter registering/mcpblocks Pi's built-in MCP). - Move your servers into
~/.pi/agent/mcp.jsonunder"mcpServers". Replace any"disabled": truewith"enabled": falseand removedisabled. - Run
/reloadand checkkimi-cuin/mcp(if built-in MCP is off, enable it under Built-in inpi config).
Privacy and Safety
KimiCU.appis downloaded only from Moonshot AI's official CDN (https://cdn.kimi.com/kimi-computer-use/latest/KimiCU.app.zip) after you confirm the prompt.- Before replacing
/Applications/KimiCU.app, the installer checks the bundle ID (ai.kimi.cu),arm64binary architecture, Apple Developer Team ID (2J9472RW75), andcodesignsignature in a temporary staging directory, rolling back on failure. - Accessibility and Screen Recording permissions are granted by you in the official
KimiCU.appwindow and macOS System Settings; the extension never modifies TCC permission databases. /kimi-cu mcprefuses to overwrite malformed JSON files, legacymcp-serversordisabledfields, custom same-named servers, orkimi_cunamespace conflicts, and does not write a duplicate project entry when a globalkimi-cuentry already exists./kimi-cu statusreports local installation and config file state only; use/mcpfor live MCP connection status.
Development
# Syntax-check and run tests
npm run check
# Check package contents
npm run pack:check
License
MIT.