Support HTTP_PROXY, HTTPS_PROXY, ALL_PROXY environment
Some region does not support claude models, so we need proxy support.
Seems turning on "tun mode" in clash works.
everything run? I failed
From my case it works. Turning on tun mode, don't set HTTP_PROXY/HTTPS_PROXY/SOCKS_PROXY in the terminal, starts copilot-api, and claude is in the model list
same with "npx copilot-api@latest start --port 5001"? I try again, and still fail. Thanks for replying
Yeah.
Just tried again:
- Without tun mode, even if set proxy env var: no claude model.
- With tun mode, no proxy env var set: claude model available.
- With tun mode, set proxy env var: this time claude model is available too.
By the way, my proxy node is in HK. So I don't quite understand what's behind the scene.
yeah~THANK YOU! I know why my TUN mode failed, that's because its supports component hasn''t been installed which called "Service Mode".