Run campaigns from your terminal
The ryhive CLI does what the app does, from a shell or a script. Pause a campaign, pull hot leads, check spend or read what autopilot changed, with JSON output when a script is reading.
$ ryhive campaigns pause "Retail DCs"
Paused Retail DCs. Queued emails were cancelled, and replies still arrive.
$ ryhive spend --month
Spent this month: $386.00 of $900.00.Install, add your key, run a command
The CLI reads your key from RYHIVE_KEY and uses the same limits and audit log as the API.
npm install -g @ryhive/cli
export RYHIVE_KEY=rh_live_...
ryhive campaigns listCommands you'll use most
| Command | What it does |
|---|---|
| ryhive campaigns list | Every campaign with its state, spend and days of leads left |
| ryhive campaigns pause "Retail DCs" | Pause one campaign. Replies still arrive |
| ryhive leads --hot --since 24h | Hot leads with the reason each one is hot |
| ryhive spend --month | This month's spend against your cap |
| ryhive decisions --today | What autopilot changed, and why |
| ryhive mcp | Run a local MCP server for assistants on your machine |
- Add --json to any command for output a script can read
- Typed exit codes, so a script can tell a bad key from an empty balance
- The same key, limits and audit log as the API
CLI questions
Can I use ryhive's CLI in scripts?
Yes. Every ryhive CLI command can print JSON, and typed exit codes tell a script what went wrong, such as a bad key or an empty balance.
Which key does the CLI use?
ryhive's CLI uses the same key as the API, read from the RYHIVE_KEY environment variable, with the same limits and audit log.
Does the CLI work as an MCP server?
Yes. Run ryhive mcp and the CLI serves ryhive over MCP on your machine, for assistants that prefer a local server.
See who buys from you
Paste your website to request early access. If we let you in, you'll see 10 leads, each with the reason it fits, before you spend anything.