On this page
Locate installed Claude Code binaries and the active `claude` symlink.
#claudewheel.binaries
#claudewheel.binaries
Locate installed Claude Code binaries and the active claude symlink.
#BinaryLocator
Locate the Claude Code binary for a version, the fallback symlink, and installed versions.
versions_dir and claude_symlink live outside ~/.claudewheel -- they locate the Claude Code binary itself, not claudewheel's own data.
#default
def default(cls) -> 'BinaryLocator'Build a locator at today's default paths, computed at call time.
#binary_for
def binary_for(self, version: str) -> PathReturn the on-disk path for a specific installed version's binary.
#fallback
def fallback(self) -> PathReturn the claude symlink used when no specific version is selected.
#installed_versions
def installed_versions(self) -> list[str]List installed version names, newest first.
Mirrors the cli versions handler: only regular files under versions_dir count, sorted by :func:version_sort_key descending. Returns an empty list when versions_dir is not a directory.
#symlink_target
def symlink_target(self) -> Path | NoneReturn the resolved target of the claude symlink, or None.
Returns None when the symlink does not exist or cannot be resolved. The current version name is the .name of the returned path.