You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,7 @@ are shared between runs.
122
122
For security reasons, `codex_yolo`**does not** mount by default:
123
123
-`~/.ssh` - SSH keys are not available inside the container by default
124
124
-`~/.copilot` - GitHub Copilot/GitHub CLI related state is not available unless explicitly enabled
125
+
-`~/.config/gh` - GitHub CLI host auth config is not available unless explicitly enabled
125
126
- SSH agent forwarding is disabled
126
127
- No other host directories are mounted by default
127
128
@@ -156,6 +157,7 @@ Requirements for `--gh`:
156
157
-`~/.copilot` must exist on the host.
157
158
158
159
When enabled, `~/.copilot` is mounted into the container at `~/.copilot`.
160
+
If present on the host, `~/.config/gh` is also mounted into the container at `~/.config/gh`.
159
161
160
162
## Troubleshooting
161
163
@@ -202,7 +204,7 @@ Available options:
202
204
-`--pull` flag to force a pull when running `./.codex_yolo.sh`
203
205
-`--verbose` or `-v` flag to enable verbose output
204
206
-`--mount-ssh` flag to enable SSH key mounting for git push access; see security warning above
205
-
-`--gh` flag to mount host `~/.copilot` after validating host `gh` auth
207
+
-`--gh` flag to mount host `~/.copilot`and host `~/.config/gh` (if present) after validating host `gh` auth
206
208
- Each run checks npm for the latest `@openai/codex` version (unless skipped)
207
209
and rebuilds the image if it is out of date.
208
210
- Each run checks for codex_yolo script updates (unless skipped with `CODEX_SKIP_UPDATE_CHECK=1`)
@@ -224,7 +226,7 @@ Add these lines to your `.bashrc` or `.zshrc` for persistent completion.
224
226
225
227
## Security note
226
228
227
-
`codex_yolo` deliberately limits what gets mounted from the host. See the "What gets mounted from the host" section above for details. By default, your SSH agent is not forwarded and `~/.ssh`/`~/.copilot` are not mounted, keeping the blast radius smaller when running in `--yolo` mode. This comes at the cost of private repo access from inside the container unless you explicitly enable SSH mounting with `--mount-ssh` and GitHub Copilot state mounting with `--gh`.
229
+
`codex_yolo` deliberately limits what gets mounted from the host. See the "What gets mounted from the host" section above for details. By default, your SSH agent is not forwarded and `~/.ssh`/`~/.copilot`/`~/.config/gh` are not mounted, keeping the blast radius smaller when running in `--yolo` mode. This comes at the cost of private repo access from inside the container unless you explicitly enable SSH mounting with `--mount-ssh` and GitHub Copilot/GitHub CLI state mounting with `--gh`.
228
230
229
231
The container enables passwordless `sudo` for the mapped user to allow system installs. Use with care; `sudo` writes into `/workspace` are cleaned up via a chown on exit, but they still run as root inside the container.
0 commit comments