Using Confidential AI with Claude Code

Claude Code gives developers an AI coding assistant right in the terminal. With Privatemode, every prompt and code snippet stays encrypted end-to-end, so your proprietary codebase never leaves your control.

Claude Code logo

Introduction

Use Claude Code for agentic coding without exposing your source code

claude code terminal

AI coding assistants need access to your codebase

Claude Code is Anthropic's agentic coding tool that operates directly in your terminal. It reads, edits, and reasons across your entire codebase. By default, every prompt and code context is sent to Anthropic's cloud API. 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 Anthropic-compatible Messages API backed by state-of-the-art models running inside confidential computing environments. Point Claude Code 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 and Nvidia Confidential Computing). 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 Claude Code?

End-to-end encrypted coding sessions

Every prompt you type and every file Claude Code 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.

Full agentic coding capabilities

Claude Code's core features work through Privatemode: multi-file editing, codebase search, shell command execution, and project-wide reasoning. Use the gpt-oss-120b model for complex tasks that require deep understanding of your repository, or Qwen3-Coder for fast completions and edits.

Ready in minutes

Set three environment variables in your Claude Code settings to route all traffic through Privatemode. Your existing Claude Code setup gains end-to-end encryption immediately.

Set up Claude Code to use Privatemode

Follow the step-by-step guide in the documentation to set up Claude Code to use Privatemode as inference provider.

FAQ

Frequently asked questions about Claude Code with Privatemode

Privatemode currently offers gpt-oss-120b, a 120-billion-parameter model with 128k context and strong code generation capabilities. For faster completions, Qwen3-Coder 30B-A3B is also available. Both models run inside confidential computing environments with full encryption.