Skip to content

Commit 91d915d

Browse files
authored
improve codex coverage in base sandbox (#54)
1 parent f8d9ef3 commit 91d915d

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

sandboxes/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ RUN npm install -g \
7474
tar@7.5.11 \
7575
@hono/node-server@1.19.11 \
7676
opencode-ai@1.2.18 \
77-
@openai/codex@0.111.0 \
77+
@openai/codex@0.117.0 \
7878
@github/copilot@1.0.9
7979

8080
# GitHub CLI

sandboxes/base/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,13 @@ FROM ${BASE_IMAGE}
5656
```
5757

5858
See `sandboxes/openclaw/` for an example.
59+
60+
## Codex authentication
61+
62+
For remote or headless OpenShell environments, if browser login hangs, try authenticating Codex with:
63+
64+
```bash
65+
codex login --device-auth
66+
```
67+
68+
If device-code login is unreliable in your environment, you can authenticate on another machine and copy ~/.codex/auth.json into the sandbox.

sandboxes/base/policy.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,14 @@ network_policies:
172172
- { host: default.exp-tas.com, port: 443 }
173173
binaries:
174174
- { path: /usr/lib/node_modules/@github/copilot/node_modules/@github/**/copilot }
175+
176+
codex:
177+
name: codex
178+
endpoints:
179+
- { host: api.openai.com, port: 443 }
180+
- { host: auth.openai.com, port: 443 }
181+
- { host: chatgpt.com, port: 443 }
182+
binaries:
183+
- { path: /usr/bin/codex }
184+
- { path: /usr/bin/node }
185+
- { path: "/usr/lib/node_modules/@openai/**" }

0 commit comments

Comments
 (0)