Enable setting CLAUDE_CODE_EXECUTABLE to override the claude code CLI used (#86)

## Description
Closes #84 by allowing users to set `CLAUDE_CODE_EXECUTABLE` to override
the binary that's used by the claude code SDK. This is key in enterprise
environments where claude CLI has been shimmed in some way.
This commit is contained in:
Alfredo Luque
2025-10-07 13:54:50 -07:00
committed by GitHub
parent 4ee25af3f9
commit 71b660ae3b

View File

@@ -179,6 +179,9 @@ export class ClaudeAcpAgent implements Agent {
// note: although not documented by the types, passing an absolute path
// here works to find zed's managed node version.
executable: process.execPath as any,
...(process.env.CLAUDE_CODE_EXECUTABLE && {
pathToClaudeCodeExecutable: process.env.CLAUDE_CODE_EXECUTABLE,
}),
};
const allowedTools = [];