I am already wasting a whole day on this and starting to give up on Docker Sandbox.
OpenAI OAuth for a Codex Plus subscription won’t work inside the sandbox.
Always getting “Unauthorized - Invalid access token”.
It DOES work normally outside the sandbox.
I have an “allow all” network policy.
I followed this guide:
Including setting the oauth secret on my host using sbx secret set -g openai --oauth
I attempted to install Codex and also OpenCode on a bare shell sandbox, and also authenticate directly from the sandbox.
My sbx policy log doesn’t show any kind of blocking or any red flag.
I have read every part of your docs by now, including everything on credentials and network policy -
And I have no idea what else to do or where else to look, the behavior is unclear and your guides lead to a dead end.