Skip to content

Configure VS Code / Cursor Extension

This page explains how to use a Claude Code extension in VS Code or Cursor with Cubicspaces.

For long-context cache behavior and request stability, see Cache & Request Affinity.

Prerequisites

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

First complete Claude Code CLI setup and verify that claude works in a normal terminal.

Then set these variables as system environment variables so VS Code or Cursor can read them when launched:

VariableValue
ANTHROPIC_AUTH_TOKENYOUR_API_KEY
ANTHROPIC_BASE_URLhttps://cubicspaces.cloud

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

Usage

  1. Open your project directory.
  2. Open the Claude Code extension panel, or run claude in the integrated terminal.
  3. Send a simple prompt and confirm that it returns normally.

Notes

Extension support for custom gateways can vary by version. If the extension still requires an official account login or does not read local environment variables, use Claude Code CLI in the integrated terminal.