Installation
Homebrew
Tap ocman/homebrew-tap . Homebrew downloads the GitHub release binary for macOS or Linux, on arm64 or amd64, and verifies its SHA-256 checksum. Use Homebrew 7.0.11 or newer for the generated casks. No Go, Node.js or local build is needed.
brew tap ocman/tap
brew install --cask ocman/tap/ocman-nightly
ocman
# Open http://localhost:8228ocman-nightly follows published nightly builds. The stable cask,
ocman/tap/ocman, becomes available when the first stable GitHub release
is published. Once available, install it with:
brew install --cask ocman/tap/ocmanBoth casks install a binary named ocman, so install only one channel.
To switch from nightly to stable:
brew uninstall --cask ocman/tap/ocman-nightly
brew install --cask ocman/tap/ocmanUpdate with brew update followed by
brew upgrade --cask ocman/tap/ocman-nightly, or use the stable cask name.
GoReleaser updates the tap when it publishes each release. Restart any running
ocman process after upgrading. Homebrew does not start ocman automatically or
install ocman-ctl. Run ocman directly and configure agent CLIs separately.
After installing, Homebrew prints the commands that install OpenCode, Claude Code
and Codex. Ocman doesn’t install them for you. See the
runtime requirements
.
The CLI is not signed with an Apple developer certificate or notarized. On macOS, the cask removes the quarantine attribute from the installed CLI binary so it can run. This bypasses Gatekeeper verification for that binary; install only if you trust the release. It does not change system-wide settings.
If switching from the shell installer, stop its process with ocman-ctl stop
first. Remove the old installation with ocman-ctl uninstall without
--purge to keep application data, and check command -v ocman resolves
to Homebrew’s binary. Do not use ocman-ctl update for a Homebrew installation.
Desktop app
The desktop casks install ocman.app into /Applications from the same
release’s DMG. They need an Apple Silicon Mac.
brew tap ocman/tap
brew install --cask ocman/tap/ocman-desktop-nightlyThe stable ocman/tap/ocman-desktop cask appears with the first stable
release. Install only one desktop channel. Update with brew upgrade --cask
and the cask name, then reopen the app. Like the CLI casks, these print the
commands that install the agent CLIs, but don’t install them.
If you installed ocman.app from the DMG before, quit it and move it to the
Trash first, or Homebrew stops because an app is already there. The desktop
app and the CLI use the same ocman data, so you can install both, but run
one at a time.
Like the CLI, the app is not signed or notarized. The cask removes the
quarantine attribute from ocman.app so it opens without a Gatekeeper prompt.
Shell installer
The installer supports macOS and Linux. It prefers GitHub release binaries for amd64 and arm64 and builds the selected tag locally when the download is unavailable or your architecture has no prebuilt binary.
# Latest stable, the default
curl -fsSL https://forgejo.nousefreak.be/dries/ocman/raw/branch/main/install.sh | bash -s -- install
# Latest nightly
curl -fsSL https://forgejo.nousefreak.be/dries/ocman/raw/branch/main/install.sh | bash -s -- install nightly
# Exact version, with or without the v prefix
curl -fsSL https://forgejo.nousefreak.be/dries/ocman/raw/branch/main/install.sh | bash -s -- install v0.274.0To inspect the script before executing it, download it to a file and run
bash install.sh install stable after reviewing it.
Installation requires Bash, curl, tar and git. The binary goes to
~/.local/bin/ocman. Add ~/.local/bin to your shell’s PATH. By default,
the installer starts ocman in the background at http://127.0.0.1:8228
.
It does not install agent CLIs or configure their accounts. See the
runtime requirements
.
Add --no-start to install without starting or stopping ocman. Use this
when managing the process yourself, such as with systemd or launchd.
The installer itself does not arrange startup after a reboot.
Channels and updates
ocman-ctl update # follow the previously selected channel
ocman-ctl update stable # switch to stable
ocman-ctl update nightly # switch to nightly
ocman-ctl update v0.274.0 # pin or downgrade to an exact tag
ocman-ctl update --no-start # replace files without touching the processStable uses GitHub’s latest full release. Nightly uses the first nightly tag
in GitHub’s release listing, paging past non-nightly releases. Dev tags are
not selected for either channel. Exact versions stay pinned across updates.
An exact dev tag such as v0.274.0-dev.3 builds locally because dev tags
have no release binaries.
If GitHub’s channel lookup fails, the installer resolves the highest matching
version from source tags. It still tries that tag’s GitHub binary before
building. It never substitutes main or another version when a build fails.
The selected channel or exact tag is saved in
~/.local/share/ocman/install-version. Updates restart the background process
only after installation succeeds. Restart a process you manage yourself
after replacing its binary.
ocman-ctl update keeps the currently installed controller script. To get
installer and service-management fixes too, rerun the bootstrap command from
the first section with your chosen channel or version. Add --no-start if
you manage the process yourself. Bootstrap downloads the current controller
from Forgejo’s main branch independently of the selected binary version.
Build fallback
Local builds need git, Go, Node.js and pnpm. Use the versions required by
the selected tag’s go.mod, mise.toml and frontend/package.json.
The installer installs locked frontend dependencies, builds the frontend,
then builds Go with the selected version stamped into the binary.
ocman-ctl install nightly --source --no-startSource checkouts live in ~/.local/share/ocman/src. Existing tracked or
untracked changes stop the update instead of being discarded. Use a dedicated
checkout for the installer, not your working repository.
Manage the background process
ocman-ctl status
ocman-ctl start
ocman-ctl stop
ocman-ctl restart
ocman-ctl logs
ocman-ctl doctor
ocman-ctl uninstallUninstall removes the installer checkout, binaries and logs. Application data
is kept unless you explicitly use ocman-ctl uninstall --purge.
Overrides
Keep path overrides consistent when invoking ocman-ctl later.
| Variable | Default | Purpose |
|---|---|---|
OCMAN_VERSION | stable on first install, saved selection later | Channel or exact tag |
OCMAN_PREFIX | ~/.local | Install prefix |
OCMAN_BIN | $OCMAN_PREFIX/bin/ocman | Binary destination |
OCMAN_SRC | $OCMAN_PREFIX/share/ocman/src | Dedicated source checkout |
OCMAN_REPO | https://forgejo.nousefreak.be/dries/ocman.git | Source repository, not binary downloads |
OCMAN_RUN | ${XDG_STATE_HOME:-~/.local/state}/ocman | PID file and logs |
OCMAN_ADDR | 127.0.0.1:8228 | Background server address |
For a native macOS desktop app, download the DMG from the releases page . The shell installer installs the web server binary, not the desktop app.