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

oha

$ oha Community Med Risk
hatoo (OSS) · Browser & Web · MIT · macos / linux / windows

oha 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.

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

Runs high-throughput local or staging HTTP benchmarks with structured JSON summaries directly in shell.

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 22 / 25

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

Defaults to bounded 200 requests, with -t timeouts; high concurrency can overload external targets if misused.

  • Finite default -n 200 and per-request -t timeout flag
Setup & Portability 14 / 15

Single Rust binary distributed via Homebrew, Cargo, and GitHub Releases.

  • Cross-platform binary via brew, cargo, and releases
Utility & Efficiency 14 / 15

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
Maintenance & Lineage 8 / 10

Actively maintained community Rust project (hatoo/oha) under MIT license.

  • Active hatoo/oha GitHub repository
Docs & Verifiability 8 / 10

Clear README and schema.json documenting the JSON output format.

  • Published JSON schema (schema.json) in repository

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Accepts transient -H auth headers per run; stores no credentials.

Side Effects
Read-Only Remote Write
Cost & Quotas

Free, MIT open-source Rust binary.

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

Run headless JSON load benchmark against localhost
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

Write JSON benchmark report for a POST endpoint
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 json outputs clean, schema-backed JSON metrics.
  • + Supports --latency-correction and constant-RPS (-q) rate limiting.

Caveats & Pitfalls

  • ! Interactive TUI is enabled by default unless --no-tui is specified.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI