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.
Recommended Setup
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_KEYAfter setting it, fully quit and reopen VS Code or Cursor.
Usage
- Open your project directory.
- If you use a Codex extension, confirm that it reads the local Codex config.
- If the extension does not support custom providers, run
codexin 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.