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

Terminal
curl -fsSL https://www.codebroker.space/install.sh | bash

Windows

Run this in PowerShell:

PowerShell
irm https://www.codebroker.space/install.ps1 | iex

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:

Terminal
source ~/.bashrc   # or: source ~/.zshrc

To confirm CodeBroker is on your PATH and resolving to the right binary:

Terminal
which codebroker
codebroker --version
Command not found?
If your shell still can't find 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:

Terminal
cd /path/to/your-project

Then, from inside that project directory, initialize CodeBroker. This sets up the local database and indexes your codebase:

Terminal
codebroker init

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.

Terminal
codebroker bind
All commands
Run 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:

Terminal
codebroker update

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.