HTTPie CLI
$ http Official Med RiskHTTPie (http / https) turns verbose curl invocations into readable key=value and Header:Value syntax while defaulting to JSON payloads. Agents benefit from --print=hb, --check-status, and --offline dry-run inspection.
brew install httpie Native shell CLI for human-readable and scriptable HTTP calls; faster and simpler than routing API probes through an MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
JSON-first syntax, --offline request preview, --check-status exit codes, and automatic non-TTY color suppression.
- Supports
--offline,--check-status,--pretty=none, and--print=b
--offline allows safe request preview; named --session files persist auth headers on disk if explicitly requested.
- Supports
--offlinedry-run mode without touching remote endpoints
Available via brew, pip, and uvx, though Python runtime startup is noticeably slower than curl or xh.
- Python CLI distributed via Homebrew and PyPI
Very concise JSON body construction (:= for numbers/booleans) reduces shell quoting errors.
- Native JSON key=value and key:=json request builder
Official httpie/cli project under BSD-3-Clause.
- Maintained by HTTPie (
httpie/cli)
Clear official CLI docs and cheat sheets.
- Official docs at httpie.io/docs/cli
Security, Auth & Guardrails
Stores optional named session cookies and auth headers in ~/.config/httpie/sessions/ as JSON files.
Free, BSD-3-Clause open-source CLI.
# HTTPie Agent Rules - Always pass `--check-status` so 4xx/5xx responses fail with non-zero exit codes. - Use `--offline` to preview mutating `POST`/`DELETE` requests before executing them.
Agent-Ready Command Recipes
Safe Read-Only Queries
http --check-status --pretty=none GET https://api.github.com/zen
Returns non-zero exit code on 4xx/5xx (--check-status) and disables ANSI colors (--pretty=none).
http --offline POST https://api.example.com/items name=widget count:=3
Prints the exact serialized HTTP request without sending any network traffic.
Controlled Writes & Previews
http --check-status --timeout=15 POST https://httpbin.org/post active:=true label=demo
Sends JSON fields with typed booleans (:=) and fails cleanly on HTTP errors.
Strengths for Agents
- +
--offlinelets agents inspect exact HTTP requests before mutating remote APIs. - + JSON-by-default
key=value/key:=typesyntax avoids nested shell-quoting bugs. - +
--check-statusmaps 4xx/5xx responses to non-zero exit codes.
Caveats & Pitfalls
- ! Python startup latency (~150–300 ms) is slower than Rust (
xh) or C (curl). - ! Without
--check-status, HTTP 4xx/5xx responses still exit0.