CLI Authentication
Authenticate the Deepgram CLI with your API key.
Interactive Login
The simplest way to authenticate:
This opens your browser to the Deepgram Console where you can authorize the CLI. The CLI stores API keys in your operating system keyring when available. Direct API-key login falls back to profile configuration when the keyring is unavailable.
API Key Flag
For CI/CD environments or scripted usage, pass your API key directly:
Environment Variable
Set your API key as an environment variable:
Named Profiles
Use multiple API keys with named profiles:
Profiles select separate credentials in the system keyring when available, along with separate configuration values.
Check Auth Status
The command reports the active profile, a masked API key, its credential source, and the configured project ID.
CI/CD Usage
For CI/CD pipelines, use the --api-key flag or environment variable: