Skip to content

Conversation

@azalio
Copy link

@azalio azalio commented Jul 25, 2025

feat: add proxy support for Claude connections

Enables users behind corporate proxies to use Claude Code Chat by providing
proxy configuration options.

  • 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

This allows corporate users to configure their proxy settings in VS Code
and have them automatically applied to all Claude connections.

- 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
Copilot AI review requested due to automatic review settings July 25, 2025 21:48

This comment was marked as outdated.

@azalio azalio requested a review from Copilot July 26, 2025 13:55
Copy link

Copilot AI left a 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

@Iachryphagy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants