icebear0828 Claude Opus 4.6 commited on
Commit
d40d20b
·
1 Parent(s): 8728276

docs: add Docker cross-container networking tip, fix outdated section name

Browse files

- Add note to use host LAN IP instead of host.docker.internal for cross-container access (closes #17)
- Fix "Claude Code Quick Setup" → "Anthropic SDK Setup" in README

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. README.md +3 -1
  2. README_EN.md +2 -0
README.md CHANGED
@@ -49,6 +49,8 @@ docker compose up -d
49
 
50
  数据持久化通过 volume 映射:`data/`(账号、Cookie)和 `config/`(配置文件)。
51
 
 
 
52
  ### macOS / Linux
53
 
54
  ```bash
@@ -174,7 +176,7 @@ claude # 启动 Claude Code
174
  | Sonnet (`claude-sonnet-4-6`) | `gpt-5.2-codex` |
175
  | Haiku (`claude-haiku-4-5-20251001`) | `gpt-5.1-codex-mini` |
176
 
177
- > 也可以在控制面板 (`http://localhost:8080`) 的 **Claude Code Quick Setup** 卡片中一键复制环境变量。
178
 
179
  ### Cursor
180
 
 
49
 
50
  数据持久化通过 volume 映射:`data/`(账号、Cookie)和 `config/`(配置文件)。
51
 
52
+ > **跨容器访问提示**:如果其他 Docker 容器(如 OpenClaw、Cursor Server 等)需要连接 codex-proxy,建议使用宿主机的局域网 IP(如 `http://192.168.x.x:8080/v1`)而非 `host.docker.internal`,以避免 Docker DNS 解析问题。
53
+
54
  ### macOS / Linux
55
 
56
  ```bash
 
176
  | Sonnet (`claude-sonnet-4-6`) | `gpt-5.2-codex` |
177
  | Haiku (`claude-haiku-4-5-20251001`) | `gpt-5.1-codex-mini` |
178
 
179
+ > 也可以在控制面板 (`http://localhost:8080`) 的 **Anthropic SDK Setup** 卡片中一键复制环境变量。
180
 
181
  ### Cursor
182
 
README_EN.md CHANGED
@@ -58,6 +58,8 @@ curl http://localhost:8080/v1/chat/completions \
58
  }'
59
  ```
60
 
 
 
61
  ## 🌟 Features
62
 
63
  ### 1. 🔌 Full Protocol Compatibility
 
58
  }'
59
  ```
60
 
61
+ > **Cross-container access**: If other Docker containers (e.g., OpenClaw, Cursor Server) need to connect to codex-proxy, use the host's LAN IP (e.g., `http://192.168.x.x:8080/v1`) instead of `host.docker.internal` to avoid Docker DNS resolution issues.
62
+
63
  ## 🌟 Features
64
 
65
  ### 1. 🔌 Full Protocol Compatibility