Skip to main content

Use OpenAI Codex CLI in Open WebUI

Set up OpenAI Codex CLI in the terminal​

The Open Terminal :agents image includes codex. For a host install or another image, install Codex CLI in the terminal that holds your project. Codex CLI installation

For a remote terminal, run codex login --device-auth and complete the login in your browser. Device login must be enabled for your account or workspace. Run codex login status as the terminal user to check which login the CLI will use. Codex authentication options

Select Codex in Open WebUI​

In a new saved chat, select your Terminal, then use Choose working directory to pick your project. Open the model picker and choose a model beginning with codex/. If you still need to connect the workspace, follow the Open Terminal quick start.

Open Terminal starts the Codex app server over standard input and output. Ask Codex to run pwd and read the README. If you see a bwrap namespace error, the CLI has started but its Linux sandbox cannot run the command in that container. Troubleshoot the terminal runtime

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.