Back to AI agents

RedReplier CLI

Drive RedReplier from your terminal or a script. One binary, no runtime to manage, and every command can print JSON.

Install

Pick whichever fits your machine. The Homebrew and curl routes install a standalone binary, so Node is not needed.

npm
npm install -g @redreplier/cli
Homebrew (macOS, Linux)
brew trust RedReplier/tap && brew install RedReplier/tap/redreplier
Install script (macOS, Linux)
curl -fsSL https://redreplier.com/install.sh | sh
Run once, without installing
npx -p @redreplier/cli redreplier --help

Homebrew 7 refuses to load a formula from a third-party tap until you trust it, which is what brew trust does. Skip it and both install and upgrade stop with "Refusing to load formula from untrusted tap".

The install gives you two names for the same program. The short one is rr.

Authentication

Create an API token and hand it to login. Tokens live in your workspace settings: API & AI Agents.

redreplier login

The command opens the token page, reads the token from a hidden prompt, checks the redreplier_ prefix locally, then verifies it with one API call before writing it to disk at mode 0600. Nothing is stored if the check fails.

In CI, pipe the token in and skip the prompt

echo "$MY_SECRET" | redreplier login --token-stdin

Or skip storage entirely and pass it per command

REDREPLIER_API_TOKEN=redreplier_your_token redreplier whoami

Quick start

List the strongest untriaged leads and print score and link, one per line.

redreplier mentions --min-score 70 --status NEW --json \
  | jq -r '.data[] | "\(.score)\t\(.url)"'

Commands

Every command takes --help, and most take --json. Run redreplier doctor first if something looks wrong.

Getting in

redreplier loginStore an API token on this machine, after checking it works
redreplier logoutRemove the stored token
redreplier whoamiShow which token is in use and what it can see

Everyday work

redreplier siteMonitored websites and the description mentions are scored against
redreplier keywordAdd, reword, disable and activate the keywords a site listens for
redreplier mentionRead, filter and triage lead mentions across Reddit, Hacker News, X and Bluesky
redreplier alertsHow often email digests go out

Escape hatches

redreplier apiSend an authenticated request to any API endpoint
redreplier mcpPrint the MCP server config for your editor
redreplier openOpen a page of the web app in your browser

This machine

redreplier configRead and write CLI preferences
redreplier doctorCheck this machine, the config files and the API
redreplier completionPrint the shell completion script

Each command lists its own flags under redreplier <command> --help.

Scripting

Add --json to any command and you get a stable envelope with ok, command and data, ready for jq.

redreplier whoami --json

You rarely need the flag. Output switches to JSON on its own when stdout is not a terminal or CI is set, so a piped command already gives you JSON.

Exit codes

0Success
2Usage error, such as a missing or unknown flag
3The token was rejected or is missing
4Nothing matched that id
5The API rejected the input
7Too many requests
8Network failure or timeout
9Plan or quota limit reached

Next steps

Create a token, or wire the same account into an AI agent instead.