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.
Recommended Setup
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:
| Variable | Value |
|---|---|
ANTHROPIC_AUTH_TOKEN | YOUR_API_KEY |
ANTHROPIC_BASE_URL | https://cubicspaces.cloud |
After setting them, fully quit and reopen VS Code or Cursor.
Usage
- Open your project directory.
- Open the Claude Code extension panel, or run
claudein the integrated terminal. - 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.