Command line
The glimpse command reads your History, dictionary and Library, drives the app (transcribe, record, switch models), and runs the speech engine on its own. Finder Quick Actions, Shortcuts, Raycast, agents and shell scripts can all use it.
Install
- Open Settings, About.
- Under Command line, click Install CLI.
This adds ~/.local/bin/glimpse. If your shell can't find it, add ~/.local/bin to your PATH and open a new terminal. About shows when it's missing. It needs a license or the trial. Uninstall is in the same place.
How it works
- Reads work without the app.
history,dictionary list,replacements list,model listandlibrary status,listandexportread Glimpse's data directly. - Changes go through the app, and open it in the background if needed:
dictionary addandremove,replacements addandremove,model set,library import,record start,open,api startandstop. - Some need the app already open and never launch it:
status,api status,transcribeand the rest ofrecord. - The engine runs on its own:
modelsandserve.
Everything except the commands that only read needs a license or the trial.
Output and exit codes
Add --json to any command for data: {"ok":true,…} on success, and {"ok":false,"error":"…"} on standard error when it fails.
| Exit | Meaning |
|---|---|
| 0 | Worked |
| 1 | Your mistake: bad arguments, a file or item that doesn't exist, no license |
| 2 | Needs the app, and it isn't running or couldn't open |
| 3 | The job failed, like a transcription or import error |
| 4 | Cancelled, or --wait timed out |
Where things are
| Folder | Holds |
|---|---|
| com.glimpse.data/models | Speech models |
| com.glimpse.data/transcriptions.db | History and Library |
| com.glimpse.data/Glimpse/settings.db | Dictionary, replacements and the active model |
| com.glimpse.data/library | Library media |
| com.glimpse.data/actions | Actions |
com.glimpse.data is in ~/Library/Application Support on Mac and %APPDATA% on Windows. On Windows, models and serve keep their own cache in %LOCALAPPDATA%\Glimpse\glimpse-speech\data\models. To use the models the app downloaded, pass:
--cache-dir "%APPDATA%\com.glimpse.data\models"Or set GLIMPSE_SPEECH_CACHE_DIR.
Troubleshooting
glimpse: command not found
~/.local/bin is on your PATH, and open a new terminal.Exit code 2, or Glimpse is not running
status and transcribe don't, so open Glimpse first.An active Glimpse license is required
A model isn't downloaded
--model with one from glimpse model list --installed-only.