CLI Installation
Install the Deepgram CLI on macOS, Linux, and Windows.
macOS and Linux
The fastest way to install on macOS and Linux:
This script detects your OS, checks for Python 3.10+, and installs the dg command to your PATH.
Windows
In PowerShell:
Package Managers
Homebrew
On macOS and Linux:
The first command adds Deepgram’s official tap (deepgram/homebrew-tap); the second installs the CLI from it. After tapping, future installs and upgrades don’t need the deepgram/tap/ prefix — brew upgrade deepgram is enough.
Homebrew brings in ffmpeg and portaudio automatically, so dg listen --mic, dg debug probe, and the raw audio piping flows work out of the box without any further setup.
pip
pipx
uv
Verify Installation
Update
If you installed via Homebrew:
Otherwise, re-run the install script:
Or update via pip:
Uninstall
Requirements
- Python 3.10 or later
ffmpeg(for audio processing — installed automatically when using Homebrew)