Connect a Codex account
Only an organization admin can connect or replace the organization account. From a linked project repository, run:Enable an existing account for another project
Open the project’s BYOK page and select Enable for this project. You can also run the connect command with--project; if the organization account is
already connected, OpenComputer enables the project without requiring another
OAuth flow.
Project enablement always covers both development and production. Select
Disable for this project to return only that project to Managed inference,
or disconnect the organization account to stop using it in every project.
Select a Codex model
Use the nativeopenai provider in agent code:
Troubleshooting
- The BYOK page asks you to upgrade: the organization must be on Pro or Max.
- The organization account is connected but the project is not enabled:
select Enable for this project or rerun the CLI command with
--project. - The account is revoked or needs authentication: rerun the connect command to replace it.
- A session used Managed inference: confirm the project is enabled and that
agent code uses
provider: "openai"with a Codex-supported model.
useModel() contract.