@specode/pi-kimi-webbridge-bootstrap
Pi-side bootstrap proxy that installs and updates the official Kimi WebBridge runtime and skill.
Package details
Install @specode/pi-kimi-webbridge-bootstrap from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@specode/pi-kimi-webbridge-bootstrap- Package
@specode/pi-kimi-webbridge-bootstrap- Version
1.0.2- Published
- Oct 31, 2026
- Downloads
- 387/mo · 258/wk
- Author
- specode
- License
- MIT
- Types
- extension
- Size
- 58.8 KB
- Dependencies
- 1 dependency · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/kimi-webbridge-bootstrap.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-kimi-webbridge-bootstrap
A Pi extension that installs and updates the official Kimi WebBridge CLI, local daemon, and Pi skill so Pi can operate your browser with your existing login sessions.
/webbridge-status output:
WebBridge daemon: running (v0.1.3)
Browser extension: connected
Pi skill: v0.1.3
CLI: ~/.kimi-webbridge/bin/kimi-webbridge
Skill: ~/.pi/agent/cache/pi-kimi-webbridge-bootstrap/skills/current/kimi-webbridge
Requirements
- Pi with
resources_discoversupport (tested with Pi 1.0.2 and later) - Node.js >= 20
- macOS or Linux (
arm64orx64) - Kimi WebBridge browser extension installed and enabled in Chrome or Edge
Installation
From npm:
pi install npm:@specode/pi-kimi-webbridge-bootstrap
From GitHub:
pi install git:github.com/specode/pi-kimi-webbridge-bootstrap
From a local directory for development:
pi install /path/to/pi-kimi-webbridge-bootstrap
Run /reload or restart Pi after installing.
Usage
- On first session start (or
/reload), the extension downloads the official CLI to~/.kimi-webbridge/bin/, starts the local daemon, and caches the matching skill under~/.pi/agent/cache/pi-kimi-webbridge-bootstrap/skills/. - Install and enable the Kimi WebBridge browser extension in Chrome or Edge. If no browser connection is detected on first run, Pi shows this link automatically.
- Run
/webbridge-statusand check thatBrowser extensionreportsconnected. - Once a cached skill is installed, the extension checks for updates in the background on session start every 6 hours without blocking startup. When a new skill version is downloaded, Pi prompts you to run
/reload.
Commands
| Command | Description |
|---|---|
/webbridge-status |
Show daemon state, browser extension connection, cached skill version, and last update error |
/webbridge-setup |
Show browser extension installation steps or confirm that it is connected |
/webbridge-update |
Check for a newer release immediately and update the CLI and cached skill |
Configuration
| Environment variable | Default | Description |
|---|---|---|
PI_WEBBRIDGE_AUTO_UPDATE |
1 |
Set to 0 to disable automatic setup and periodic update checks (manual commands still work) |
PI_WEBBRIDGE_UPDATE_INTERVAL_HOURS |
6 |
Hours between session-triggered background update checks (retries after 15 minutes on failure) |
PI_CODING_AGENT_DIR |
~/.pi/agent |
Custom Pi agent directory (skill cache follows Pi's resolved directory) |
Privacy and Safety
- Downloads official binaries and skills only from
https://cdn.kimi.com/webbridge; no proprietary binaries or skill archives are bundled in this package. - Verifies CLI binaries against the SHA-256 checksum in
latest/version.jsonand rolls back to the previous binary if the new CLI fails to start or report status. - Validates skill archives in a staging directory (checking tar headers, entry types, path traversal, expanded size limits, and
SKILL.mdfrontmatter) before atomically switchingskills/current. - Uses a process lock at
~/.kimi-webbridge/pi-bootstrap-update.lockso concurrent Pi sessions do not collide during updates, reclaiming stale locks only when the owner process has exited. - Does not register OS-level cron jobs or launch agents; update checks run only on Pi session events. Note that
~/.kimi-webbridgeand its daemon are shared across the user account, sokimi-webbridge upgradebriefly restarts the shared daemon.
Development
# Run tests
npm test
# Syntax-check and run tests
npm run check
# Check package contents
npm run pack:check
License
MIT.