VS Code extension
The VS Code extension automatically uses VS Code’s built-in proxy settings. No additional Cline configuration is required. To configure the proxy in VS Code:- Open VS Code Settings (
Cmd/Ctrl + ,). - Search for
http.proxy. - Enter your proxy URL (for example,
http://proxy.company.com:8080).
SSL/TLS certificate errors in VS Code
SSL/TLS certificate errors in VS Code
If you see SSL certificate errors, your proxy may be performing TLS inspection with a self-signed certificate.Option 1: Trust the certificate system-wideAdd your corporate CA certificate to the operating system trust store. VS Code picks up system certificates automatically.Option 2: Relax strict SSL (not recommended for production)In VS Code Settings, search for
http.proxyStrictSSL and disable it. This bypasses certificate verification and should only be used for testing.Option 3: Verify the certificate with curlCline CLI
The Cline CLI uses standard HTTP proxy environment variables. Set these before runningcline commands.
Basic configuration
Proxy with authentication
Include credentials directly in the proxy URL:Bypass proxy for local addresses
Setno_proxy to prevent local traffic from being routed through the proxy:
Self-signed or custom CA certificates
If your proxy uses a custom certificate authority, point Node.js to the certificate file:Permanent configuration
To avoid setting variables on every session, add them to your shell profile.Known limitations
The Cline CLI supports HTTP proxies only. The following are not supported:- SOCKS proxies
- Proxy autoconfiguration (PAC) scripts
- Proxy authentication methods beyond basic username/password
JetBrains IDEs
The JetBrains plugin uses the IDE’s HTTP proxy settings.1
Open Settings
- Windows/Linux: File > Settings (or
Ctrl+Alt+S) - macOS: IntelliJ IDEA > Preferences (or
Cmd+,)
2
Navigate to HTTP Proxy
Go to Appearance & Behavior > System Settings > HTTP Proxy.
3
Configure manual proxy
Select Manual proxy configuration and enter:
- Host name:
proxy.company.com - Port number:
8080 - No proxy for:
localhost,127.0.0.1 - Check Proxy authentication and enter credentials if required.
4
Test the connection
Click Check connection to verify your settings, then click OK.
5
Restart the IDE
Cline does not pick up proxy changes dynamically. Restart the IDE for the new settings to take effect.
Custom CA certificate in JetBrains
Custom CA certificate in JetBrains
If your proxy uses a custom certificate authority:
- Add the certificate to your operating system’s trust store, or
- Import it into JetBrains: Settings > Tools > Server Certificates > click + and select your certificate file.
The JetBrains plugin only supports HTTP proxies. SOCKS proxies and PAC scripts are not supported.
Troubleshooting
Connection timeouts
Connection timeouts
- Verify that the proxy address and port are correct.
- Check whether the proxy requires authentication.
- Confirm that your firewall allows outbound HTTPS traffic to the AI provider’s API endpoints (for example,
api.anthropic.com).
SSL/TLS certificate errors
SSL/TLS certificate errors
-
Confirm that
NODE_EXTRA_CA_CERTSpoints to the correct file and that the file is in PEM format. -
Test the certificate with curl:
-
If using VS Code, consider disabling
http.proxyStrictSSLtemporarily to isolate the issue (not recommended for ongoing use).
Testing your proxy configuration
Testing your proxy configuration
Verify that your proxy works independently of Cline using curl:Add
--cacert $NODE_EXTRA_CA_CERTS if you need to specify a custom certificate.For the CLI and JetBrains plugin, check ~/.cline/cline-core-service.log for proxy configuration details and network errors.