oha
$ oha Community Med Riskoha is a high-performance Rust HTTP/1.1 & HTTP/2 load generator inspired by rakyll/hey. While interactive runs show a live TUI, passing --no-tui --output-format json produces clean, machine-readable latency and throughput JSON.
brew install oha Runs high-throughput local or staging HTTP benchmarks with structured JSON summaries directly in shell.
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
First-class --output-format json (and csv) plus --no-tui, though agents must remember --no-tui or TTY-less detection details.
- Supports
--no-tui,--output-format json|csv|quiet, and-o
Defaults to bounded 200 requests, with -t timeouts; high concurrency can overload external targets if misused.
- Finite default
-n 200and per-request-ttimeout flag
Single Rust binary distributed via Homebrew, Cargo, and GitHub Releases.
- Cross-platform binary via
brew,cargo, and releases
Fast Rust engine with JSON schema, dynamic URL lists, HTTP/2, and RPS rate limiting (-q).
- Structured JSON output with percentiles, RPS, and status breakdown
Actively maintained community Rust project (hatoo/oha) under MIT license.
- Active
hatoo/ohaGitHub repository
Clear README and schema.json documenting the JSON output format.
- Published JSON schema (
schema.json) in repository
Security, Auth & Guardrails
Accepts transient -H auth headers per run; stores no credentials.
Free, MIT open-source Rust binary.
# oha Agent Rules - Always pass `--no-tui --output-format json` so `oha` never enters interactive TUI mode in agent shells. - Keep `-n` or `-z` bounded and never benchmark production or external third-party hosts without approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
oha --no-tui --output-format json -n 200 -c 10 -t 5s http://localhost:8080/health
Disables the interactive TUI (--no-tui) and prints structured summary metrics in JSON.
Controlled Writes & Previews
oha --no-tui --output-format json -o bench.json -n 100 -c 5 -m POST -H 'Content-Type: application/json' -d '{"ok":true}' http://localhost:8080/api Saves structured JSON latency percentiles and RPS stats to bench.json.
Strengths for Agents
- +
--no-tui --output-format jsonoutputs clean, schema-backed JSON metrics. - + Supports
--latency-correctionand constant-RPS (-q) rate limiting.
Caveats & Pitfalls
- ! Interactive TUI is enabled by default unless
--no-tuiis specified.