Integrating Privatemode AI with Zed

With Privatemode and Zed, you can use state-of-the-art cloud AI models confidentially, powering Zed’s Agent Panel, Inline Assistant, and Text Threads without exposing your code.

Zed code editor logo

Introduction

Use cloud-based AI in Zed without compromising data privacy

A screenshot of the Zed AI desktop app

Code with AI, keep your source code private

Zed users value performance and control. But using cloud AI features like the Agent Panel or Inline Assistant means sending code context to third-party providers. Privatemode removes that trade-off by providing an OpenAI-compatible, end-to-end encrypted service that never exposes your code to cloud or service providers.

No need for stripped-down forks

Privacy-conscious developers have turned to forks like Zedless that strip AI features entirely. With Privatemode, you keep Zed’s full AI capabilities (Agent Panel, Inline Assistant, Text Threads) while ensuring your code stays encrypted end-to-end.

Cloud-level AI — fully encrypted

Based on confidential computing, Privatemode gives Zed users access to state-of-the-art models while keeping all code context always encrypted, even during inference. Your prompts, code snippets, and AI responses are never visible to anyone.

Benefits

Why use Privatemode AI with Zed?

End-to-end encrypted AI coding

Integrating Privatemode into Zed brings cloud-AI capabilities to your editor while keeping your code confidential through end-to-end encryption and confidential computing. Your code context, prompts, and AI responses are encrypted before they leave your machine.

State-of-the-art model selection

With Privatemode, you can choose from state-of-the-art LLMs to power Zed’s Agent Panel, Inline Assistant, and Text Threads — all running confidentially.

Native integration, no plugins needed

Zed has built-in support for OpenAI-compatible endpoints. Just add Privatemode to your settings.json and all AI features work instantly — no extensions or workarounds required.

How to get started

How to set up Privatemode in Zed

Privatemode sign-up from

Get your API key


If you don’t have a Privatemode API key yet, you can generate one for free here.

docker run -p 8080:8080 \
  ghcr.io/edgelesssys/privatemode/privatemode-proxy:latest \
  --apiKey <your-api-key>

Run the Privatemode proxy


The proxy verifies the integrity of the Privatemode service using confidential computing-based remote attestation. The proxy also encrypts all data before sending and decrypts data it receives.

The zed logo

Configure Zed to use Privatemode


Open Zed and go to Settings (Cmd+,). Zed natively supports OpenAI-compatible endpoints, so add Privatemode as a custom provider in your settings.json under language_models > openai_compatible. Set the api_url to your Privatemode proxy’s /v1 endpoint.

Walk through our interactive demo

FAQ

Frequently asked questions about using Privatemode with Zed

All of them. Since Privatemode uses the OpenAI-compatible endpoint that Zed natively supports, the Agent Panel, Inline Assistant, and Text Threads all work out of the box. You configure Privatemode once in settings.json and every AI feature routes through it automatically.

Integrations

View more

Explore other Privatemode integrations

Integration

n8n

Add cloud-grade AI to your n8n workflows while keeping all data encrypted end-to-end through confidential computing.

Read guide
n8n logo

Integration

PrivateGPT

Use Privatemode's encrypted AI API with PrivateGPT to chat with your documents without exposing sensitive files to any cloud provider.

Read guide
PrivateGPT logo

Talk to an expert

Have a questions about Privatemode? Let's talk!

Want to look for yourself?