Installation
Requirements and installing ocra from source.
Requirements
- Node.js 22 or newer
- Git
- An API key for at least one model provider
The OpenCode agent runtime is installed automatically as a dependency; no separate install is needed.
From source
git clone https://github.com/jma49/Open-CR-Agent.git
cd Open-CR-Agent
npm install
npm run build
npm link --workspace @open-cr-agent/clinpm link makes the ocra command available globally. To update, pull and rebuild:
git pull && npm install && npm run buildTo remove it: npm unlink --global @open-cr-agent/cli.
Without linking
Run the built CLI directly:
node /path/to/Open-CR-Agent/packages/cli/dist/main.js reviewOpenCode binary
ocra locates the OpenCode binary for your platform inside its dependencies. If your platform package is missing, point ocra at an OpenCode binary:
export OCRA_OPENCODE_BIN=/path/to/opencode