This repository contains Homebrew formulae for OpenRouter tools.
Homebrew exposes this repository as the OpenRouterTeam/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.
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.
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 OpenRouterTeam/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 OpenRouterTeam/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.