credentialStorageKey property

String get credentialStorageKey

Storage key for the API key (Claude), OAuth tokens (OpenAI/Gemini), or the active local model ID (local — same value as modelStorageKey because the model file IS the credential for the local tier).

Implementation

String get credentialStorageKey => switch (this) {
  claude => 'claude_api_key',
  openai => 'openai_access_token',
  gemini => 'gemini_access_token',
  local => 'local_model',
};