Command line

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

  1. Open Settings, About.
  2. 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 list and library status, list and export read Glimpse's data directly.
  • Changes go through the app, and open it in the background if needed: dictionary add and remove, replacements add and remove, model set, library import, record start, open, api start and stop.
  • Some need the app already open and never launch it: status, api status, transcribe and the rest of record.
  • The engine runs on its own: models and serve.

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.

0Worked
1Your mistake: bad arguments, a file or item that doesn't exist, no license
2Needs the app, and it isn't running or couldn't open
3The job failed, like a transcription or import error
4Cancelled, or --wait timed out

Where things are

com.glimpse.data/modelsSpeech models
com.glimpse.data/transcriptions.dbHistory and Library
com.glimpse.data/Glimpse/settings.dbDictionary, replacements and the active model
com.glimpse.data/libraryLibrary media
com.glimpse.data/actionsActions

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

Click Install CLI in Settings, About, make sure ~/.local/bin is on your PATH, and open a new terminal.

Exit code 2, or Glimpse is not running

The command needs the app. Most open it for you; status and transcribe don't, so open Glimpse first.

An active Glimpse license is required

Your trial ended or the license isn't active. Check Settings, Account.

A model isn't downloaded

Download it in Settings, Models, or pass --model with one from glimpse model list --installed-only.

FFmpeg fallback is unavailable for this codec

Glimpse couldn't read the file on its own. Install FFmpeg, or convert it to WAV first.