mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-10-27 12:40:32 +00:00
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:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user