claudewheel v0.24.2 /claudewheel.binaries
Edit
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

python
def default(cls) -> 'BinaryLocator'

Build a locator at today's default paths, computed at call time.

#binary_for

python
def binary_for(self, version: str) -> Path

Return the on-disk path for a specific installed version's binary.

#fallback

python
def fallback(self) -> Path

Return the claude symlink used when no specific version is selected.

#installed_versions

python
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.

python
def symlink_target(self) -> Path | None

Return 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.

Search