Skip to content

Docs

Install in Cursor

This page installs BuildKeel in Cursor, in the editor and its CLI (agent), checks that it works, and shows how to update or remove it. You need Node.js 20 or later, and git (see Before you start). Commands are shown here in Cursor’s form, such as /bk-init.

This installs BuildKeel for you, in every project you open in Cursor, in the editor and the CLI.

  1. In a terminal, run:

    Terminal window
    npx buildkeel install --cursor

    This puts BuildKeel in ~/.cursor/plugins/local/bk/, and adds BuildKeel’s tools to the allow list in your Cursor settings (~/.cursor/cli-config.json), beside what you allow there, so they run without asking.

  2. Quit Cursor if it is running and open it again, or start a new CLI session.

  3. In each project, run /bk-init once, or, where BuildKeel is set up already, /bk-status. BuildKeel writes its commands into the project’s .cursor/commands/ and its rule into .cursor/rules/, left out of git through .git/info/exclude. The /bk- commands are listed from the next chat.

BuildKeel writes no permission file into the project: Cursor uses a project’s .cursor/cli.json in place of your own allow list, so the commands you allowed would be asked for again. Where a project has that file already, /bk-init adds BuildKeel’s entry to it, or, when the file is committed, gives you the line to add.

  1. Open a new chat in the project.
  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>. Type /bk to see them all, and type the input after a command, such as /bk-approve US-001. Cursor names BuildKeel’s server plugin-bk-buildkeel in its MCP settings.

  1. To update BuildKeel to the newest version, run this, then quit Cursor and open it again, or start a new CLI session:

    Terminal window
    npx buildkeel@latest update --cursor

    The commands and rule in each project are brought up to date at the first BuildKeel command there.

  2. To remove BuildKeel, run npx buildkeel remove --cursor in a project, or with --workspace /path/to/your/project. It removes the plugin, BuildKeel’s entry in your Cursor settings, and BuildKeel’s commands, rule and lines in .git/info/exclude in that project, leaving the rest as it was. In each other project, run npx buildkeel remove --cursor --workspace /path/to/that/project too, to take BuildKeel’s files out of it.

  • Commands starting with /bk-, and a rule that is always on, both in each project’s .cursor/ folder, left out of git.
  • A local server, started by Cursor. 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 at session start, before and after an edit, and after each tool. A held edit is stopped with BuildKeel’s reason; anything else BuildKeel has to say is added after the next tool.
  • BuildKeel’s agents, started as separate Cursor CLI runs with their own settings in ~/.buildkeel/cursor-agents/. BuildKeel limits each to its role: a reviewer cannot edit, and runs only commands that read.
  • /bk-status is not listed: the commands are written into the project at /bk-init, or at the first BuildKeel command where the project is set up already, and are listed from the next chat.
  • The agent has no BuildKeel tools: check that BuildKeel is installed (npx buildkeel install --cursor) and turned on in Cursor’s settings under MCP, as plugin-bk-buildkeel, then start a new chat.
  • Cursor asks before each BuildKeel tool, or asks again for commands you allowed: the project may have its own .cursor/cli.json, which Cursor uses in place of your own allow list. Run /bk-init to add BuildKeel’s entry to it, or add your own entries there too.
  • The tools say to use BuildKeel’s Cursor build: they are the Claude Code build’s, which Cursor loaded from Claude Code. Install the Cursor build with npx buildkeel install --cursor.
  • An agent does not start: the model given for its role may not be in your Cursor plan. Run /bk-models to choose another, or ask your team if the role is set for everyone.