Feature Request: Runtime proxy configuration command
Resolved 💬 2 comments Opened Feb 4, 2026 by ttoyama Closed Mar 5, 2026
Summary
Add a runtime command (e.g., /proxy or /network) to change proxy settings without restarting Claude Code.
Problem
Currently, proxy settings can only be configured via environment variables or settings.json before launching Claude Code. If the network environment changes during a session (e.g., connecting/disconnecting from VPN, moving between office and home), users must:
- Exit Claude Code
- Change environment variables or settings
- Restart Claude Code
This is disruptive, especially during long sessions or when frequently switching networks.
Proposed Solution
Add a slash command like:
/proxy set https://proxy.example.com:8080
/proxy clear
/proxy status
Or integrate into existing settings:
/config set HTTPS_PROXY https://proxy.example.com:8080
Use Cases
- Switching between corporate VPN and direct connection
- Temporarily bypassing proxy for specific tasks
- Debugging network issues without losing session context
Alternatives Considered
- Shell aliases for different proxy configurations (still requires restart)
- direnv for directory-based settings (still requires restart)
- Wrapper scripts (still requires restart)
All workarounds still require restarting Claude Code.
---
Thank you for considering this feature!
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