# Install gator with Homebrew

CLI Utility for Open Policy Agent Gatekeeper. Version 3.22.2 via Homebrew; verified 2026-04-28.

## Install

```sh
sudo av install brew:gator
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gator
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:gator
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gator>
- **Version:** 3.22.2
- **Source summary:** CLI Utility for Open Policy Agent Gatekeeper
- **Homepage:** <https://open-policy-agent.github.io/gatekeeper/>
- **Repository:** <https://github.com/open-policy-agent/gatekeeper>
- **Upstream docs:** <https://github.com/open-policy-agent/gatekeeper/tree/master/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/open-policy-agent/gatekeeper/archive/refs/tags/v3.22.2.tar.gz>
- **Last updated:** 2026-04-28T02:15:45Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- gator (cli)
- gator (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.22.2
- Package-manager updated: 2026-04-28
- Local data: ok
- Upstream repository: https://github.com/open-policy-agent/gatekeeper
- Upstream latest detected: v3.22.2 (current)
## Project history and usage

gator is the command-line utility shipped by Open Policy Agent Gatekeeper for local Gatekeeper policy work. It lets users evaluate ConstraintTemplates and Constraints outside the cluster, and newer versions add policy-library management commands.

### Project history

Gatekeeper's repository was created in 2018 as the Kubernetes admission-control project in the Open Policy Agent ecosystem. The README distinguishes modern Gatekeeper from earlier OPA sidecar and kube-mgmt usage, noting native Kubernetes CRDs, constraints, constraint templates, audit functionality, mutation, and external data support.

The gator CLI is documented as a Gatekeeper v3.11+ beta feature. The same official page notes that `go install` support requires Gatekeeper master or v3.16.0 and later, and that the `gator policy` subcommand is a v3.22+ alpha feature.

### Adoption history

Official gator installation paths include downloading binaries from Gatekeeper releases, building from source, and installing with Homebrew on macOS and Linux. Its adoption is tied to Gatekeeper users who want to test or manage policies before applying them to Kubernetes clusters.

### How it is used

`gator test` evaluates Kubernetes objects against templates and constraints and reports violations through both output and exit status. `gator policy` provides a brew-inspired interface for discovering, installing, upgrading, and managing policies from the official gatekeeper-library.

### Why package nerds care

gator matters because it packages policy validation and policy-library workflows into a local CLI, making Gatekeeper policy development fit into package-manager, CI, and preflight-test workflows rather than only live-cluster admission control.

### Timeline

- 2018: Gatekeeper repository created.
- 2019: v2.0.1 release published.
- 2023: v3.11.0 release line introduced the documented gator beta feature state.
- 2024: v3.16.0 became the documented minimum for `go install` of gator by version.
- 2026: v3.22.0 release line introduced the documented `gator policy` alpha feature state.

### Related projects

- gator is part of Open Policy Agent Gatekeeper and works with Gatekeeper ConstraintTemplates, Constraints, Kubernetes resources, and the official gatekeeper-library. The Gatekeeper README also relates the project to OPA with kube-mgmt.

### Sources

- <https://github.com/open-policy-agent/gatekeeper>
- <https://github.com/open-policy-agent/gatekeeper/releases>
- <https://open-policy-agent.github.io/gatekeeper/website/docs>
- <https://open-policy-agent.github.io/gatekeeper/website/docs/gator>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gator
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [kube-bench](https://www.automicvault.com/pkg/brew/kube-bench/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [kubehound](https://www.automicvault.com/pkg/brew/kubehound/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [kubescape](https://www.automicvault.com/pkg/brew/kubescape/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [ksops](https://www.automicvault.com/pkg/brew/ksops/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [kubeseal](https://www.automicvault.com/pkg/brew/kubeseal/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [checkov](https://www.automicvault.com/pkg/brew/checkov/) - Shares av.db curated category or tags: cli, kubernetes, security.
- [gittuf](https://www.automicvault.com/pkg/brew/gittuf/) - Shares av.db curated category or tags: cli, policy, security.
- [libsepol](https://www.automicvault.com/pkg/brew/libsepol/) - Shares av.db curated category or tags: cli, policy, security.

## Combined YAML source

View the package source record on GitHub. [combined/gator.yml](https://github.com/automic-vault/db/blob/main/combined/gator.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
