Skip to content

Install

uh is a single binary with the web UI embedded. Nothing else to install or serve. Install with Homebrew, download a release tarball, or build from source with Bazel or Cargo.

Supported platforms

Prebuilt binaries cover three platforms:

Platform Release asset suffix Notes
macOS, Apple Silicon darwin_arm64 Linked against the macOS SDK.
Linux, x86_64 linux_amd64 Needs glibc 2.35 or newer (Ubuntu 22.04+, Debian 12+). libc++ and the Rust standard library are linked statically.
Linux, ARM64 linux_arm64 Same glibc requirement as linux_amd64.

No prebuilt binaries exist for other platforms, such as Intel macOS or Linux with an older glibc. On those, build from source.

Homebrew

The uhvesta/tap tap works on macOS (Apple Silicon) and on Linux (x86_64 and ARM64):

brew install uhvesta/tap/uh

The formula installs the release tarballs below and checks their SHA-256 sums. Each release updates it.

Release tarballs

Each GitHub release has these assets:

Asset Contents
uh-<tag>-darwin_arm64.tar.gz The uh binary (mode 0755) at the archive root
uh-<tag>-linux_amd64.tar.gz Same, for Linux x86_64
uh-<tag>-linux_arm64.tar.gz Same, for Linux ARM64
SHA256SUMS sha256sum output for the three tarballs

<tag> is the release tag with its leading v, such as v0.1.0. Set it from the releases page before you download:

TAG=v0.1.0              # (1)!
PLATFORM=darwin_arm64   # or linux_amd64, linux_arm64
BASE=https://github.com/uhvesta/uh/releases/download/$TAG

curl -fsSLO "$BASE/uh-$TAG-$PLATFORM.tar.gz"
curl -fsSLO "$BASE/SHA256SUMS"
  1. Replace this with the tag of the release you want.

Verify the checksum

SHA256SUMS lists all three tarballs. Check the one you downloaded:

grep "uh-$TAG-$PLATFORM.tar.gz" SHA256SUMS | sha256sum -c -
grep "uh-$TAG-$PLATFORM.tar.gz" SHA256SUMS | shasum -a 256 -c -

Both commands print uh-<tag>-<platform>.tar.gz: OK when the sum matches.

Extract the binary

The archive holds one file, uh, with no enclosing directory. Extract it to a directory on your PATH:

mkdir -p ~/.local/bin
tar -xzf "uh-$TAG-$PLATFORM.tar.gz" -C ~/.local/bin

If ~/.local/bin is not on your PATH, add it to your shell profile, or extract to a directory that is.

Build from source

Clone the repository:

git clone https://github.com/uhvesta/uh.git
cd uh

The repository pins Bazel 9.2.0 in .bazelversion. Bazelisk reads that file and fetches the matching version. The C/C++ and Rust toolchains are hermetic, so no system compiler or rustup is needed.

bazel build -c opt //:uh

The binary lands at bazel-bin/crates/uhdiff/uh. Copy it to your PATH:

install -m 0755 bazel-bin/crates/uhdiff/uh ~/.local/bin/uh

The workspace uses Rust edition 2024 and requires Rust 1.100.0. rust-toolchain.toml pins that toolchain. rustup installs and uses it inside the repository.

cargo build --release

The binary lands at target/release/uh. Copy it to your PATH, or install in one step into ~/.cargo/bin:

cargo install --path crates/uhdiff

Cross-compiling and the contributor workflow (tests, lints, formatting) are in Development.

Verify the install

uh --version

Output is the binary name and version:

uh 0.1.0

uh info prints the tree-sitter ABI version the binary was built with (tree-sitter ABI <n>).

Runtime prerequisites

Tool Needed for
git Reading local repositories, commit ranges, and the working tree. Also used to clone and fetch repositories for GitHub URLs.
gh GitHub PR URLs and commit URLs only. Not needed for local repositories or patch files.

For GitHub URLs, uh lists accounts with gh auth status and gets a token with gh auth token. Log in once before you review a PR:

gh auth login

If gh has no stored token, uh falls back to GH_TOKEN or GITHUB_TOKEN. For hosts other than github.com, it checks GH_ENTERPRISE_TOKEN first. If none yields a token, the command fails with:

uhdiff: gh auth token for '<login>' on '<host>' failed: <gh stderr>

For several gh accounts (--gh-account, --set-default-gh-account), see Reviewing changes.

Upgrade

brew update
brew upgrade uh

Extract the new release over the old binary. See Release tarballs.

Pull main and rebuild with the same Bazel or Cargo command.

Uninstall

brew uninstall uh
brew untap uhvesta/tap   # optional

Delete the copied binary:

rm ~/.local/bin/uh

The Cargo package is named uhdiff (it builds the uh binary):

cargo uninstall uhdiff

Removing the binary keeps config, queue, and cache files. Their locations are in Configuration. If you installed agent skills with uh install, run uh install --uninstall before removing the binary. See Agent skills.