orbstack 下 openclaw 搭配 cpa 配置流程
- 内容介绍
- 文章标签
- 相关推荐
问题描述:
自己在这个环境下搭建 OpenClaw 一直连不通 cpa ,来回调试终于成功了,用 AI 总结和润色了下教程,有类似的可以参考下
适用环境:
- macOS
- OrbStack
- Ubuntu Machine 里运行 OpenClaw
- OrbStack Docker 里运行 CLIProxyAPI
- 使用 OpenAI 兼容接口
一、核心网络原理
当你:
- 在 OrbStack Machine(Ubuntu) 里运行 OpenClaw
- 在 macOS 的 OrbStack Docker 里运行 CLIProxyAPI
Machine 访问 Docker 转发端口时:
必须使用:
docker.orb.internal
不能用:
- localhost
- 127.0.0.1
- 容器名
- mac 本机 IP
二、端口统一使用 8317 (可自定义)
CLIProxyAPI 在 Docker 中暴露:
8317
因此在 Ubuntu Machine 里访问地址为:
http://docker.orb.internal:8317
三、在 Ubuntu Machine 中验证接口
进入 Machine:
问题描述:
自己在这个环境下搭建 OpenClaw 一直连不通 cpa ,来回调试终于成功了,用 AI 总结和润色了下教程,有类似的可以参考下
适用环境:
- macOS
- OrbStack
- Ubuntu Machine 里运行 OpenClaw
- OrbStack Docker 里运行 CLIProxyAPI
- 使用 OpenAI 兼容接口
一、核心网络原理
当你:
- 在 OrbStack Machine(Ubuntu) 里运行 OpenClaw
- 在 macOS 的 OrbStack Docker 里运行 CLIProxyAPI
Machine 访问 Docker 转发端口时:
必须使用:
docker.orb.internal
不能用:
- localhost
- 127.0.0.1
- 容器名
- mac 本机 IP
二、端口统一使用 8317 (可自定义)
CLIProxyAPI 在 Docker 中暴露:
8317
因此在 Ubuntu Machine 里访问地址为:
http://docker.orb.internal:8317
三、在 Ubuntu Machine 中验证接口
进入 Machine:

