Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

HTTPie CLI

$ http Official Med Risk
HTTPie · Browser & Web · BSD-3-Clause · macos / linux / windows

HTTPie (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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install httpie
CLI vs MCP Decision CLI Only

Native shell CLI for human-readable and scriptable HTTP calls; faster and simpler than routing API probes through an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

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
Trust & Safety 21 / 25

--offline allows safe request preview; named --session files persist auth headers on disk if explicitly requested.

  • Supports --offline dry-run mode without touching remote endpoints
Setup & Portability 13 / 15

Available via brew, pip, and uvx, though Python runtime startup is noticeably slower than curl or xh.

  • Python CLI distributed via Homebrew and PyPI
Utility & Efficiency 13 / 15

Very concise JSON body construction (:= for numbers/booleans) reduces shell quoting errors.

  • Native JSON key=value and key:=json request builder
Maintenance & Lineage 9 / 10

Official httpie/cli project under BSD-3-Clause.

  • Maintained by HTTPie (httpie/cli)
Docs & Verifiability 9 / 10

Clear official CLI docs and cheat sheets.

  • Official docs at httpie.io/docs/cli

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Stores optional named session cookies and auth headers in ~/.config/httpie/sessions/ as JSON files.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free, BSD-3-Clause open-source CLI.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Fetch JSON body with HTTP error exit status
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).

Preview a raw HTTP request offline
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

Send a typed JSON POST request
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

  • + --offline lets agents inspect exact HTTP requests before mutating remote APIs.
  • + JSON-by-default key=value / key:=type syntax avoids nested shell-quoting bugs.
  • + --check-status maps 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 exit 0.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI