The unified openwhispr command-line tool. Works against either the local
desktop app (via a loopback HTTP bridge) or the cloud REST API, with
auto-detection.
npm i -g @openwhispr/cliRequires Node.js >= 20.
# If the desktop app is running, this just works:
openwhispr notes list
# Otherwise, configure remote access:
openwhispr auth login # paste an owk_live_... API key
openwhispr notes list
# Diagnose connectivity to both backends:
openwhispr doctorThe CLI picks a backend in this order:
- Explicit flag:
--localor--remote - Env var:
OPENWHISPR_BACKEND=auto|local|remote - Config file:
~/.openwhispr/cli-config.json→backend - Auto (default): try local first, fall back to remote, fail if neither is configured
~/.openwhispr/cli-config.json(mode0600) — CLI config plus API key~/.openwhispr/cli-bridge.json(mode0600, written by the desktop app) — port + bearer token for the local bridge
| CLI version | Min desktop version | Min API version |
|---|---|---|
| 0.1.x | TBD | TBD |
The desktop bridge contract is versioned at /v1/. Breaking changes ship
under a new major version.
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | User error (bad args, missing flag) |
| 2 | Backend unreachable |
| 3 | Auth failure |
| 4 | Not found |
| 5 | Safety gate refused |
openwhispr doctor
openwhispr version
openwhispr auth login | logout | status
openwhispr config get | set <key> <value>
openwhispr notes list | get | create | update | delete | search
openwhispr folders list | create
openwhispr transcriptions list | get | delete
openwhispr audio delete <transcription-id>
Run openwhispr <command> --help for full flags.