Using Confidential AI with Visual Studio Code

VS Code supports AI-assisted coding through GitHub Copilot, Continue, and Cline. With Privatemode, every prompt and code snippet is encrypted end-to-end through confidential computing, keeping your codebase fully confidential.

Visual Studio Code logo

Introduction

Use VS Code AI extensions without exposing your source code

screenshot of the visualstudio code editor

AI coding extensions send your code to cloud providers

VS Code's AI ecosystem includes GitHub Copilot Chat for AI chat and editing, Continue for tab completions, and Cline for agentic coding. Each extension sends your code context to a cloud LLM provider. For teams working on proprietary software, regulated applications, or sensitive IP, that means source code leaves your control.

Privatemode keeps your code confidential

Privatemode provides an OpenAI-compatible API backed by state-of-the-art models running inside confidential computing environments. Point your VS Code extensions at the Privatemode proxy and your source code, prompts, and AI responses are encrypted end-to-end. Not even Privatemode can see your data.

Hardware-enforced, not just policy

The Privatemode proxy runs locally on your machine and encrypts all data before it leaves. On the server side, inference runs inside hardware-isolated confidential computing environments (AMD SEV / Intel TDX). The proxy verifies server integrity through remote attestation before every session. Your code is never stored and never used for model training.

Benefits

Why use Privatemode AI with Visual Studio Code?

End-to-end encrypted coding sessions

Every prompt you type and every file your AI extension reads is encrypted by the local Privatemode proxy before leaving your machine. Responses are decrypted only on your device. The models run inside confidential computing environments protected by AMD SEV and Intel TDX hardware. Your source code, architecture decisions, and business logic remain confidential throughout the entire session.

Works with three popular AI extensions

Privatemode integrates with GitHub Copilot Chat for AI-powered chat, editing, and agent mode. Use Continue for privacy-preserving tab completions with Qwen3-Coder. Or connect Cline for agentic coding workflows with gpt-oss-120b. Mix and match extensions based on your workflow.

Install the Privatemode extension and go

Install the Privatemode VS Code extension to connect GitHub Copilot to Privatemode. For Continue and Cline, simply point the base URL to localhost:8080.

Set up VS Code to use Privatemode

Follow the step-by-step guide in the documentation to configure VS Code extensions with Privatemode as your inference provider.

FAQ

Frequently asked questions about VS Code with Privatemode

Three extensions are officially supported: GitHub Copilot Chat for AI chat, editing, and agent mode; Continue for tab completions; and Cline for agentic coding. The Privatemode VS Code extension handles the Copilot integration. Continue and Cline connect directly via the OpenAI-compatible API.