httpmon HTTP traffic CLI
See what a command sends and gets back over HTTP.
Put httpmon in front of a command like curl to see its HTTP traffic; keep it in a session to query, diff or replay.
Host: proxy.golang.org · Accept: */* · User-Agent: curl/8.7.1
Content-Type: text/plain; charset=UTF-8 · Content-Length: 91
v1.3.0 v1.0.2 v1.0.0 v1.1.1 v1.4.1 … - 3 platforms: macOS, Windows, Linux
- Opt-in online only when you ask
- MIT open-source licence
- v5.1.0 latest release
Record, compare and replay
-
HTTP/2, gRPC, WebSocket
gRPC messages are decoded without a schema; every WebSocket message shows as it passes.
-
Sessions to query
--sessionkeeps every exchange forqueryto search,diffto compare across runs andreplayto re-send. -
Mocks and faults
Answer, delay, reset or redirect matching requests to test failure paths without touching the server.
-
Standing proxy
httpmon proxycaptures browsers, phones, containers and running services that httpmon does not start. -
Output for agents
Off a terminal the output is compact, one line per exchange, and
httpmon mcpserves sessions to an agent’s MCP client.
Get started
go install needs Go 1.26+. On Windows, use install.ps1 or a binary from GitHub Releases.
-
Install (Linux, macOS)
curl -fsSL https://github.com/hxddh/https-traffic-inspector/releases/latest/download/install.sh | sh -
Or install with Go
go install github.com/hxddh/https-traffic-inspector/v5/cmd/httpmon@latest -
Wrap a command and watch its traffic
httpmon curl https://api.github.com/users/octocat
FAQ
Which commands can it wrap?
Any proxy-aware command, such as curl, aws, Python, Node, Java, git, cargo or Deno.
- Only that child process gets the proxy address and CA; your system settings stay as they are.
- Go programs skip the proxy for loopback targets.
- A JVM already running before httpmon started, such as a Gradle daemon, is not configured.
Does it still check certificates?
Yes. Because httpmon terminates TLS, it verifies each server’s real certificate on the command’s behalf; a failure is a 502 with a tls_verify error. --insecure-upstream turns that off; use it only against hosts you control.
Does it diagnose storage errors?
No. httpmon shows the traffic and leaves the judgment to you. To diagnose S3-compatible storage errors in Pi, the open-source terminal coding agent, use StorageOps, which captures traces through httpmon. Open StorageOps