Skip to content

Configure VS Code / Cursor Extension

This page explains how to use Codex in VS Code or Cursor with Cubicspaces.

Prerequisites

  • Codex CLI is installed.
  • VS Code or Cursor is installed.
  • You have created a Cubicspaces API key.

First complete Codex CLI setup and verify that Codex works in a normal terminal.

Then set OPENAI_API_KEY as a system environment variable:

text
OPENAI_API_KEY=YOUR_API_KEY

After setting it, fully quit and reopen VS Code or Cursor.

Usage

  1. Open your project directory.
  2. If you use a Codex extension, confirm that it reads the local Codex config.
  3. If the extension does not support custom providers, run codex in the integrated terminal.

Notes

VS Code and Cursor extension support for custom OpenAI-compatible services can vary by version. If the extension only supports official account login, use Codex CLI in the integrated terminal.