Install
Install with npm. You need Node.js 20 or later.npx -y @stophy/cli@latest init --all --browser installs the CLI, adds Stophy’s agent skills to your project, and logs in, in one command.
Authenticate
Log in with your browser:login or set it as an environment variable:
Make a call
Name the source, then the command:stophy <source> --help to see what a source can do, and stophy <source> <command> --help for every option on one command. If you give a value an option does not accept, the CLI stops before it calls Stophy and lists which values work.
Get markdown
Markdown is the default. Add--json to get the data as JSON instead, with the credits used printed to stderr:
Page through results
When there are more results, the output ends with a cursor. Pass it back to get the next page:Save the output
-o <path> writes the output to a file instead of stdout:
Handle errors and retries
A failed call exits non-zero and writes its message to stderr. When the API says to wait, the message ends withRetry after Ns. and the CLI does not retry for you:
stophy status first to check your account is live before a batch of calls.
Check your account
status shows your login and balance. usage shows your balance and all-time usage. logs shows your recent requests.