Skip to Content
Scan your AI agents for free·npx -y @inkog-io/cli scan .·Get Started →
CLIEnvironment Variables

Environment Variables

The CLI reads four environment variables. Command-line flags take precedence over all of them.

VariableDescriptionDefault
INKOG_API_KEYAPI key for cloud scans. If unset, the CLI looks in ~/.inkog/config.json (saved on first run).None
INKOG_SERVER_URLOverride the API endpoint, for self-hosted deploymentshttps://api.inkog.io
CIWhen set, spinners and interactive prompts are disabled. Most CI platforms set it automatically.Auto-detected
NO_COLORDisables colored output (same as -no-color)Unset

Output format, policy, severity, and paths are flags only. See Configuration.

Priority Order

  1. Command-line flags (highest)
  2. Environment variables
  3. ~/.inkog/config.json (API key only)
  4. Defaults

Examples

Local development

export INKOG_API_KEY="sk_live_..." inkog .

Self-hosted server

export INKOG_SERVER_URL=https://inkog.internal.example.com export INKOG_API_KEY="sk_live_..." inkog .

CI pipeline

# CI=true is set by GitHub Actions, GitLab CI, CircleCI, Jenkins, and Buildkite. INKOG_API_KEY="$INKOG_API_KEY" inkog -path . -output sarif > inkog.sarif

Plain output for logs

NO_COLOR=1 inkog . > scan.log
Last updated on