🦀 ClawHub
Proxy Auto
by @tedtalk
Automatically enables SOCKS5 proxy for accessing overseas sites and APIs like GitHub, OpenAI, and npm with VMess over WebSocket configuration.
TERMINAL
clawhub install proxy-auto📖 About This Skill
Proxy Auto - 自动代理切换
功能
当需要访问外网时自动启用 SOCKS5 代理。
使用方法
在命令前添加代理环境变量
source /root/.openclaw/proxy-auto.sh
或者手动设置环境变量
export http_proxy=http://127.0.0.1:10808
export https_proxy=http://127.0.0.1:10808
export ALL_PROXY=socks5://127.0.0.1:10808
代理配置
测试命令
# 测试 Google
curl -s --socks5 127.0.0.1:10808 https://www.google.com测试 GitHub
curl -s --socks5 127.0.0.1:10808 https://api.github.com测试 OpenAI
curl -s --socks5 127.0.0.1:10808 https://api.openai.com
自动使用场景
_最后更新:2026-03-02_