Automic VaultAutomic Vault

brew

Install gat with Homebrew, MacPorts, Nix

Cat alternative written in Go. Version 0.30.2 via Homebrew; verified 2026-06-03.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gat

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gat

MacPorts ports tree · textproc/gat/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#gat

nixpkgs package indexes · pkgs/by-name/ga/gat/package.nix · source: api.github.com

overview

Package summary

Cat alternative written in Go

Commands and aliases

  • gat

history

Project history and usage

gat is a Go implementation of a modern `cat`-style terminal file viewer. It keeps the familiar single-command file display model while adding syntax highlighting, Markdown rendering, image display for Sixel-capable terminals, pretty printing, and secret masking.

Project history

The project started publicly in March 2023 and released v0.1.0 the same day. Its official README describes it as a cat alternative written in Go and documents a steady release series through the 0.x line.

Adoption history

The README documents installation through the author's Homebrew tap, Homebrew core, `go install`, and GitHub release binaries. That places gat in the same terminal-tool packaging niche as other enhanced `cat` replacements, but with a small Go binary distribution story.

How it is used

Users run `gat` with one or more files and optional flags for language selection, output format, themes, Markdown rendering, nonprinting character display, and secret masking. Environment variables such as `GAT_FORMAT` and `GAT_THEME` can provide defaults for output style.

Why package nerds care

gat is package-nerd-relevant as another entry in the long-running ecosystem of `cat` replacements, but its mix of terminal image support, Markdown rendering, and built-in token masking makes it more than a straight colorizer.

Timeline

  • 2023: Public GitHub repository created.
  • 2023: v0.1.0 released.
  • 2025: v0.20.x releases continued the 0.x series.

Related projects

  • gat relates to traditional Unix `cat`; the official sources describe it generically as a cat alternative rather than positioning it against a specific competing package.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gatcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.30.2
manager updated2026-06-03
local dataok
upstreamcurrent
latest detectedv0.30.2

https://github.com/koki-develop/gat

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:gat
Version0.30.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gat
Homepagehttps://github.com/koki-develop/gat
Repositoryhttps://github.com/koki-develop/gat
Upstream docshttps://github.com/koki-develop/gat#readme
LicenseMIT
Source archivehttps://github.com/koki-develop/gat/archive/refs/tags/v0.30.2.tar.gz
Last updated2026-06-03T13:00:48Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegat
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

gat

nix profile install nixpkgs#gat
  • normalized package name match
  • Matched by: Gat
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ga/gat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

gat

sudo port install gat
  • normalized package name match
  • Matched by: Gat
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/gat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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