Skip to content

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.

Terminal window
# Homebrew (macOS / Linux)
brew install rnwolfe/tap/rivr
# Go (any platform; static binary, no CGO)
go install github.com/rnwolfe/rivr/cmd/rivr@latest

Or download a prebuilt binary from Releases (checksums + SBOM + provenance included).

The stub backend returns fixtures, so you can explore the shape with no key and no network:

Terminal window
RIVR_PROVIDER=stub rivr search "usb-c cable" --json
RIVR_PROVIDER=stub rivr item get B0CXYZ123 --detailed --json
rivr schema | jq '{read_only: .safety.read_only, exit_codes}'

The lowest-friction real backend is SerpApi (renewing free tier). The key is read from stdin, never as a flag:

Terminal window
printf %s "$SERPAPI_KEY" | rivr auth login --provider serpapi
rivr auth status --provider serpapi --json # actively tests the key
rivr search "mechanical keyboard" --prime --min-rating 4 --json

No key at all? On a home/residential connection you can use the keyless scraper (opt-in; see Backends for the Amazon-ToS caveats):

Terminal window
RIVR_SCRAPE_ENABLE=1 rivr --provider scrape search "usb-c cable" --json