d299a1f295d6a

OpenClaw在Macmini下网络HTTPS_Proxy代理配置

释放双眼,带上耳机,听听看~!

问题背景

在macOS上运行OpenClaw Gateway时,访问外部Ai异常外部网无法接收到消息的问题,原因是Gateway进程没有正确使用本地代理环境变量

原因在于:OpenClaw默认启动的服务不会继承终端中的export变量,除非开启tun模式


解决步骤

1. 停止当前Gateway服务

openclaw gateway stop 

2.编辑openclaw文件并添加代理环境变量

路径:vim ~/Library/LaunchAgents/ai.openclaw.gateway.plist

完整配置示例: 端口请根据实际情况填写

➜  ~ tail -n 15  ~/Library/LaunchAgents/ai.openclaw.gateway.plist
    <string>openclaw</string>
    <key>OPENCLAW_SERVICE_KIND</key>
    <string>gateway</string>
    <key>OPENCLAW_SERVICE_VERSION</key>
    <string>2026.3.2</string>

    <!-- 代理设置 -->
    <key>HTTP_PROXY</key>
    <string>http://127.0.0.1:10808</string>
    <key>HTTPS_PROXY</key>
    <string>http://127.0.0.1:10808</string>
    <key>ALL_PROXY</key>
    <string>socks5://127.0.0.1:10808</string>
    </dict>
  </dict>
</plist>

3.重新启动Gateway

➜  ~ openclaw gateway restart

4. 验证状态

openclaw gateway status
openclaw logs --follow

注意事项

  1. 如果仍然超时:需要排查 软件问题确认软件是否正常

给TA打赏
共{{data.count}}人
人已打赏
AIKubernetesOpenClaw

容器化部署OpenClaw授权View权限对Kubernetes集群进行巡检故障排查

2026-3-4 21:57:39

APISIX

APISIX 修改默认9080和9443端口号

2023-8-22 0:38:54

0 条回复 A文章作者 M管理员
data
commentData
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索