Skip to main content
The Inference CLI supports different modes of authentication: Browser login (recommended for most use cases):
inf auth login
API key (for CI / headless environments):
inf auth set-key sk-inference...
Or via environment variable:
export INFERENCE_API_KEY=sk-inference...
Check status:
inf auth status
Sign out:
inf auth logout

Auth Priority

When multiple credentials are present, the CLI resolves them in this order:
  1. INFERENCE_API_KEY environment variable
  2. API key stored via inf auth set-key
  3. Session token stored via inf auth login (not available in headless environments)

Configuration

The CLI stores configuration at ~/.inf/config.json, created automatically on first login.
VariableDescriptionDefault
INFERENCE_API_KEYAPI key for authentication-
INF_API_URLAPI base URL overridehttps://observability-api.inference.net
INF_PROJECT_IDOverride the active project-