Docs
Install in Codex
On this page
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.
Install
Section titled “Install”You install BuildKeel from its marketplace, the same public repository as for Claude Code.
-
In a terminal, run:
Terminal window codex plugin marketplace add BuildKeel/buildkeelcodex plugin add bk@buildkeel -
Start Codex in your project.
-
Run
/hooksand 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.
Check that it works
Section titled “Check that it works”- Run
/hooks. BuildKeel’s hooks are listed as trusted. - 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.
Update or remove it
Section titled “Update or remove it”-
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 buildkeelCodex also brings its marketplaces up to date on its own when a session starts.
-
To remove BuildKeel, run
npx buildkeel remove --codexin 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@buildkeelcodex plugin marketplace remove buildkeel
What it adds to a Codex session
Section titled “What it adds to a Codex session”- 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.
If something goes wrong
Section titled “If something goes wrong”- BuildKeel says its hooks are not running: run
/hooksand trust BuildKeel’s hooks. Codex asks again after every update. - The agent has no BuildKeel tools: run
codex plugin listto checkbk@buildkeelis installed, check thatnode --versionworks in the terminal you start Codex from, then start a new session. - A commit asks for your approval each time: add the project’s
.gitfolder towritable_rootsunder[sandbox_workspace_write]in~/.codex/config.toml, as$bk:initshowed, and start Codex again.