
n8n users self-host workflows to keep sensitive data under control. However, when adding AI nodes, that data gets sent to OpenAI or Anthropic. Privatemode lets you use cloud-grade models in n8n while keeping all workflow data encrypted end-to-end.

n8n's AI nodes — AI Agent, Basic LLM Chain, Sentiment Analysis, Summarization Chain — all call a cloud LLM. With a conventional provider, every prompt, document, and intermediate result is processed in plaintext on that provider's servers. Self-hosting n8n does not change that.
The Privatemode proxy runs next to n8n. 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. Neither the infrastructure provider nor we can read it.
If you don't have a Privatemode API key yet, you can generate one for free here.
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.
Follow the official n8n AI Agent documentation to set up an AI agent. Since Privatemode adheres to the OpenAI interface specification, you can use the standard OpenAI Chat Model node and configure its credentials to connect to Privatemode.
In addition to the AI Agent node, the OpenAI Chat Model can be used in several other powerful AI nodes, including:
To ensure that all data is sent through the Privatemode proxy set the following credentials for your OpenAI Chat Model node:
Set the parameters of the OpenAI Chat Model node to use the correct credentials and select the model you want to use.
You’ve successfully integrated Confidential AI into your workflow.
No structural changes are needed. You reconfigure the OpenAI Chat Model node credentials to point to the Privatemode proxy by changing the Base URL field. All AI nodes that use this model, including AI Agent, Basic LLM Chain, and Summarization Chain, gain end-to-end encryption automatically.
Mattermost
Add AI agents to your self-hosted Mattermost channels and threads. Prompts and replies stay protected by confidential computing.
OpenClaw
Run an open-source personal AI assistant across your messaging apps and keep your AI interaction encrypted end-to-end.

Want to look for yourself?
