Confidential AI workflows with Privatemode and n8n

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 logo
Introduction

Automating with AI shouldn't mean exposing your workflow data

An n8n AI Agent workflow whose chat model node is connected to Privatemode

The challenge

Every AI node is a data exit

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 solution

The same nodes, pointed somewhere safe

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.

Benefits

Why use Privatemode AI with n8n?

Works with every AI node

End-to-end confidentiality

Cloud-grade AI models

Free tier available

How to get started

Set up confidential agents in n8n in just a few steps

Step illustration

Get your API key

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

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.

Screenshot of OpenAI chat model configaration.

Set up an AI agent in n8n

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:

Credentials window in n8n

Adjust credentials

To ensure that all data is sent through the Privatemode proxy set the following credentials for your OpenAI Chat Model node:

  • API Key: Set this to a placeholder value, such as ‘placeholder’. Authentication is handled by the proxy.
  • Base URL: Set this to the /v1 route of your Privatemode proxy, for example, "http://localhost:8080/v1".
Screenshot of OpenAI chat model configaration.

Set the parameters of the node

Set the parameters of the OpenAI Chat Model node to use the correct credentials and select the model you want to use.

Step illustration

Done!

You’ve successfully integrated Confidential AI into your workflow.

FAQ

Frequently asked questions about using Privatemode with n8n

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.

Integrations

View more

Explore other Privatemode integrations

Mattermost

Add AI agents to your self-hosted Mattermost channels and threads. Prompts and replies stay protected by confidential computing.

Read guide
Mattermost logo

OpenClaw

Run an open-source personal AI assistant across your messaging apps and keep your AI interaction encrypted end-to-end.

Read guide
OpenClaw mascot

Talk to an expert

Have a questions about Privatemode? Let's talk!

Want to look for yourself?