Docs
Install in Pi
On this page
This page installs BuildKeel in Pi, checks that it works, and shows how to update or remove it. Pi itself needs Node.js 22.19 or later, and git (see Before you start). Commands are shown here in Pi’s form, such as /bk-init.
Install
Section titled “Install”This installs BuildKeel for you, in every project you open in Pi.
-
In a terminal, run:
Terminal window pi install npm:buildkeelPi installs the
buildkeelpackage from npm and loads its extension, commands and instructions. -
Start Pi in your project, or start a new session.
BuildKeel registers its own server with Pi: nothing is written to your mcp.json or to the repository. If you have added a server named buildkeel to your own mcp.json, Pi uses yours instead, and /bk-settings says so.
To install for one project only, add -l: pi install -l npm:buildkeel writes it to the project’s .pi/settings.json, and Pi loads it only once you trust the project (Pi asks the first time you start it there; an install for you needs no trust).
Then set up your repository with /bk-init: see Your first change.
Check that it works
Section titled “Check that it works”- Run
/mcp. Thebuildkeelserver is listed as connected, with its tools declared directly. - Run
/bk-status. In a project that is not set up yet, it tells you how to set one up. In a project that is, it shows your spec tree.
BuildKeel’s commands are all named /bk-<command>, with descriptions starting with “BuildKeel:”. Type /bk to see them all, and type the input after a command, such as /bk-approve US-001.
Update or remove it
Section titled “Update or remove it”-
To update BuildKeel to the newest version, run this, then start a new session:
Terminal window pi update npm:buildkeelFor a project install, run it in the project. An install pinned to a version, such as
npm:buildkeel@0.7.1, stays on that version: install it again without the version to follow updates. -
To remove BuildKeel, run
pi remove npm:buildkeel, with-lfor a project install.
What it adds to a Pi session
Section titled “What it adds to a Pi session”- Commands starting with
/bk-, from the package’s command files. - The instructions as a skill, which the agent reads when the work calls for it, and a short section in the system prompt saying where BuildKeel’s command files are.
- A local server, registered by BuildKeel’s extension and started by Pi. The agent reads and changes your spec tree through it. Nothing about you or your work is sent anywhere; once a day it asks the npm registry for BuildKeel’s latest version number.
- Hooks in Pi’s own process, at session start, after compaction, when you send a message, and before and after an edit or a shell command. A held edit is stopped with BuildKeel’s reason; anything else BuildKeel has to say is added to the tool’s result.
- Two tools Pi does not have:
bk_ask, which asks you a question with choices (Enter takes the first; “Other…” lets you answer in your own words), andbk_agent, which starts BuildKeel’s agents as separate Pi runs with only their role’s tools and their own session files, kept in~/.buildkeel/pi-agents/.
If something goes wrong
Section titled “If something goes wrong”/bk-statusis not listed: runpi listto checknpm:buildkeelis installed. For a project install, check that you trusted the project (/trust).- The agent has no BuildKeel tools: run
/mcp. If thebuildkeelserver failed, check thatnode --versionworks in the terminal you start Pi from, then run/reload. - An agent does not start: the model given for its role may not be one your keys or subscriptions cover. Run
/bk-modelsto choose another, or ask your team if the role is set for everyone.