Skip to content

Reference

Environment variables

Settings for CI, self-hosted deployments and custom locations.

Variables the CLI reads

VariableUse
GRCHERO_API_TOKENAct as an API token instead of a saved sign-in; takes precedence
GRCHERO_ORGANIZATION_IDWorkspace ID; required with a token
GRCHERO_AGENTName the AI agent running the CLI, for the audit log and your workspace's agent setting (Claude Code is named automatically)
GRCHERO_API_URLgrcHero API; installed releases already know it
GRCHERO_ISSUER_URL, GRCHERO_CLIENT_ID, GRCHERO_AUDIENCESign-in values for source installs and self-hosted deployments
GRCHERO_CONFIG_DIRWhere the saved sign-in lives; default ~/.config/grchero

Note: The installer has its own settings; see Install.