René's URL Explorer Experiment


Title: feat: add HTTP/HTTPS/SOCKS5 proxy supportFeat/proxy support 添加HTTP/HTTPS/SOCKS5代理支持 by kiangz · Pull Request #162 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat: add HTTP/HTTPS/SOCKS5 proxy supportFeat/proxy support 添加HTTP/HTTPS/SOCKS5代理支持 by kiangz · Pull Request #162 · lessweb/deepcode-cli

X Title: feat: add HTTP/HTTPS/SOCKS5 proxy supportFeat/proxy support 添加HTTP/HTTPS/SOCKS5代理支持 by kiangz · Pull Request #162 · lessweb/deepcode-cli

Description: Summary Add comprehensive proxy support for all network requests (OpenAI API, telemetry, web search). Changes New src/common/proxy.ts: Proxy resolution module with support for: HTTPS_PROXY, HTTP_PROXY, SOCKS_PROXY, SOCKS5_PROXY environment variables NO_PROXY bypass with wildcard (*), exact match, and subdomain wildcard (.example.com) DEEPCODE_ prefixed environment variables Configuration via ~/.deepcode/settings.json env field Priority: user settings < project settings < system env vars Dispatcher caching to avoid re-creating ProxyAgent on every request src/common/openai-client.ts: Integrate ProxyAgent into OpenAI client src/common/telemetry.ts: Route telemetry through proxyFetch src/tools/web-search-handler.ts: Route web search through proxyFetch docs/configuration.md / docs/configuration_en.md: Add proxy configuration docs (zh + en) src/tests/proxy.test.ts: 28 unit tests covering all proxy scenarios Compatibility PowerShell: $env:HTTPS_PROXY = "http://..." Bash: export HTTPS_PROXY=http://... Settings: {"env": {"HTTPS_PROXY": "http://..."}} 摘要 为所有网络请求添加全面的代理支持(OpenAI API、遥测、网络搜索)。 更改 新增src/common/proxy.ts:代理解析模块,支持: HTTPS_PROXY 、HTTP_PROXY 、SOCKS_PROXY和SOCKS5_PROXY环境变量 “NO_PROXY”绕过通配符(“*”)、精确匹配和子域通配符(“.example.com”) “DEEPCODE_”前缀环境变量 通过“~/.depcode/settings.json” “env”字段进行配置 优先级:用户设置<项目设置<系统环境变量 调度程序缓存,以避免在每次请求时重新创建“ProxyAgent” src/common/openai-client.ts:将ProxyAgent 集成到openai客户端中 src/common/ttelemetry.ts:通过proxyFetch路由遥测 src/tools/web-search-handler.ts:通过proxyFetch路由web搜索 docs/configuration.md/docs/configuration _en.md:添加代理配置文档(中文+英文) src/tests/proxy.test.ts:28个单元测试,涵盖所有代理场景 兼容性 PowerShell: $env:HTTPS_PROXY = "http://..." Bash: export HTTPS_PROXY=http://... Settings: {"env": {"HTTPS_PROXY": "http://..."}}

Open Graph Description: Summary Add comprehensive proxy support for all network requests (OpenAI API, telemetry, web search). Changes New src/common/proxy.ts: Proxy resolution module with support for: HTTPS_PROXY, HTTP...

