Skip to content

OpenWhispr/openwhispr-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@openwhispr/cli

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.

Install

npm i -g @openwhispr/cli

Requires Node.js >= 20.

Quick start

# 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 doctor

Backend selection

The CLI picks a backend in this order:

  1. Explicit flag: --local or --remote
  2. Env var: OPENWHISPR_BACKEND=auto|local|remote
  3. Config file: ~/.openwhispr/cli-config.jsonbackend
  4. Auto (default): try local first, fall back to remote, fail if neither is configured

Files

  • ~/.openwhispr/cli-config.json (mode 0600) — CLI config plus API key
  • ~/.openwhispr/cli-bridge.json (mode 0600, written by the desktop app) — port + bearer token for the local bridge

Compatibility matrix

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.

Exit codes

Code Meaning
0 Success
1 User error (bad args, missing flag)
2 Backend unreachable
3 Auth failure
4 Not found
5 Safety gate refused

Command surface

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors