For the complete documentation index, see llms.txt. This page is also available as Markdown.

Codex

Setting up Codex in your environment

Install codex using the command npm install -g @openai/codex

In recent versions of Ubuntu, there are some extra steps to configure codex so that it functions more effectively in the sandbox. More information can be found here: https://github.com/openai/codex/issues/17525 BLUF: Run these commands to configure apparmor to allow codex to work correctly in the sandbox. The final command reloads the policies without requiring a reboot.

sudo apt update
sudo apt install apparmor-profiles apparmor-utils

dpkg -L apparmor-profiles | grep bwrap-userns-restrict

sudo install -m 0644 \
  /usr/share/apparmor/extra-profiles/bwrap-userns-restrict \
  /etc/apparmor.d/bwrap-userns-restrict
  
sudo apparmor_parser -r /etc/apparmor.d/bwrap-userns-restrict

Last updated

Was this helpful?