xh
HTTP client that reimplements HTTPie's syntax with focus on improved performance and speed.
xh is an HTTP client that reimplements HTTPie's command-line interface with a focus on performance improvements. It provides a familiar syntax for sending HTTP requests with support for JSON and form data, headers, query parameters, and file uploads. The tool uses HTTPie's request-item syntax where = sets JSON fields, == adds query strings, : manages headers, and @ includes files in multipart requests.
The tool supports advanced HTTP features including authentication (basic, bearer, digest), SSL/TLS configuration, proxy support, session management, and HTTP/2 and HTTP/3 protocols. It can stream responses, follow redirects, and download files with resume capability. xh includes URL shorthand notation where :3000/users resolves to localhost:3000/users, and supports HTTPS-by-default when invoked as xhs.
xh includes a strict HTTPie compatibility mode when invoked as http or https, making it suitable as a drop-in replacement. The tool can output curl command translations and generate shell completions. It's designed for developers, DevOps engineers, and API testers who need a fast, feature-rich HTTP client for testing and debugging web services.
Installation
# via Homebrew
brew install xh
# via Cargo
cargo install xh --locked
# via Apt
sudo apt install xh

Alternatives & related tools
trippy
Network analysis tool combining traceroute and ping functionality for diagnosing networking issues
miniserve
Single-binary, cross-platform CLI HTTP file server with auth, uploads, TLS, WebDAV, QR codes, and on-the-fly tar.gz/zip directory downloads.
sshx
Shares a terminal session over the web with a single command, with real-time cursors, an infinite canvas of windows, and end-to-end encryption.
websocat
Command-line WebSocket client and server, like netcat, curl and socat for ws:// and wss://, with TCP/UNIX socket proxying and program execution.
spotify_player
Terminal Spotify client with streaming, Spotify Connect remote control, synced lyrics, audio visualization, daemon mode, and CLI commands. Requires Premium.
add a badge to your README
Maintain xh? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/xh?utm_source=badge)<a href="https://www.trmn.sh/tools/xh?utm_source=badge"><img src="https://www.trmn.sh/badge/xh.svg" alt="Featured on trmn" height="20"></a>