CerebeCerebe Docs
Cerebe Factory

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 curl and tar, 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 origin remote 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

  1. From the repository, run the installer for your operating system.

    macOS and Linux:

    curl -fsSL https://cerebe.ai/install.sh | sh

    Windows (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 install in the repository, which writes cerebe.yaml, seeds AGENTS.md and CLAUDE.md when they are missing, creates cerebe/, sets up your workstation rules with local review off, and arms the post-commit and pre-push hooks. Last, the installer runs cerebe doctor.

    You should see Cerebe initialized., then the doctor's check list ending in All checks passed. A [WARN] critic_fleet row is expected until step 3.

  2. Commit the files the installer staged:

    git commit -m "chore: set up Cerebe" -- cerebe.yaml AGENTS.md CLAUDE.md

    Git ignores the runtime files Cerebe writes under cerebe/, such as review results. Configure describes every file Cerebe reads.

  3. 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, kimi

    You 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 open blocker or high finding. 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/bin is not writable, the installer uses ~/.local/bin and prints add <directory> to your PATH if that directory is not on your PATH. Add it, then open a new terminal. On Windows, open a new terminal: the installer adds its directory to your user PATH.
  • cerebe doctor shows a [FAIL] row. Apply the fix: line printed under it, then run cerebe doctor again.
  • cerebe model add says to configure origin first. Local review keys its settings to the repository's origin remote. Add one, such as git remote add origin https://github.com/your-org/your-repo.git, and run cerebe model add again.
  • PowerShell is not available on Windows. Download the cerebe and cyclone zip archives for your architecture from the Releases page, extract both onto your PATH, then run cerebe install in the repository, or cerebe init if the repository commits cerebe/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 CLI
  • npm i @cerebe/sdk or pip install cerebe — client SDKs for a separate Cerebe API, not the Factory CLI
  • npm i @cerebe/cli — redirect stub that prints install.sh and exits 1

Use the installer command for your operating system instead.

Upgrade

  1. Upgrade both binaries:

    cerebe upgrade

    This moves cerebe and cyclone to the newest stable release in your current major version. It prints cerebe upgrade: upgraded to v<version>, or v<version> is current when nothing newer is available.

  2. Run cerebe init in 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 sh

The 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

  1. From the repository, run:

    cerebe uninstall

    It prints Factory removed.

  2. Delete cerebe and cyclone from 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.

On this page