ghx

module
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT

README ΒΆ

ghx β€” GitHub CLI Cache Proxy

CI Release Go Report Card

ghx Dashboard

A caching proxy for the GitHub CLI (gh) that eliminates redundant API calls, prevents rate limiting, and dramatically speeds up repeated commands.

Built for AI agent workflows where multiple agents (Copilot CLI, coding agents, MCP servers) hammer the same gh commands simultaneously.

Highlights

  • πŸš€ 10x faster cached responses (~0.1s vs ~1s)
  • πŸ”„ Singleflight coalescing β€” 5 agents asking the same thing = 1 API call
  • 🎯 Allowlist-based β€” only caches known-safe read-only commands
  • 🧹 Auto-invalidation β€” mutations flush related cache entries
  • πŸ“Š Web dashboard β€” real-time hit rates, per-command stats, request log
  • πŸ”Œ Drop-in replacement β€” just use ghx instead of gh
  • πŸ“¦ No gh required β€” auto-downloads GitHub CLI on first use if not installed

Quick Start

Install
# macOS (Homebrew)
brew tap brunoborges/tap && brew install ghx

# macOS / Linux (script)
curl -fsSL https://raw.githubusercontent.com/brunoborges/ghx/main/install.sh | bash

# Windows (PowerShell)
irm https://raw.githubusercontent.com/brunoborges/ghx/main/install.ps1 | iex

See the full documentation for manual download, building from source, and agent plugin setup.

Usage

Use ghx exactly like gh β€” the daemon starts automatically on first use:

ghx pr list --repo owner/repo --json number,title   # cached
ghx issue view 42 --json title,state                 # cached
ghx pr create --title "My PR" --body "Description"   # mutation β€” passes through
First call:   ghx pr list ...   β†’ 1.1s (cache miss, calls gh)
Second call:  ghx pr list ...   β†’ 0.1s (cache hit, instant)

Documentation

πŸ“– Full documentation β€” install options, configuration, daemon & cache management, what gets cached, architecture, and more.

License

MIT

Directories ΒΆ

Path Synopsis
src
cmd/ghx command
cmd/ghxd command
internal/ghcli
Package ghcli manages the discovery and installation of the real GitHub CLI (gh) binary.
Package ghcli manages the discovery and installation of the real GitHub CLI (gh) binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL