Do1e

Do1e

github
email

Solution for VS Code Remote Connection Not Being Able to Use Claude Model

This article is synchronized and updated to xLog by Mix Space
For the best browsing experience, it is recommended to visit the original link
https://www.do1e.cn/posts/code/vscode-remote-claude-model-solution



Due to Anthropic's blocking policy, using the Claude model in VS Code's Github Copilot requires some special methods.

Locally, there are no issues since I have always mounted a proxy, but if I want to connect remotely to my Linux server to write code, I will find that the Claude model is missing.

Local Remote

Although I looked up some solutions, such as configuring to use local extensions and proxying to local, each has its own issues.

Here’s my solution directly. First, configure the proxy on the remote, then append the following content to the remote file ~/.vscode-server/data/Machine/settings.json:

{
  ...
  "http.proxySupport": "override",
  "http.proxy": "http://localhost:7890",
  "http.proxyStrictSSL": false,
}

You must use override mode; using on will only recommend plugins to use the proxy, but Github Copilot does not comply.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.