[FEATURE] Allow the new Claude VS Code extension to configure the claude executable path
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The new Claude VS Code extension seems to always spawn claude from the bundled claude-code package:
node /home/user/.vscode-server/extensions/anthropic.claude-code-2.0.0/resources/claude-code/cli.js --output-format stream-json --verbose --input-format stream-json --append-system-prompt [...]
This may be because the extension is unable to find a native installation or a global NPM install of claude-code - instead, we use a wrapper script on PATH. This wrapper script performs some convenient setup, like setting up some infrastructure and the environment variables required to run Claude with our third-party model provider. The bundled claude-code doesn't perform this bootstrapping and won't work.
Proposed Solution
I would like to be able to configure the extension to use a claude executable by path.
Alternative Solutions
It's possible to rig up the environment variables via claude-code.environmentVariables settings in VS Code, but this is manual and doesn't fully cover the setup required.
Priority
High - Significant impact on productivity
Feature Category
Developer tools/SDK
Use Case Example
_No response_
Additional Context
_No response_
4 Comments
Appears to be fixed by the new
claude-code.claudeProcessWrappersetting in VS Code; thanks!I'm trying to accomplish exactly that, but I'm running into some issues.
I have set the following in .vscode/settings.json:
Where
claudew.batis a batch script that sets up the environment and then launches Claude. Calling this script in the terminal works fine. However, launching integrated Claude Code gives me this error:@justin39 Could you help me with how you leveraged this setting to achieve what you wanted? Based on your issue description it seems to me we have a very similar use-case.
@MatevzFa That sounds like our use-case, yep! I don't think we're doing anything special to make it work on our end - just sets up the environment as well before invoking
node <path to claude-code-cli.js>; maybe a platform difference between Linux and Windows?This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.