This feature is in preview.
codex command in the active Dev Container of each new environment. Codex uses the organization’s Ona Intelligence or runner LLM integration. Ona does not install the command on the environment VM host.
Prerequisites
- The ChatGPT desktop app installed.
- The Ona CLI installed and authenticated.
- Codex access in the ChatGPT account and workspace you want to use.
Enable Codex provisioning
Organization secrets are available on the Enterprise plan. Contact sales to learn more.
- Go to Settings → Organization → Secrets.
- Create an Environment variable named
ONA_CODEX_CLI_PROVISIONING_ENABLED. - Set its value to
true. - Create a new environment, then connect ChatGPT to it.
true enables provisioning. The setting is disabled when it is absent or set to false; values from project, user, service account, or runner secrets do not enable it. Changing the setting does not add or remove Codex in an already-running Dev Container.
Connecting to an environment
- In the Ona dashboard, select Open in ChatGPT. Ona opens ChatGPT’s SSH connections screen and shows the required commands.
- Run the commands shown by Ona in a local terminal. They sign in to the Ona CLI, add the environment to your SSH configuration, and verify the SSH connection.
- Select Add environment in ChatGPT in the Ona dialog.
- In ChatGPT, enable the SSH connection and choose the project folder in the environment.
codex command to be installed and authenticated in the selected SSH environment. With organization provisioning enabled, Ona provides it in the active Dev Container. See Connect to an SSH host for the current ChatGPT requirements.
Troubleshooting
SSH config entry not found
SSH config entry not found
Return to the Ona setup dialog and run
ona environment ssh-config in a local terminal. Verify the connection using the environment-specific ssh command shown in the dialog, then select Add environment in ChatGPT again.The Ona CLI has no active context
The Ona CLI has no active context
Run
ona login, complete authentication in your browser, then rerun ona environment ssh-config.The codex command is not available on the remote host
The codex command is not available on the remote host
Confirm that an organization administrator created the organization environment variable
ONA_CODEX_CLI_PROVISIONING_ENABLED with the value true. Codex provisioning does not delay Dev Container startup, so rebuild the Dev Container or create a new environment after provisioning finishes. Codex is available only in the active Dev Container, not on the VM host or in a recovery container. If the command remains unavailable, check the environment logs for Codex provisioning errors or contact your Ona administrator.The codex command is available but fails to start
The codex command is available but fails to start
Check the environment logs for Codex provisioning errors. Ask your Ona administrator to confirm that the environment’s organization or assigned runner has an OpenAI-compatible LLM integration, then rebuild the Dev Container or create a new environment to refresh its LLM route.