Skip to main content
Authenticate using the device flow — no client ID or secret needed:
This will:
  1. Display a one-time code in your terminal
  2. Open your browser to authorize
  3. Automatically save credentials to ~/.groniz/credentials.json

Auth Commands

API Key

Alternatively, set your Groniz API key as an environment variable:
You can get your API key from the Groniz Settings page.
OAuth2 credentials take priority over the API key when both are present.

Environment Variables

VariableRequiredDefaultDescription
GRONIZ_API_KEYNo*-Your Groniz API key
GRONIZ_API_URLNohttps://api.groniz.comAPI endpoint override
GRONIZ_AUTH_SERVERNohttps://api.groniz.comAuth server override
*Either OAuth2 (via groniz auth:login) or GRONIZ_API_KEY is required.