Skip to content

Docs

Install in Pi

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.

This installs BuildKeel for you, in every project you open in Pi.

  1. In a terminal, run:

    Terminal window
    pi install npm:buildkeel

    Pi installs the buildkeel package from npm and loads its extension, commands and instructions.

  2. 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.

  1. Run /mcp. The buildkeel server is listed as connected, with its tools declared directly.
  2. 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.

  1. To update BuildKeel to the newest version, run this, then start a new session:

    Terminal window
    pi update npm:buildkeel

    For 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.

  2. To remove BuildKeel, run pi remove npm:buildkeel, with -l for a project install.

  • 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), and bk_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/.
  • /bk-status is not listed: run pi list to check npm:buildkeel is installed. For a project install, check that you trusted the project (/trust).
  • The agent has no BuildKeel tools: run /mcp. If the buildkeel server failed, check that node --version works 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-models to choose another, or ask your team if the role is set for everyone.