Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/how-tos/vs-code/external-ai-tools/openai-codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ sidebar_position: 1
## Prerequisites

- A [ChatGPT](https://chatgpt.com) account
- Codex enabled in your Datacoves environment. Contact [Datacoves support](mailto:support@datacoves.com) to enable it.
- OpenAI Codex enabled in your Datacoves environment. An administrator enables **OpenAI Codex** under
**Admin > Environments > _your environment_ > AI Tools > AI Extensions**, and **OpenAI Codex CLI** under
**AI Tools**.

## Enable device code login

Expand All @@ -26,7 +28,7 @@ For more details, see [OpenAI's authentication docs](https://developers.openai.c

## Login

1. Open a terminal in your Datacoves VS Code workspace
1. Open a terminal in your Datacoves VS Code workspace, with **OpenAI Codex CLI** enabled.

2. Run:

Expand All @@ -38,7 +40,13 @@ For more details, see [OpenAI's authentication docs](https://developers.openai.c

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.
The CLI is now signed in. The CLI and the extension share the same Codex login.

With **OpenAI Codex** enabled, you can also sign in from the Codex view with **Sign in with ChatGPT**. It asks
for confirmation, opens the OpenAI page, and signs the extension in.

The view also offers **Use device code**, which shows a one-time code. Enter that code on the OpenAI device
login page.

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