Installation
CodeBroker is available as a CLI. We recommend it for CI/CD workflows and daily development alike.
Command Line Interface
The fastest way to get set up is the install script for your platform. It's fully automated — no separate toolchain or configuration required.
macOS / Linux
Windows
Run this in PowerShell:
Add CodeBroker to your PATH
The install script places the codebroker binary in ~/.codebroker/bin and appends a line to your shell profile (~/.bashrc, ~/.zshrc, or ~/.profile, depending on your shell) so that directory is on your PATH. This happens automatically — you don't need to do it yourself.
The one thing you do need to do is open a new terminal window (or reload your current shell) after installing, since the updated PATH only takes effect in shells started after the install script ran:
To confirm CodeBroker is on your PATH and resolving to the right binary:
Command not found?
codebroker, add the install directory to your PATH manually by adding this line to your shell profile, then restarting your terminal:export PATH="$HOME/.codebroker/bin:$PATH"Setup
CodeBroker is initialized per-project, so first cd into the project you want to index — this is the directory codebroker init will scan and the directory it will stay scoped to:
Then, from inside that project directory, initialize CodeBroker. This sets up the local database and indexes your codebase:
Then bind it to your AI coding tools — this instantly hooks up Claude Desktop and Antigravity to the current directory, so those tools can query the index you just built. Run bind from the same project directory as init; it binds whichever project you're currently standing in.
All commands
codebroker help to see every available command, or check the CLI reference for the full list.Updating CodeBroker
CodeBroker ships frequently. To pull the latest release, run updatefrom anywhere — it doesn't need to be run inside a project directory, since it updates the CLI binary itself rather than any per-project index:
This checks the latest release, downloads it if you're behind, and replaces the binary at ~/.codebroker/bin/codebroker in place — no need to re-run the install script. Your existing per-project indexes (from codebroker init) are untouched; run codebroker init again (or reindex-incremental) if a later release changes the index format.