How to Use OpenAI Codex CLI in VS Code with GPT-5 Model

2025-09-03 00:378 min read

Content Introduction

In this tutorial video, the host guides viewers on how to run Codex CLI within Visual Studio Code (VS Code). The video begins with an introduction to Codex CLI, suggesting viewers watch a previous video for more detailed insights. The installation process is clearly outlined, including how to search for and install the necessary plugins within VS Code. Viewers are informed that Codex CLI is not free and requires a paid account to use. The host walks through logging into Codex, setting up the environment, and creating a simple to-do application, demonstrating functionality including task creation and deletion. Additionally, the video covers system prompts, handling of progress tracking during code execution, and the importance of using descriptive prompts for better results. It wraps up by encouraging viewers to experiment with Codex CLI's capabilities and inviting them to like and share the video.

Key Information

  • The video demonstrates how to run Codex CLI inside Visual Studio Code (VS Code).
  • It emphasizes the need to have a paid ChatGPT Plus account to access Codex CLI, as it's not available for free users.
  • To get started, users should open VS Code, search for the Codex plugin in the extension marketplace, and install the official one by OpenAI.
  • After installation, users will see the Codex icon in the top right corner of VS Code.
  • Once Codex is set up, users can access it through the left menu and begin using it for coding tasks.
  • The video outlines how to create a simple to-do application using Codex, highlighting its functionalities.
  • Users can configure settings like choosing between local or cloud environments, and can also adjust the reasoning effort settings.
  • The video concludes by encouraging users to experiment with Codex CLI for various tasks beyond just creating basic applications.

Timeline Analysis

Content Keywords

Codex CLI

This video demonstrates how to run Codex CLI inside VS Code. It covers the installation process, including searching for the correct plugin from OpenAI, logging into a ChatGPT account, and using Codex in local environments or the cloud.

VS Code

The tutorial shows how to use VS Code effectively, including how to access the extension marketplace and install the Codex plugin. It highlights the integration of Codex CLI in VS Code for various programming tasks.

Agent Mode

The video explores using Codex in agent mode to create a simple to-do application, complete with authentication and database integration, demonstrating the coding capabilities of Codex.

Installation Process

Instructions on installing the Codex CLI plugin in VS Code, ensuring users select the correct version made by OpenAI, followed by logging into their ChatGPT accounts and beginning to use Codex.

To-Do Application

A demonstration of creating a simple to-do application using Codex in agent mode, showcasing how Codex can help developers by generating code for practical applications.

Guided Tour

Users can expect a guided tour of Codex upon first launch, explaining its various functionalities and how it can be utilized effectively in different environments.

Terminal Use

The video showcases how to interact with Codex CLI in the terminal, including running servers and performing tasks while displaying the output within VS Code.

Model Preferences

Discussion on the preferences settings for training data and reasoning effort, allowing users to customize their Codex experience.

GPT-5 Model

The Codex CLI operates on the Chat GPT-5 model, noted for its advanced coding capabilities, which significantly enhances the coding experience for developers.

User Interaction

Highlights how users can engage with the Codex CLI, create tasks, manage their to-do lists, and verify results within the development environment.

More video recommendations

Share to: