Install oha
masterYou can install oha using several methods depending on your operating system and preferred package manager.
Via Cargo (Rust)
Requires make and cmake prerequisites.
cargo install ohaOptional Features:
- Use
native-tlsinstead ofrustls:cargo install --no-default-features --features native-tls oha - Enable
vsocksupport:cargo install --features vsock oha - Enable experimental
http3support (requiresrustls):cargo install --features http3 oha
Package Managers
- Arch Linux:
pacman -S oha - macOS (Homebrew):
brew install oha - Windows (winget):
winget install hatoo.oha - Debian: Add Azlux's repository and use
apt install oha. - X-CMD (Linux, macOS, Windows WSL/GitBash):
x env use oha
Containerized
- Official Docker Image:
ghcr.io/hatoo/oha - Local Build:
docker build -t hatoo/oha:latest . - Run via Docker:
docker run --rm -it --network=host hatoo/oha:latest <URL>
cargo install oha