This repository contains Homebrew formulae for OpenRouter tools.
Homebrew exposes this repository as the OpenRouterLabs/tap tap.
Formula/contains the Homebrew formulae.templates/contains the binary formula template.scripts/new-formulacreates a formula from release metadata.scripts/checkchecks the repository and its formulae.scripts/update-orireconciles the Ori formula with the latest stable release..github/workflows/update-ori.ymlopens or updates the Ori formula pull request.
Install Homebrew and Ruby before you change this repository.
Build two macOS release archives before you run this command. Each archive must contain one executable at its root.
Run this command with immutable HTTPS URLs and SHA-256 checksums:
scripts/new-formula \
<name> \
<version> \
<arm64-url> \
<arm64-sha256> \
<x86_64-url> \
<x86_64-sha256>The command creates Formula/<name>.rb. Edit the description and homepage after the command completes.
The generated test expects <name> --version to print the release version. Change the test if the tool uses a different command.
The Update Ori workflow listens for the ori-released repository dispatch. It also runs each hour and supports manual runs.
Each run reads the latest stable release from OpenRouterLabs/ori-releases. The workflow does not trust the dispatch payload as release state.
If the formula is stale, the workflow performs these steps:
- Update the version, immutable URLs, and four checksums in
Formula/ori.rb. - Run
scripts/check. - Open or update the
automation/update-oripull request.
The workflow requires these Actions secrets:
ORI_HOMEBREW_GH_APP_CLIENT_IDORI_HOMEBREW_GH_APP_PRIVATE_KEY
Make these secrets available to this repository. Install the Ori Homebrew Updater App on OpenRouterLabs/homebrew-tap with these repository permissions:
- Contents: read and write
- Pull requests: read and write
Run the updater locally:
scripts/update-ori
scripts/checkThe updater stops if release metadata is incomplete or the formula has an unexpected structure.
Run all local checks:
scripts/checkThe check stops if a formula has invalid Ruby syntax or Homebrew style errors.
If this checkout is registered as OpenRouterLabs/tap, the check also runs a strict Homebrew audit.
Install the formula from its file:
brew install --formula ./Formula/<name>.rb
brew test ./Formula/<name>.rbRemove the local installation after the test:
brew uninstall <name>Add the tap and install a formula:
brew tap OpenRouterLabs/tap
brew install <name>- Publish immutable ARM64 and x86-64 macOS archives.
- Calculate a SHA-256 checksum for each archive.
- Create or update the formula.
- Run
scripts/check. - Install and test the formula on both macOS architectures.
- Get approval from the DevEx team.
- Merge the formula change.
A Homebrew formula runs code on user computers. Treat each formula change as a privileged software-distribution change.
Do not put tokens, signed URLs, or other secrets in a formula. Use immutable artifact URLs and pinned checksums.