Updated Edit
On this page
Scan the filesystem for Claude Code profiles and their credentials.
#claudewheel.discovery
#claudewheel.discovery
Scan the filesystem for Claude Code profiles and their credentials.
#ProfileInfo
A profile's name, path, and credential/token presence.
#discover_profiles
python
def discover_profiles() -> list[ProfileInfo]Discover all Claude Code profiles on this machine.
Scans ~/.claudewheel/profiles/ for subdirectories. Also checks bare ~/.claude/ as the "default" profile (Claude Code's built-in default, not a claudewheel profile). A directory qualifies as a profile if it has .credentials.json or has a matching entry in tokens.json.
Returns a sorted list of ProfileInfo.