macOS
brew install xhlocal Homebrew formula metadata
brew
xh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install xhlocal Homebrew formula metadata
sudo apk add xhAlpine Linux edge package indexes · xh · ソース: dl-cdn.alpinelinux.org
nix profile install nixpkgs#xhnixpkgs package indexes · pkgs/by-name/xh/xh/package.nix · ソース: api.github.com
sudo pacman -S xhArch Linux sync databases · xh · ソース: geo.mirror.pkgbuild.com
sudo zypper install xhopenSUSE Tumbleweed package metadata · xh · ソース: download.opensuse.org
scoop install main/xhScoop official bucket manifest trees · bucket/xh.json · ソース: api.github.com
winget install --id ducaale.xh -eWindows Package Manager source index · ducaale.xh · ソース: cdn.winget.microsoft.com
概要
Friendly and fast tool for sending HTTP requests
履歴
xh is a Rust command-line HTTP client that deliberately follows HTTPie's human-friendly request syntax while focusing on speed, portability, and a single-binary feel. It ships the `xh` command for ordinary requests and commonly also `xhs` for HTTPS-first invocation.
The GitHub repository was created on 2020-09-10. From its README, the central project premise has been stable: reimplement as much as possible of HTTPie's design, but with improved performance. That places xh in a specific generation of Rust CLI rewrites that kept beloved command-line UX while replacing heavier runtimes with compiled binaries.
The tool grew into a broad HTTP client rather than a minimal curl wrapper. Its documented options cover JSON/form/multipart bodies, pretty output, auth modes, sessions, redirects, downloads, proxies, TLS settings, HTTP/2 and HTTP/3 prior-knowledge modes, Unix sockets, offline request construction, curl command generation, completions, and manpage generation.
xh's adoption story is unusually package-manager oriented. The README lists installation through Cargo, Homebrew, MacPorts, Nixpkgs, Alpine, Arch, Debian/Ubuntu, Fedora COPR, FreeBSD, NetBSD, Termux, Scoop, Chocolatey, Winget, and other managers, plus prebuilt binaries for Linux, macOS, and Windows.
By July 2026 the GitHub repository had about 7.9k stars, showing that xh had become one of the recognizable modern alternatives in the terminal HTTP-client space. Its strongest adoption path is among developers who like HTTPie's request syntax but want Rust startup speed and simpler binary distribution.
Typical use mirrors HTTPie: `xh GET example.com`, `xh POST :3000/users name=Ana`, headers with `Header:Value`, query parameters with `==`, JSON literals with `:=`, file upload items with `@`, and localhost shorthand such as `:8000`. The README also documents stdin/file request bodies, nested JSON paths, sessions, downloads, redirects, and output selection.
The package is useful in API testing, shell scripts, local service debugging, documentation snippets, and CI smoke checks where curl is too terse and a full API client is too heavy. The `xhs` alias/symlink convention gives a small packaging detail that matters: package installs can expose both HTTP-default and HTTPS-default entry points.
xh is a clean example of the modern Rust CLI packaging pattern: a familiar UX borrowed from an established tool, fast native binaries, broad package-manager availability, and generated shell/manpage assets. It competes not by inventing a new HTTP grammar, but by making an existing ergonomic grammar cheap to install and fast to run.
For package nerds, xh also shows how compatibility can be a product feature. Its value comes from preserving enough HTTPie muscle memory that package users can swap tools without relearning request-item syntax.
セキュリティ状態
broad file, network, media, or database tool signal.
リスク blue · 信頼度 中 · tool
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
xh | cli | グローバル実行可能ファイル | |
xhs | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:xh |
|---|---|
| バージョン | 0.26.1 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/xh |
| ホームページ | https://github.com/ducaale/xh |
| リポジトリ | https://github.com/ducaale/xh |
| 上流ドキュメント | https://github.com/ducaale/xh#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/ducaale/xh/archive/refs/tags/v0.26.1.tar.gz |
| 最終更新 | 2026-06-20T00:41:08Z |
| Pulse | updated |
| ビルド依存関係 | rust |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | xh |
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
xh 0.24.0-1+b1
Friendly and fast tool for sending HTTP requests
sudo apt install xhxh
nix profile install nixpkgs#xhxh 0.24.0-r0
Yet another HTTPie clone
sudo apk add xhxh-bash-completion 0.24.0-r0
Bash completions for xh
sudo apk add xh-bash-completionxh-doc 0.24.0-r0
Yet another HTTPie clone (documentation)
sudo apk add xh-docxh-fish-completion 0.24.0-r0
Fish completions for xh
sudo apk add xh-fish-completionxh-zsh-completion 0.24.0-r0
Zsh completions for xh
sudo apk add xh-zsh-completionxh 0.25.3-1
Friendly and fast tool for sending HTTP requests
sudo pacman -S xhxh 0.25.3-1.3
Tool for sending HTTP requests
sudo zypper install xhxh
sudo port install xhmain/xh
scoop install main/xhducaale.xh
winget install --id ducaale.xh -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.