Repository navigation
AdvancedFeaturesEN
neavo edited this page Oct 21, 2026
·
3 revisions
By default, LinguaGacha follows the system proxy. To give LinguaGacha its own proxy without changing the system settings, set the LG_PROXY environment variable.
| Case | How the network goes |
|---|---|
LG_PROXY is not set |
Follows the system proxy |
LG_PROXY is set |
Model requests, AGENT network access, and in-app web pages all use this proxy |
| Local addresses, such as a local model | Always connect directly, not affected by the proxy |
💡 Both the GUI and [CLI Mode] read
LG_PROXY
Windows
- Open
PowerShell - Run this command. Replace the address with your proxy address:
[Environment]::SetEnvironmentVariable('LG_PROXY', 'http://127.0.0.1:7890', 'User')- Fully quit LinguaGacha, then open it again
✅ Result: LinguaGacha uses this proxy every time you open it from the desktop, the Start menu, or File Explorer
To stop using it, run this command, then open the app again:
[Environment]::SetEnvironmentVariable('LG_PROXY', $null, 'User')To use it only once, set it in PowerShell and start the app from the same window:
$env:LG_PROXY = 'http://127.0.0.1:7890'
& 'C:\Apps\LinguaGacha\app.exe'💡 Replace
C:\Apps\LinguaGachawith the folder where you extracted the app
macOS / Linux
When you start the app from a terminal, put LG_PROXY before the command:
LG_PROXY='http://127.0.0.1:7890' /Applications/LinguaGacha.app/Contents/MacOS/LinguaGachaLG_PROXY='socks5://127.0.0.1:1080' ./LinguaGacha.AppImage| Proxy type | Example |
|---|---|
| HTTP | http://127.0.0.1:7890 |
| SOCKS5 | socks5://127.0.0.1:1080 |
| HTTPS | https://proxy.example.com:8443 |
💡 If you use proxy software on this computer, find its
HTTP portorSOCKS portin its settings, and write it in the format above
- Use only one proxy, in the format
scheme://address:port, with nothing else - Without a port,
http,https, andsocks5use80,443, and1080 - Put IPv6 addresses in square brackets, for example
http://[::1]:7890 - Proxies that need a username and password are not supported
- After you change or remove the setting, fully quit and open the app again
- When the proxy cannot be reached, requests fail instead of switching to a direct connection. If you see network errors, first make sure that your proxy software is running
- With a wrong address, the app shows a startup error (
LinguaGacha 启动失败) with the reason, and CLI mode exits with an error. Correct the address or remove the setting, then open the app again