Reference
Environment variables
Settings for CI, self-hosted deployments and custom locations.
Variables the CLI reads
| Variable | Use |
|---|---|
GRCHERO_API_TOKEN | Act as an API token instead of a saved sign-in; takes precedence |
GRCHERO_ORGANIZATION_ID | Workspace ID; required with a token |
GRCHERO_AGENT | Name the AI agent running the CLI, for the audit log and your workspace's agent setting (Claude Code is named automatically) |
GRCHERO_API_URL | grcHero API; installed releases already know it |
GRCHERO_ISSUER_URL, GRCHERO_CLIENT_ID, GRCHERO_AUDIENCE | Sign-in values for source installs and self-hosted deployments |
GRCHERO_CONFIG_DIR | Where the saved sign-in lives; default ~/.config/grchero |
Note: The installer has its own settings; see Install.