Getting started
rivr is a read-only Amazon Shopping CLI for AI agents and humans. It searches the
catalog and returns product detail, offers, reviews, and variations as structured JSON through
a pluggable backend. It never adds to cart or buys — the terminal output is data plus a
canonical /dp/<ASIN> deep link.
Install
Section titled “Install”# Homebrew (macOS / Linux)brew install rnwolfe/tap/rivr
# Go (any platform; static binary, no CGO)go install github.com/rnwolfe/rivr/cmd/rivr@latestOr download a prebuilt binary from Releases (checksums + SBOM + provenance included).
First result in <60s (no account)
Section titled “First result in <60s (no account)”The stub backend returns fixtures, so you can explore the shape with no key and no network:
RIVR_PROVIDER=stub rivr search "usb-c cable" --jsonRIVR_PROVIDER=stub rivr item get B0CXYZ123 --detailed --jsonrivr schema | jq '{read_only: .safety.read_only, exit_codes}'Against real data
Section titled “Against real data”The lowest-friction real backend is SerpApi (renewing free tier). The key is read from stdin, never as a flag:
printf %s "$SERPAPI_KEY" | rivr auth login --provider serpapirivr auth status --provider serpapi --json # actively tests the keyrivr search "mechanical keyboard" --prime --min-rating 4 --jsonNo key at all? On a home/residential connection you can use the keyless scraper (opt-in; see Backends for the Amazon-ToS caveats):
RIVR_SCRAPE_ENABLE=1 rivr --provider scrape search "usb-c cable" --jsonNext steps
Section titled “Next steps”- Backends — choose by capability, cost, and risk.
- Authentication & security — credential storage,
doctor, threat model. - Commands — the full command/flag reference.
- For agents — the contract an LLM agent relies on.