Skip to content

Commit fcf5dea

Browse files
committed
feat: support native installed Claude CLI detection
Add automatic detection for Claude CLI installed via native installer (https://claude.ai/install.sh) which installs to ~/.local/bin/claude. When claude is not found in PATH, the script now checks ~/.local/bin/claude and adds it to PATH if found, with informative log messages. Closes #303
1 parent bcfacce commit fcf5dea

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run-server.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,16 @@ check_claude_cli_integration() {
12301230
local python_cmd="$1"
12311231
local server_path="$2"
12321232

1233+
# Check for native installed Claude CLI (not in PATH by default)
1234+
# Native install via https://claude.ai/install.sh puts claude at ~/.local/bin/claude
1235+
if ! command -v claude &> /dev/null; then
1236+
if [[ -x "$HOME/.local/bin/claude" ]]; then
1237+
print_info "Found native installed Claude CLI at ~/.local/bin/claude"
1238+
export PATH="$HOME/.local/bin:$PATH"
1239+
print_success "Added ~/.local/bin to PATH"
1240+
fi
1241+
fi
1242+
12331243
if ! command -v claude &> /dev/null; then
12341244
echo ""
12351245
print_warning "Claude CLI not found"

0 commit comments

Comments
 (0)