Use Confidential AI with OpenCode

OpenCode is an open-source AI coding agent for the terminal. With Privatemode, every prompt and code snippet is protected end-to-end through confidential computing, even while being processed by AI.

OpenCode logo
Introduction

AI-assisted coding shouldn't mean exposing your code

OpenCode running in a terminal with Privatemode as the AI provider

The challenge

Your codebase leaves with every prompt

OpenCode reads across your project to generate and edit code, and sends that context to a cloud LLM. With a conventional provider, your source, architecture decisions, and business logic are processed in plaintext on the provider's servers.

The solution

A provider that cannot read your code

The Privatemode proxy runs locally. It verifies the integrity of the Privatemode cloud service through remote attestation, and encrypts every request before it leaves your machine. Cloud-side, your data is protected end-to-end by confidential computing and stays encrypted in memory even during processing. By design, neither the infrastructure provider nor we can read it.

Benefits

Why use Privatemode AI with OpenCode?

End-to-end confidentiality

Cloud-grade AI models

Free tier available

Set up OpenCode to use Privatemode

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

FAQ

Frequently asked questions about OpenCode with Privatemode

Privatemode offers a range of models running inside confidential computing environments with full encryption. See the model overview.