Keys and Defaults¶
basemode supports both environment variables and a persistent local key store.
Persistent key storage¶
Keys are saved to:
~/.config/basemode/auth.json
File mode is restricted to user-only (0600).
Use:
Load order¶
At startup, settings are loaded in this order (later wins):
~/.config/basemode/auth.json.env(project-local if present)- Existing process environment variables
Environment variables are never overwritten by stored keys.
Default model¶
Set a default model once:
Show current default:
Clear it:
When unset, CLI generation defaults to gpt-4o-mini.