Data Protection
Pro
Data Protection checks requests for personal details and secrets, such as names, card numbers or API keys, before they leave your machine. You decide what happens to each kind: leave it, remove it, or block the request.
A small privacy model on the machine does the checking. What it finds is never stored.
You turn it on once for the machine. Then you choose where it applies: in presets, on Smart Route paths, and on tool calls.
![Data Protection is off, with Turn it on. Beside it, an example: you write an email address, and the model sees [redacted: email] instead](/nexus/_astro/data-protection-off.BcT4FW1s_2qey9K.webp)
Turn it on
Section titled “Turn it on”- Open Data Protection.
- Click Turn it on.
- Wait for the privacy model to download. It takes a few minutes and keeps going if you leave the page.
The page then says Data Protection is on. The model runs inside Nexus itself: you don’t need a local runtime or a provider, and nothing about your requests leaves the machine to set it up. You can follow the Data Protection setup job in Activity.
To turn it off, remove Data Protection. Your settings stay. While it’s off, requests through protected presets are blocked, and protected Smart Route paths do what you set for a failed check.
What gets checked
Section titled “What gets checked”The check reads the whole request, not only the last message: earlier turns, system text, tool inputs and preset variables.
It sorts each finding into a Type of detail, in three groups: Secrets, Personal details and Context.
Some things are always caught, however sure the model is: valid card numbers, IBANs, US Social Security numbers, JWTs, private keys and well-known API key formats.
Each request is checked at most once, even if a preset and a Smart Route path both protect it.
Choose what happens to each type
Section titled “Choose what happens to each type”On the Policy, under Types of detail, pick one action for each type:
- Ignore: leave it in.
- Redact: replace it before the request goes on.
- Block: stop the request. The app gets a
DATA_PROTECTION_BLOCKEDerror.

| Type of detail | Starts as |
|---|---|
| Passwords and keys, payment details, ID numbers | Block |
| Health details, contact details, addresses, dates of birth, device and vehicle details | Redact |
| Dates and times, ages, organizations, web addresses, places | Ignore |
Dates, ages, organizations, web addresses and places start as Ignore because the model often sees them where they aren’t. A version number can look like a date.
The page shows a live example that follows your saved policy, so you can see a change before you rely on it. Reset to defaults puts back the starting actions and confidence, and keeps your rules.
Minimum confidence
Section titled “Minimum confidence”The model must be sure enough before it acts. Minimum confidence starts at 50 percent. Lower it to catch more; raise it to flag less. Your rules and the always-caught checks ignore it.
Rules are patterns you write. They catch what the model misses, or let through what it gets wrong.
- Under Rules, click Add rule.
- Enter the pattern, as Exact text, Wildcard or Regular expression. You can make it case-sensitive.
- Pick what it does: allow, redact or block.
- Pick the type of detail to report it as, and give it a name if you like.
A rule wins over the model. An allow rule wins over everything, so use one to keep something in: a project code name, or an internal web address. Use redact and block rules for things the model may miss, such as your account number format or a license key.
Redaction style
Section titled “Redaction style”Under Redaction, pick how removed values are replaced:
- Placeholder writes a label, such as
[redacted: email]. Every removed email looks the same. This is the default. - Pseudonym writes a stand-in, such as
[email-4f2a]. The same value always gets the same stand-in, across turns and restarts, so the model can still follow who is who.
With pseudonyms, Nexus can also put the real values back into the reply before your app gets it. Such replies carry the X-Msty-Nexus-Data-Protection-Restored header, so the app knows the text was changed. Nexus remembers which stand-in was which value only during the request.
Protect a preset
Section titled “Protect a preset”Turn on Remove personal information in the preset. Nexus then cleans every request through that preset before it leaves the machine.
A protected preset needs Data Protection to be on. If it isn’t, the preset shows Data Protection needs setup, and its requests are blocked until it’s on.
Protect a Smart Route
Section titled “Protect a Smart Route”Smart Routes decide path by path. On the route, open Data Protection and choose:
- Which requests get checked? Each routing choice, the default fallback and the image fallback have their own switch. The route shows the coverage, such as 2 of 4 paths protected.
- What happens when it finds something. Send a cleaned request, block it, or send it to a separate route for sensitive data, such as a local model. For that route, you choose whether it gets the cleaned or the original request, and what happens if it’s down.
- If the check can’t run. Block is the safe default. You can send the original instead, but that’s a deliberate choice, and live routing marks it.
- What a fallback receives. The Cleaned request or the Original request. Nexus never switches on its own.

Here is what a model sees once a route is protected. The name, email address and phone number never reached it:
![A request through the protected Everyday route: the note named Dana Reyes with her email and phone, and the local model's summary says [Redacted] requested to reschedule the review](/nexus/_astro/data-protection-chat.BUxc_dgP_1JHdxH.webp)
A route can also change the machine policy for its own requests: different actions for some types, a stricter confidence, extra rules, or a different redaction style.
The check runs after the route picks a path and before it calls the model, so unprotected paths aren’t slowed down.
Protect tool calls
Section titled “Protect tool calls”On an integration in Tools Gateway, turn on Protect tool inputs and results. Nexus then checks what goes into each call and what comes back.
If the check can’t run, Nexus refuses the call. Images and audio can’t be checked, so they’re held back.
See what it found
Section titled “See what it found”The page keeps a running count: Checks completed, details removed each day, requests blocked, originals sent, and What it found by type. Only counts, never the text.

In Smart Route live routing, each checked request shows what was found, how sure the model was, why a value was left in, and where the request went. From there you can ignore a type of detail on that route, or make an allow rule for the flagged text.
With several machines, Fleet Insights shows the same counts for all of them.
If something goes wrong
Section titled “If something goes wrong”| What you see | What to do |
|---|---|
Requests fail with DATA_PROTECTION_BLOCKED |
That’s a block action or rule. Check the request, or change the action for that type. |
| Data Protection needs setup on a preset or route | Turn Data Protection on, and wait for the download. |
| Something safe keeps getting removed | Add an allow rule for it, or raise Minimum confidence. |
| Something sensitive gets through | Add a redact or block rule, or lower Minimum confidence. |
| The page is locked | Data Protection needs Pro or Enterprise. |