Gateway key resolution
inf <agent> on resolves a gateway key in this order:
INFERENCE_API_KEYenvironment variable (never persisted).- The project key stored by
inf auth set-key. - A coding-agent key minted on a previous run (stored in
~/.inf/config.json). - If none of the above, an authenticated session mints one project-scoped key.
inf auth logininf auth set-key <key>- export
INFERENCE_API_KEY
Drift and conflict scenarios
inf auth logout and your agents
Logout disconnects every connected agent before it clears credentials.
The two flags are mutually exclusive.
Revoke a coding-agent key
Minted keys are namedinf-coding-agents-<timestamp>. Use inf api-key list to find the id, then revoke it.
Recover from an interrupted on
Each file is written atomically. A multi-file update can still stop between files. Re-run inf <agent> on. It reuses the stored key and finishes the update.
Config directory moved
IfCLAUDE_CONFIG_DIR, CODEX_HOME, or XDG_CONFIG_HOME changes the target between runs, status, on, and off stop and show both paths.
Restore the original root setting. Run inf <agent> off. Then change the root and run inf <agent> on again.
There is no force flag for this case.
--json reference
status --json returns harness, connected, models, and targets. Every target has path, missingFile, and per-field id and state.
on --json adds keySource and a masked keyPreview. off --json adds conflict and retained-state fields. No JSON output contains a raw key.
Upgraded from an older CLI that wrote glm-5.2
The default for Claude Opus and Sonnet is now glm-5.2-fast. An older connection can still show glm-5.2 in those slots. The gateway continues to serve that model, so the connection still works.
An upgrade does not change existing connections. Re-run inf claude on, or pass --opus and --sonnet, to use the new Fast default. off can still restore the values from before your first on.
glm-5.2 is no longer accepted as a --model or slot value on on. Use glm-5.2-fast, kimi-k3-fast, or deepseek-v4-flash-0731.