Skip to content

[FEATURE] Install location option for claude install #21019

Description

@cemiu

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

My home directory is transient (gets reset every day) and all my persistent storage is on a mounted volume.

With npm builds I just installed CC globally (npm install -g) and set npm's install dir to my persistent storage. This no longer works.

  1. Claude native builds default to ~/.local/bin with seemingly no way to change that.
  2. Installing then moving makes CC complain about the binary not being at ~/.local/bin/claude (even though it's in the PATH in a different location)

As things stand, I have to reinstall claude code every day.

Proposed Solution

  1. claude install [options] [target] should have a path/install directory option added
  2. future CC updates should maintain that location
  3. CC should look for the claude binary in the PATH, not in ~/.local/bin

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions