Expand description
Credential management module for Claude Code Switcher
This module provides functionality to save and retrieve API keys for different AI providers. Credentials are stored in plain text since they’re typically managed through environment variables.
Version management strategy:
- Current version: v2 (simplified from previous encryption-based approach)
- Future versions should increment the version number when format changes are needed
Structs§
- Credential
Data - Core credential data structure
- Credential
Store - High-level credential management
- Saved
Credential Store - Storage backend for credential files
Constants§
- CURRENT_
CREDENTIAL_ VERSION - Current credential data format version
Functions§
- get_
api_ key_ interactively - Get API key interactively using simple selector
- prompt_
save_ credential - Prompt user to save a credential interactively
- select_
credential - Helper function to select a credential from a list
Type Aliases§
- Saved
Credential - Result type for credential operations