Suppress the warning `⚠ Codex could not find system bubblewrap at /usr/bin/bwrap` when sandbox is bypassed.
Resolved 💬 15 comments Opened Mar 20, 2026 by your-diary Closed Apr 3, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
After upgrading to v0.116.0, I get this warning every time I start codex:
⚠ Codex could not find system bubblewrap at /usr/bin/bwrap. Please install bubblewrap with your package manager. Codex will use the vendored bubblewrap in the meantime.
I want this to be shown only when sandboxing is enabled.
Why?
I'm using codex exclusively inside a Docker container with --dangerously-bypass-approvals-and-sandbox.
If I understand correctly, bwrap is not used in this setup.
If so, being forced to install bwrap seems not reasonable.
Additional information
Probably related entry in the changelog:
Improved Linux sandbox startup on symlinked checkouts, missing writable roots, and Ubuntu/AppArmor hosts by preferring system bwrap when available. (https://github.com/openai/codex/pull/14849, https://github.com/openai/codex/pull/14890, https://github.com/openai/codex/pull/14963)
15 Comments
For anyone coming across this in the first place, wondering how and where to install:
It's a linux package, you can install using
sudo apt install bubblewrap@larsschellhas wrote:
Thanks - really.
But we're using the Codex extension and most devs would have no idea what bubblewrap is unless their own tooling relies on it. We shouldn't need to know about a dependency through an error message. If this package requires the dependency, it should refer to it correctly. If this is something we really should know about, it should be documented where we have visibility to make an informed decision.
I'm glad the extension uses bwrap, but without some clue about what it is or why it's there or any other nuance, use/devs here should not just install a package based on an error message. That can mask other issues or cause other things to break. The message "Codex will use the vendored bubblewrap in the meantime" does not provide data for people to make informed decisions.
Works for most perhaps but does not work on Nixos.
I have bubblewrap installed and
bwrap --versionfrom anywhere reportsbubblewrap 0.11.0but Codex still doesn't find it because it only looks at/usr/bin/bwrapwhich is not where it's installed. Adding it to my path does not help.I also encountered this problem when using this version of Codex. And running
pwdwithin a Codex session reports an error:bwrap: No permissions to create a new namespace, likely because the kernel does not allow non-privileged user namespaces. On e.g. Debian this can be enabled with 'sysctl kernel.unprivileged_userns_clone=1'.I am also using Codex inside a Docker container, and enabling sandbox mode causes an error. Installing bubblewrap with
sudo apt install bubblewraphas no effect.This will be addressed in the next release.
@etraut-openai i'd just like to draw attention to the point @joshlupo made, as i'm also on NixOS.
@ToxicPine, This PR should address the lookup problem.
I, too, ran into this warning message.
Currently I am not willing to install bubblewrap.
Can
use_legacy_landlock = truein~/.codex/config.tomlhelp in this situation? I didn't implement it yet, I am not sure if it would make any meaningful change.Thank you
BR
sw
Just a hint that can potentially benefit others that come here after searching with the error message. I am on Ubuntu 24.04 and encountered this issue even though I had bubblewrap installed.
The following was needed to make bubblewrap work:
If you want to have it applied automatically on next reboot, you can do something like this:
Still seeing message from CLI but I don't care.
From their page (https://developers.openai.com/codex/concepts/sandboxing):
Sure, we can play with other system settings. The point is that this tool is warning us about something that it wants and needs, and this isn't documented or a part of the install process.
codex-cli 0.124.0
These other errors are just because Codex CLI no longer works after update. I'll take that up separately, But the warning is still there.
And what about all the developers not having root rights on their development machine?
I ran into a related variant of this warning and found that the result depends on the directory from which
codexis launched.In my case,
bwrapwas installed without root privileges and was available onPATHas:From the shell, this looked correct everywhere:
However, Codex behaved differently depending on the current working directory:
/public3/home/scg6928/mysoft/tools/codexdid not show the warning./public3/home/scg6928/mysoftdid show the warning:The reason appears to be that Codex does not simply accept the first
bwrapfound by the shell. It rejects abwrapbinary when that binary is located inside the current workspace/sandbox root. In the example above:/public3/home/scg6928/mysoft/tools/codex, thebwrappath is outside that workspace, so Codex accepts it./public3/home/scg6928/mysoft, the samebwrappath is inside the workspace, so Codex ignores it and reports that no systembwrapwas found.The practical workaround is to put
bwrapsomewhere outside any directory that may be used as the Codex workspace, for example:and make sure that path appears before any workspace-local
bwrappath inPATH.This behavior is subtle because
which bwrapandbwrap --versioncan both look correct in the user's shell, while Codex still rejects that same binary depending only on the launch directory.FWIW, I did find good documentation in the Codex docs about bwrap:
https://developers.openai.com/codex/concepts/sandboxing
Mention here about Codex/Windows and need for bubblewrap-like tooling:
https://openai.com/index/building-codex-windows-sandbox/
At this point I'm pleased and satisfied that this topic has received enough attention to guide us on what this is and how to use it.
Frankly, I just installed bwrap to address the concerns and now I don't need to see any messages. So at this point everything is done/finished.
Thanks team!