OpenAI Codex
OpenAI Codex is an AI coding assistant available as both a CLI tool and a VS Code extension in Datacoves.
Prerequisites
- A ChatGPT account
- Codex enabled in your Datacoves environment. Contact Datacoves support to enable it.
Enable device code login
Before logging in from Datacoves, enable device code login in your ChatGPT account.
Personal accounts: go to your ChatGPT security settings and enable device code login.
Workspace / Enterprise accounts: a workspace admin must enable device code authentication in the admin permissions page.
For more details, see OpenAI's authentication docs.
Login
-
Open a terminal in your Datacoves VS Code workspace
-
Run:
codex login --device-auth -
The CLI will display a URL and a one-time code
-
Open the URL in any browser, enter the code, and sign in with your ChatGPT account
Both the CLI and the VS Code extension are now authenticated.
You may need to reload your browser tab after CLI login for the VS Code extension to pick up the credentials.