Table of Contents
To use OpenAI’s coding assistant inside Visual Studio Code, install the official Codex extension and sign in with your ChatGPT account if your account offers Codex access. A separate integration such as CodeGPT may use different sign-in and billing settings.
Install the official Codex extension
- Open Extensions in VS Code and find Codex – OpenAI’s coding agent. Confirm that OpenAI is the publisher.
- Select Install, then open the Codex panel in the sidebar. Follow the sign-in instructions.
- Open your project and start with a narrow request, such as “Explain how this function handles an empty input. Point to the relevant lines.”
Use a third-party extension if you need another provider
CodeGPT is the integration shown below. Look up the exact listing and publisher, check the extension’s data handling, and follow its current provider setup. If it requires an OpenAI API key, use the extension’s designated credential setting. Keep the key out of source files, prompts, screenshots, and version control. API billing is separate from a ChatGPT subscription.




Review changes before using them
Ask for a small change tied to an observable result, such as “Handle blank input and explain which existing test covers it.” Read the diff and run the relevant tests. For a first question, you can select an unfamiliar line and ask for an explanation before requesting edits.

Reader Comments 0
Sign in with email or Google to join the discussion.