Skip to content

Docs

Install in Codex

This page installs BuildKeel in Codex, 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 Codex’s form, such as $bk:init.

You install BuildKeel from its marketplace, the same public repository as for Claude Code.

  1. In a terminal, run:

    Terminal window
    codex plugin marketplace add BuildKeel/buildkeel
    codex plugin add bk@buildkeel
  2. Start Codex in your project.

  3. Run /hooks and trust BuildKeel’s hooks. Codex runs a plugin’s hooks only once you trust them, and asks again after every BuildKeel update. Until then, edits are not checked and no context is loaded: BuildKeel’s first answer in a session says so.

BuildKeel’s tools run without an approval prompt each time.

When you run $bk:init, BuildKeel writes its agents into the project’s .codex/agents/, with your models, left out of git through .git/info/exclude. A teammate who clones a project set up elsewhere gets them at their first BuildKeel command. Codex keeps .git read-only in its sandbox, so each commit BuildKeel’s build makes would need your approval: $bk:init ends with the line to add to your Codex settings (~/.codex/config.toml) so git can write in the project. BuildKeel never changes Codex’s settings itself.

Codex installs BuildKeel for you, in every project. Then set up your repository with $bk:init: see Your first change.

  1. Run /hooks. BuildKeel’s hooks are listed as trusted.
  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 the plugin’s skills, named $bk:<command>, such as $bk:init and $bk:build. 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 and trust BuildKeel’s hooks again in /hooks:

    Terminal window
    codex plugin marketplace upgrade buildkeel

    Codex also brings its marketplaces up to date on its own when a session starts.

  2. To remove BuildKeel, run npx buildkeel remove --codex in each project, which removes BuildKeel’s agents from .codex/agents/ and their line in .git/info/exclude, leaving your own agents as they are. Then run:

    Terminal window
    codex plugin remove bk@buildkeel
    codex plugin marketplace remove buildkeel
  • Commands starting with $bk:, which are the plugin’s skills.
  • The instructions as a skill, which the agent reads when the work calls for it.
  • A local server, started by Codex. 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, once you trust them, at session start, after compaction, when you send a message, before and after an edit and around a shell command. A held edit is stopped with BuildKeel’s reason.
  • BuildKeel’s agents, in .codex/agents/ in each project, which Codex starts as its own agents. Break-it runs in a worktree of its own, as a separate Codex run.
  • BuildKeel says its hooks are not running: run /hooks and trust BuildKeel’s hooks. Codex asks again after every update.
  • The agent has no BuildKeel tools: run codex plugin list to check bk@buildkeel is installed, check that node --version works in the terminal you start Codex from, then start a new session.
  • A commit asks for your approval each time: add the project’s .git folder to writable_roots under [sandbox_workspace_write] in ~/.codex/config.toml, as $bk:init showed, and start Codex again.