# Install git-credential-oauth with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Git credential helper that authenticates in browser using OAuth. Version 0.17.2 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:git-credential-oauth
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install git-credential-oauth
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-credential-oauth
```

  Evidence: MacPorts ports tree: security/git-credential-oauth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add git-credential-oauth
```

  Evidence: Alpine Linux edge package indexes: git-credential-oauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install git-credential-oauth
```

  Evidence: Debian stable package indexes: git-credential-oauth from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-credential-oauth
```

  Evidence: Fedora Rawhide package metadata: git-credential-oauth from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#git-credential-oauth
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gi/git-credential-oauth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S git-credential-oauth
```

  Evidence: Arch Linux sync databases: git-credential-oauth from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install git-credential-oauth
```

  Evidence: openSUSE Tumbleweed package metadata: git-credential-oauth from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/git-credential-oauth
```

  Evidence: Scoop official bucket manifest trees: bucket/git-credential-oauth.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id hickford.git-credential-oauth -e
```

  Evidence: Windows Package Manager source index: hickford.git-credential-oauth from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:git-credential-oauth
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/git-credential-oauth>
- **Version:** 0.17.2
- **Source summary:** Git credential helper that authenticates in browser using OAuth
- **Homepage:** <https://github.com/hickford/git-credential-oauth>
- **Repository:** <https://github.com/hickford/git-credential-oauth>
- **Upstream docs:** <https://github.com/hickford/git-credential-oauth#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/hickford/git-credential-oauth/archive/refs/tags/v0.17.2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- git-credential-oauth (cli)
- git-credential-oauth (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: 0.17.2
- Local data: ok
- Upstream repository: https://github.com/hickford/git-credential-oauth
- Upstream latest detected: v0.17.2 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

git-credential-oauth is a Go-based Git credential helper that obtains Git host credentials through browser-based OAuth or OAuth device flow. It targets HTTPS Git workflows where passwords, personal access tokens, or SSH setup are awkward for users or hard for distributions to package cleanly.

### Project history

The upstream repository began in October 2022 and tagged v0.0.1 the next day with GoReleaser packaging. Early 2022 and 2023 releases added support for more forges, custom host configuration, custom OAuth authorization and token URLs, and platform-specific browser opening.

The project later grew around Git's evolving credential protocol. In 2023 it added token refresh support, and Git's own credential documentation later listed git-credential-oauth as a popular OAuth helper alongside Git Credential Manager.

### Adoption history

The README emphasizes packaging as a design goal: binaries are available from upstream releases, Linux distributions package it, Homebrew and MacPorts cover macOS installs, winget covers Windows, and Go users can install from the module path.

Its adoption niche is clearest on Linux, where the README contrasts it with Git Credential Manager's broader feature set and heavier .NET packaging footprint. The helper is deliberately narrow: it generates credentials and composes with storage helpers such as cache, osxkeychain, wincred, or libsecret.

### How it is used

A typical setup runs `git credential-oauth configure` or adds `helper = oauth` after a storage helper in `~/.gitconfig`. Git then asks storage helpers first and falls through to the OAuth helper only when it needs a fresh credential.

Users authenticate to hosts such as GitHub, GitLab, Bitbucket, Gerrit, Gitea, Forgejo, or googlesource by browser flow. On systems without a browser, the README documents `oauth -device` for OAuth device flow where supported.

### Why package nerds care

git-credential-oauth matters in package-manager culture because it is a small credential-generating helper with a simple Go build, cross-platform binaries, and distribution packages. It gives Unix users a lightweight alternative to large credential managers while still fitting Git's helper chain.

It also shows a post-password Git authentication pattern: package a helper that can mint host tokens, then rely on Git's existing storage helpers to persist them.

### Timeline

- 2022: The repository begins and v0.0.1 is tagged with GoReleaser packaging.
- 2023: v0.2.0 adds custom host configuration.
- 2023: v0.7.0 adds token refresh support.
- 2024: v0.13.x adds OAuth device-flow configuration keys.
- 2025: v0.16.0 adds dark-mode support for the authentication page.
- 2026: v0.17.x adds Forgejo recognition and device-flow configuration fixes.

### Related projects

- Git Credential Manager is the broader credential-manager project compared in the README.
- git-credential-cache, git-credential-libsecret, git-credential-osxkeychain, and git-credential-wincred are common storage helpers used before git-credential-oauth in Git's helper list.
- git-credential-azure is a related Hickford helper for Azure Repos authentication.

### Sources

- <https://git-scm.com/docs/gitcredentials documents Git's helper chain and names git-credential-oauth as a popular OAuth helper.>
- <https://github.com/hickford/git-credential-oauth documents the motivation, supported hosts, installation, configuration, comparison with Git Credential Manager, and design philosophy.>
- <https://github.com/hickford/git-credential-oauth/releases documents tagged release progression.>


## Security Notes

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.gitconfig
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-credential-oauth
- **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

## Other Package-Manager Records

- Debian apt - git-credential-oauth - 0.15.0-1+b2: normalized package name match | Debian stable package indexes: git-credential-oauth from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git credential helper for GitHub and other forges using OAuth | https://github.com/hickford/git-credential-oauth
- Nix - git-credential-oauth: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-credential-oauth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-credential-oauth - 0.11.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: git-credential-oauth from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git credential helper for GitHub and other forges using OAuth | https://github.com/hickford/git-credential-oauth
- apk - git-credential-oauth - 0.15.1-r10: normalized package name match | Alpine Linux edge package indexes: git-credential-oauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth | https://github.com/hickford/git-credential-oauth
- apk - git-credential-oauth-doc - 0.15.1-r10: normalized package name match | Alpine Linux edge package indexes: git-credential-oauth-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth (documentation) | https://github.com/hickford/git-credential-oauth
- dnf - git-credential-oauth - 0.17.2-4.fc45: normalized package name match | Fedora Rawhide package metadata: git-credential-oauth from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth | https://github.com/hickford/git-credential-oauth
- pacman - git-credential-oauth - 0.17.2-2: normalized package name match | Arch Linux sync databases: git-credential-oauth from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Git credential helper that securely authenticates to GitHub, GitLab, BitBucket, Gerrit and other forges using OAuth | https://github.com/hickford/git-credential-oauth
- zypper - git-credential-oauth - 0.17.2-1.4: normalized package name match | openSUSE Tumbleweed package metadata: git-credential-oauth from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Git credential helper that authenticates to GitHub and other forges using OAuth | https://github.com/hickford/git-credential-oauth
- MacPorts - git-credential-oauth: normalized package name match | MacPorts ports tree: security/git-credential-oauth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/git-credential-oauth: normalized package name match | Scoop official bucket manifest trees: bucket/git-credential-oauth.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - hickford.git-credential-oauth: normalized package name match | Windows Package Manager source index: hickford.git-credential-oauth from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [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.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [git-credential-libsecret](https://www.automicvault.com/pkg/brew/git-credential-libsecret/) - Shares av.db curated category or tags: cli, credential-management, credentials, git, security.
- [keyring](https://www.automicvault.com/pkg/brew/keyring/) - Shares av.db curated category or tags: cli, credential-management, credentials, security.
- [libsecret](https://www.automicvault.com/pkg/brew/libsecret/) - Shares av.db curated category or tags: cli, credential-management, credentials, security.
- [trufflehog](https://www.automicvault.com/pkg/brew/trufflehog/) - Shares av.db curated category or tags: cli, credentials, git, security.
- [git-crypt](https://www.automicvault.com/pkg/brew/git-crypt/) - Shares av.db curated category or tags: cli, git, security.
- [git-hound](https://www.automicvault.com/pkg/brew/git-hound/) - Shares av.db curated category or tags: cli, git, security.
- [git-remote-gcrypt](https://www.automicvault.com/pkg/brew/git-remote-gcrypt/) - Shares av.db curated category or tags: cli, git, security.
- [git-secrets](https://www.automicvault.com/pkg/brew/git-secrets/) - Shares av.db curated category or tags: cli, git, security.

## Combined YAML source

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


## Sources

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