-
Notifications
You must be signed in to change notification settings - Fork 138
feat: add proxy support for Claude connections #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add proxy configuration settings (enabled, url, noProxy) - Pass proxy environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) to Claude process - Support proxy in both native and WSL modes - Apply proxy settings to terminal commands (/model, /api, /login) - Bump version to 1.0.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive proxy support for Claude connections to enable users behind corporate proxies to use Claude Code Chat. The implementation provides proxy configuration options through VS Code settings and applies them to all Claude interactions.
- Adds proxy configuration settings (enabled, url, noProxy) to VS Code settings
- Implements proxy environment variable handling for both native and WSL execution modes
- Applies proxy settings to all Claude commands including login, model selection, and API commands
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| package.json | Adds three new proxy configuration settings to VS Code extension configuration |
| src/extension.ts | Core implementation of proxy support with environment variable handling and shell command building |
| src/ui.ts | Adds missing semicolon to import statement |
| src/ui-styles.ts | Adds missing semicolons to export statements |
|
I tried to use proxy as a terminal environment setting, it works well in terminal, but it somehow doesn't work in claude-code-chat, probably because the chat works in stream, or Anthropic updated their restriction |
feat: add proxy support for Claude connections
Enables users behind corporate proxies to use Claude Code Chat by providing
proxy configuration options.
This allows corporate users to configure their proxy settings in VS Code
and have them automatically applied to all Claude connections.