X Description: Summary Add comprehensive proxy support for all network requests (OpenAI API, telemetry, web search). Changes New src/common/proxy.ts: Proxy resolution module with support for: HTTPS_PROXY, HTTP...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/162

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:731b0fda-6f91-3a9f-ec8e-762fd603cd4a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA06:2BE9C6:108A3C8:170F2A9:6A4DF68F
html-safe-nonce1500a7a476741c0ef1aca3b99e1f58c44bfa5778f7fffe581fdc392e6415e028
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTA2OjJCRTlDNjoxMDhBM0M4OjE3MEYyQTk6NkE0REY2OEYiLCJ2aXNpdG9yX2lkIjoiNzU5MDA1MTkzMDgwMzQwMjM4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac24cdb9a03f83fa6d2bc53363ea875d6cdc55a55a7a3ebc34d20a3f8d3e036f7c
hovercard-subject-tagpull_request:3809233763
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/162/files
twitter:imagehttps://avatars.githubusercontent.com/u/50792067?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50792067?s=400&v=4
og:image:altSummary Add comprehensive proxy support for all network requests (OpenAI API, telemetry, web search). Changes New src/common/proxy.ts: Proxy resolution module with support for: HTTPS_PROXY, HTTP...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef4bb89367ca678f057d79b1abc45d6675b1bd5b2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/162/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F162%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F162%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/162/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/162/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/162/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/162/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 43 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
kiangzhttps://github.com/kiangz
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
kiangz:feat/proxy-supporthttps://github.com/kiangz/deepcode-cli/tree/feat/proxy-support
Conversation 0 https://github.com/lessweb/deepcode-cli/pull/162
Commits 3 https://github.com/lessweb/deepcode-cli/pull/162/commits
Checks 0 https://github.com/lessweb/deepcode-cli/pull/162/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/162/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/162/files
feat: add HTTP/HTTPS/SOCKS5 proxy supportFeat/proxy support 添加HTTP/HTTPS/SOCKS5代理支持 https://github.com/lessweb/deepcode-cli/pull/162/files#top
Show all changes 3 commits https://github.com/lessweb/deepcode-cli/pull/162/files
8b6a9b5 feat: add HTTP/HTTPS/SOCKS5 proxy support kiangz Jun 5, 2026 https://github.com/lessweb/deepcode-cli/pull/162/commits/8b6a9b581f2d45e1963f188e4ca3e972e8380247
a3ecbbb docs: convert proxy.ts comments to bilingual (Chinese + English) kiangz Jun 5, 2026 https://github.com/lessweb/deepcode-cli/pull/162/commits/a3ecbbbede01f0d80bd8b3f3e2396338f293f268
c170d78 test: add unit tests for proxy resolution module kiangz Jun 5, 2026 https://github.com/lessweb/deepcode-cli/pull/162/commits/c170d7802b3aec4b026763fff0de09dccb17b3a5
Clear filters https://github.com/lessweb/deepcode-cli/pull/162/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/162/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/162/files
configuration.md https://github.com/lessweb/deepcode-cli/pull/162/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
configuration_en.md https://github.com/lessweb/deepcode-cli/pull/162/files#diff-f5f6cc8aa22f47faafd510f2402eb795ccd1e10c09f9b9640d788222ace08f95
openai-client.ts https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
proxy.ts https://github.com/lessweb/deepcode-cli/pull/162/files#diff-db8a244e531816b6a382519abcbe2902d43e717260296aff5965db7b9f33989c
telemetry.ts https://github.com/lessweb/deepcode-cli/pull/162/files#diff-1fe82cda482cf813596b11854d5872945838a490c643b67fb8197ed85f05a860
proxy.test.ts https://github.com/lessweb/deepcode-cli/pull/162/files#diff-02509dcb87ee6bd7d22166deceea0d7e531d0c676ae4a43b2fcd95c2dc637a97
web-search-handler.ts https://github.com/lessweb/deepcode-cli/pull/162/files#diff-b40bf6561ca5736417d5f91519ef20e7f33a9fd61cefa37ad3268378c19b27c1
docs/configuration.mdhttps://github.com/lessweb/deepcode-cli/pull/162/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
View file https://github.com/lessweb/deepcode-cli/blob/c170d7802b3aec4b026763fff0de09dccb17b3a5/docs/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/162/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
docs/configuration_en.mdhttps://github.com/lessweb/deepcode-cli/pull/162/files#diff-f5f6cc8aa22f47faafd510f2402eb795ccd1e10c09f9b9640d788222ace08f95
View file https://github.com/lessweb/deepcode-cli/blob/c170d7802b3aec4b026763fff0de09dccb17b3a5/docs/configuration_en.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/162/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-f5f6cc8aa22f47faafd510f2402eb795ccd1e10c09f9b9640d788222ace08f95
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-f5f6cc8aa22f47faafd510f2402eb795ccd1e10c09f9b9640d788222ace08f95
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-f5f6cc8aa22f47faafd510f2402eb795ccd1e10c09f9b9640d788222ace08f95
src/common/openai-client.tshttps://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
View file https://github.com/lessweb/deepcode-cli/blob/c170d7802b3aec4b026763fff0de09dccb17b3a5/src/common/openai-client.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/162/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
https://github.com/lessweb/deepcode-cli/pull/162/files#diff-9fb891054e0f90462fa3185f5d3af16d5e5ecf080d562154ae58819775dcf64c
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/162/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.