@autoprise/cli
v15.31.1
Published
AutoPriseAi command-line interface — talk to your AutoPrise instance from any terminal.
Maintainers
Readme
@autoprise/cli
Command-line client for AutoPriseAi. Talk to your AutoPrise instance from any terminal — your laptop, the VM, Termux on Android, a cloud shell, anywhere with Node 18+ and internet access.
Install
npm install -g @autoprise/cliRequires Node 18 or higher.
First-time setup
autoprise login
# Endpoint URL: https://api.utilization-tracker.online (or http://localhost:3000 on the host)
# API key: <paste the value of API_KEY from your backend .env>Credentials are stored in ~/.autoprise/config.json (mode 600 on Unix). The API key is the same one the dashboard, mobile app, and extension use — find it in <repo>/.env as API_KEY=....
Non-interactive:
autoprise login --endpoint https://api.utilization-tracker.online --key <key>Commands
| Command | What it does |
|---|---|
| autoprise login | Save endpoint + API key for this machine |
| autoprise status | Backend health, version, skill/conversation counts |
| autoprise chat "<msg>" | Send a message to the brain; print the response |
| autoprise agents list | List all agents across all orgs |
Every command supports --json for pipe-friendly output.
Examples
# Talk to the brain
autoprise chat "what's running right now?"
# Pipe stdin into the brain
cat error.log | autoprise chat "what went wrong here?"
# Filter agents by org
autoprise agents list --org JobRadar
# Use jq on the JSON output
autoprise agents list --json | jq '.[].agents[] | select(.lastRunStatus == "completed") | .name'Endpoint options
| Where you're running the CLI | Endpoint to use |
|---|---|
| The host machine (where the backend runs) | http://localhost:3000 |
| Any other device on your LAN | http://<host-LAN-IP>:3000 |
| Anywhere on the internet | https://api.utilization-tracker.online (via Cloudflare Tunnel) |
How it works
Thin HTTPS client over the AutoPriseAi REST API (src/core/api-routes.ts). Auth is the standard Authorization: Bearer <API_KEY> header — same surface as the dashboard and mobile app. The CLI adds no new backend endpoints.
For the network setup behind api.utilization-tracker.online, see docs/CLOUDFLARE_TUNNEL_SOP.md in the monorepo.
Development
To work on the CLI itself (not just use it), clone the monorepo:
git clone https://github.com/AutoPriseAI/AutoPriseAi.git
cd AutoPriseAi/cli
npm install
npm run build
npm link # makes the local build available as `autoprise`Source layout:
cli/src/
├── index.ts # commander entry — registers all commands
├── config.ts # ~/.autoprise/config.json read/write
├── client.ts # fetch wrapper with Bearer auth + ApiError
├── output.ts # printJson / table / fail helpers
└── commands/
├── login.ts # prompt or flags → save endpoint + apiKey
├── status.ts # GET /status
├── chat.ts # POST /api/chat (also reads stdin)
└── agents.ts # GET /api/orgs → table or --jsonLicense
ISC
