Auth Priority
When multiple credentials are present, the CLI resolves them in this order:INFERENCE_API_KEYenvironment variable- API key stored via
inf auth set-key - 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.
| Variable | Description | Default |
|---|---|---|
INFERENCE_API_KEY | API key for authentication | - |
INF_API_URL | API base URL override | https://observability-api.inference.net |
INF_PROJECT_ID | Override the active project | - |