Install
Run the installer from your repository. To enable local reviews after installation, add a critic with cerebe model add.
One command installs the Cerebe Factory CLI, the cerebe and cyclone
binaries, and sets up the git repository you run it from. A second command,
cerebe model add, turns on local review. You do not need
the GitHub App to use the CLI; the App
runs the hosted pull request review. Plans and pricing are on the
pricing page.
Before you start
- macOS or Linux on x86-64 or ARM64 with
curlandtar, or Windows with Windows PowerShell 5.1 or PowerShell 7. - A local clone of the git repository you want to set up.
- For local review, an
originremote that is not a local path, such as a GitHub URL, and a coding agent CLI you are signed in to: Claude Code, Cursor, Codex, Gemini, or Kimi.
Install the CLI
-
From the repository, run the installer for your operating system.
macOS and Linux:
curl -fsSL https://cerebe.ai/install.sh | shWindows (Command Prompt or PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://cerebe.ai/install.ps1 | iex"Git Bash, MSYS2, and Cygwin can run the macOS and Linux command; it hands off to PowerShell.
The installer checks the release's signature, its build provenance, and each archive's checksum before it extracts either binary. It then runs
cerebe installin the repository, which writescerebe.yaml, seedsAGENTS.mdandCLAUDE.mdwhen they are missing, createscerebe/, sets up your workstation rules with local review off, and arms the post-commit and pre-push hooks. Last, the installer runscerebe doctor.You should see
Cerebe initialized., then the doctor's check list ending inAll checks passed.A[WARN] critic_fleetrow is expected until step 3. -
Commit the files the installer staged:
git commit -m "chore: set up Cerebe" -- cerebe.yaml AGENTS.md CLAUDE.mdGit ignores the runtime files Cerebe writes under
cerebe/, such as review results. Configure describes every file Cerebe reads. -
To turn on local review, add a critic for a coding agent CLI you are signed in to:
cerebe model add cursor # or claude, codex, gemini, kimiYou should see
cerebe model: enabled cursor; local review on (quorum 1). From then on, the post-commit hook reviews each commit in the background, and the pre-push hook blocks a push whose review has an openblockerorhighfinding. Local hooks lists every condition that blocks a push and how to bypass one with a recorded reason.
In a teammate's clone or a new worktree, run the same installer command from
that checkout, or run cerebe init there if the binaries are already
installed. Either one sets up the hooks and the cerebe/ directory for that
checkout.
Troubleshooting
Not a git repository — binaries only.The installer ran outside a git repository and installed only the binaries. Run the same command from the repository.- The shell cannot find
cerebe. On macOS and Linux, when/usr/local/binis not writable, the installer uses~/.local/binand printsadd <directory> to your PATHif that directory is not on yourPATH. Add it, then open a new terminal. On Windows, open a new terminal: the installer adds its directory to your userPATH. cerebe doctorshows a[FAIL]row. Apply thefix:line printed under it, then runcerebe doctoragain.cerebe model addsays to configureoriginfirst. Local review keys its settings to the repository'soriginremote. Add one, such asgit remote add origin https://github.com/your-org/your-repo.git, and runcerebe model addagain.- PowerShell is not available on Windows. Download the
cerebeandcyclonezip archives for your architecture from the Releases page, extract both onto yourPATH, then runcerebe installin the repository, orcerebe initif the repository commitscerebe/config.json. This manual path skips the installer's signature and provenance checks.
The Factory CLI is a compiled binary, not an npm or pip package. These packages are something else:
npm i @momentiq/dark-factory-cli— deprecated frozen npm CLInpm i @cerebe/sdkorpip install cerebe— client SDKs for a separate Cerebe API, not the Factory CLInpm i @cerebe/cli— redirect stub that printsinstall.shand exits 1
Use the installer command for your operating system instead.
Upgrade
-
Upgrade both binaries:
cerebe upgradeThis moves
cerebeandcycloneto the newest stable release in your current major version. It printscerebe upgrade: upgraded to v<version>, orv<version> is currentwhen nothing newer is available. -
Run
cerebe initin each repository to refresh its hooks and bundled plugins.
Exit 3 means the upgrade was refused. For an install managed by a package
manager such as Homebrew, the message names that manager's upgrade command. The
CLI reference covers channels, major
versions, exit codes, and rollback.
cerebe.yaml was previously named darkfactory.yaml. The CLI still reads a
leftover darkfactory.yaml; cerebe config migrate renames it.
Pin a version or install only the binaries
The installer installs the latest stable release. To install a specific
release, set CEREBE_VERSION to its version number:
curl -fsSL https://cerebe.ai/install.sh | CEREBE_VERSION=9.18.0 shThe installer refuses a release that has no signature bundle or provenance, which rules out some older releases.
To install only the binaries and leave the repository unchanged, set
CEREBE_SKIP_REPO=1 the same way. The installer also skips repository setup
when CI is set, or when CEREBE_INSTALL_DIR names the directory to install
into.
Uninstall
-
From the repository, run:
cerebe uninstallIt prints
Factory removed. -
Delete
cerebeandcyclonefrom the directory listed below for your system.
What it removes
cerebe uninstall removes the cerebe/ directory and the git hooks Cerebe installed in that repository. That includes a committed cerebe/config.json. It does not delete the binaries, and it does not delete cerebe.yaml, AGENTS.md, or CLAUDE.md at the repository root. Delete those files yourself if you want them gone. This repository's entry in your workstation rules also stays; see Configure.
macOS and Linux binaries
On macOS and Linux, the install command on this page puts cerebe and cyclone in /usr/local/bin when that directory is writable, and otherwise in ~/.local/bin. If CEREBE_INSTALL_DIR is set, they are in that directory.
Windows binaries
On Windows, the install command on this page puts cerebe.exe and cyclone.exe in %LOCALAPPDATA%\Programs\Cerebe, or in CEREBE_INSTALL_DIR when that variable is set.
Source tree on macOS and Linux
A checkout built from the source tree installs only cerebe. cli/scripts/install.sh puts it in /usr/local/bin and asks for administrator rights when that directory is not writable.
Source tree on Windows
cli/scripts/install.ps1 puts cerebe.exe in %LOCALAPPDATA%\Programs\Cerebe.