
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 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 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.
Follow the step-by-step guide in the documentation to configure OpenCode with Privatemode as your inference provider.
Privatemode offers a range of models running inside confidential computing environments with full encryption. See the model overview.
