Cube AI
DeveloperIntegrations

Continue for VS Code

Continue Integration for VS Code

Cube AI scope

Cube AI acts as a secure LLM backend responsible for authentication, model routing, and model execution. It does not manage editor state, files, or code context — those are handled locally by the Continue extension running inside VS Code.

The Continue extension brings Cube AI’s LLM capabilities directly into Visual Studio Code, enabling inline completions, refactoring help, and chat-based assistance.

This guide explains how to connect Continue with a Cube AI domain.


1. Install Requirements

  1. Install Visual Studio Code
    Visual Studio Code

  2. Install the Continue extension
    Continue

    Continue VS Code Marketplace


2. Open Continue Configuration

In Visual Studio Code:

  1. Click the Continue icon
  2. Open the Settings / gear menu
  3. Select Configure Continue

Continue configuration

This opens the configuration file:

.continue/config.yaml

3. Configure Continue to Use Cube AI

Replace the contents of config.yaml with the configuration below.

Before editing the file, make sure you have created a Personal Access Token (PAT). You can create one from the Cube AI UI under Profile → Personal Access Tokens.

name: Cube AI
version: "1.0.0"
schema: v1

models:
  - name: llama3.2
    provider: openai
    model: llama3.2:3b
    apiKey: <pat>
    apiBase: https://<your-cube-instance>/proxy/<your-domain-id>/v1

  - name: starcoder2
    provider: openai
    model: starcoder2:3b
    apiKey: <pat>
    apiBase: https://<your-cube-instance>/proxy/<your-domain-id>/v1

context:
  - provider: code
  - provider: terminal
  - provider: diff
  - provider: folder
  - provider: problems
  - provider: docs

Replace

  • <pat> → your Cube AI Personal Access Token
  • <your-cube-instance> → your Cube AI host, for example localhost or dev.cube.ultraviolet.rs
  • <your-domain-id> → the domain ID you want VS Code to use

verifySsl: false should be used only for local development. Cube AI exposes an OpenAI-compatible API through the proxy endpoint, so Continue should be configured with provider: openai and the /v1 base path.


4. Using Continue With Cube AI

Continue chat example

Once configured:

  • Press Ctrl + L to open the Continue chat
  • Ask questions or request explanations
  • Use inline completions powered by Cube AI models

Example prompts:

  • Explain this function
  • Refactor this TypeScript file
  • Write unit tests for this module

5. Troubleshooting

Connection issues

  • Ensure Cube AI is running (make up)
  • Verify that the domain exists
  • Check that your PAT is valid

SSL issues

If you are running Cube AI locally without valid TLS certificates, set:

requestOptions:
  verifySsl: false

For production deployments, always use valid TLS certificates.


6. Video Tutorial

A complete walkthrough is available here:
Watch on YouTube

On this page