Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>andromeda codexNew to Visual Studio Code? Get it now.
andromeda codex

andromeda codex

ThomasYiu0447

|
38 installs
| (1) | Free
OpenAI's Codex CLI for VScode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Andromeda Codex VS Code Extension

OpenAI's Codex CLI integration for VS Code.

Features

  • Codex: Run Prompt
    Run a custom prompt on the current file using Codex CLI.

  • Codex: Model o4-mini
    Run a custom prompt using the o4-mini model.

  • Codex: Fix Selected Code
    Select code, right-click, and choose "Fix Selected Code" to run codex fix on your selection in a terminal.

  • Codex: Edit Selected Code
    Select code, right-click, and choose "Edit Selected Code" to run codex edit on your selection in a terminal.

  • Codex: Generate Unit Test for Codebase
    Select code, right-click, and choose "Generate Unit Test for codebase" to run codex generate unit test on codebase.

Usage

  1. Select code in the editor.
  2. Right-click and choose the desired Codex command from the context menu, or use the Command Palette (Ctrl+Shift+P).
  3. The extension will write your selection to a temporary file and run the appropriate Codex CLI command in a new terminal.

Requirements

  • Node.js
  • Codex CLI (installed via npx)

Changelog

See CHANGELOG.md for details.

Codex Chat with GPT-4.1

Interact with OpenAI's GPT-4.1 directly from Visual Studio Code using the Codex Chat feature.

How to Use

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  2. Search for and select "Codex Chat with GPT-4.1".
  3. Enter your question or prompt in the input box.
  4. When prompted, enter your OpenAI API key.
  5. View the AI's response in a popup dialog.

Requirements

  • An OpenAI API key with access to GPT-4.1.

Example

User: How do I reverse a string in Python?
Codex Chat:

my_string = "hello"
reversed_string = my_string[::-1]
print(reversed_string)  # Output: "olleh"

Codex Chat Feature

You can interact with Codex (GPT-4.1) using special instructions in your editor:

Usage

  • Copilot Chat:
    Type your question or instruction in the Copilot chat panel.

  • @chat=codex:
    Start your message with @chat=codex to direct your prompt to the Codex model.

  • @chat-codex/Codex Assistant:
    Use @chat-codex or select Codex Assistant as your chat provider.

Example Prompts

@chat=codex
How do I create a REST API in Node.js?

or

@chat-codex
Show me how to write a binary search in Python.

Notes

  • Codex Chat leverages GPT-4.1 for advanced code understanding and generation.
  • Make sure you have access to the Codex model via your OpenAI account.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft