Skip to main content

OpenAI Codex

OpenAI Codex is an AI coding assistant available as both a CLI tool and a VS Code extension in Datacoves.

Prerequisites

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

  1. Open a terminal in your Datacoves VS Code workspace

  2. Run:

    codex login --device-auth
  3. The CLI will display a URL and a one-time code

  4. 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.

note

You may need to reload your browser tab after CLI login for the VS Code extension to pick up the credentials.

Learn more