From f52ca8e7024306c410806e5d834d14df2d5a7225 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 14 Sep 2025 09:35:58 -0700 Subject: [PATCH] Use environment variable for Claude path --- server/claude-cli.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/claude-cli.js b/server/claude-cli.js index c8a5ebb..b05c754 100755 --- a/server/claude-cli.js +++ b/server/claude-cli.js @@ -235,7 +235,11 @@ async function spawnClaude(command, options = {}, ws) { console.log('🔍 Full command args:', JSON.stringify(args, null, 2)); console.log('🔍 Final Claude command will be: claude ' + args.join(' ')); - const claudeProcess = spawnFunction('claude', args, { + // Use Claude CLI from environment variable or default to 'claude' + const claudePath = process.env.CLAUDE_CLI_PATH || 'claude'; + console.log('🔍 Using Claude CLI path:', claudePath); + + const claudeProcess = spawnFunction(claudePath, args, { cwd: workingDir, stdio: ['pipe', 'pipe', 'pipe'], env: { ...process.env } // Inherit all environment variables