Shadow privacy layer
How Meridian keeps your company's identity and sensitive data from ever reaching a model provider.
Your identity never leaves the server. Before a prompt goes to a model provider, Shadow replaces your company name, people, emails, domains, secrets and other sensitive values with a consistent fake persona, for example a company in another region. The provider answers the persona. Shadow translates the answer back before anyone sees it, streamed answers included.
What it protects
- Your workspace name, and the company facts the agent learns (website, products, key systems), added automatically
- Personal data: names, emails, phone numbers, addresses, IBANs, payment cards, national IDs
- Technical identifiers: internal domains, hostnames, IP addresses, file paths with usernames
- Secrets: API keys, tokens and credentials that appear in text
Each real value always maps to the same fake one, so answers stay coherent across a conversation. The mapping is stored only on your server, encrypted at rest.
Shadow runs inside Meridian's server process. It is built in and on by default, wraps every model call, and masks each request before it is encrypted and sent. Nothing reaches a provider by any other path.
It understands what you're asking
Masking everything the same way would break real work, so Shadow reads each request's intent first:
| You ask the agent to… | Intent | What the provider sees |
|---|---|---|
| "Email jane@acme.com that the renewal is signed" | act | A realistic fake address. The agent's tools run on your server, so Shadow puts the real address back into the tool call before it runs. The email reaches Jane; the provider never sees her address. |
| "Summarise churn risk for these 40 customers" | report | Typed tokens such as [PERSON_0007] and [EMAIL_0012] instead of names and contacts. The model treats them as opaque IDs, and the report you read has the real customers back in. |
| "Why does this config fail?" | code | Realistic fakes for keys, hosts and paths; your real values are restored in the answer. |
| Anything else | converse | Realistic fakes. |
When a tool runs in the provider's own cloud (a hosted MCP server, for example), Shadow can't restore values there. It sends the action's target as is, so the action still works, and logs that it did. Everything else in the request stays masked. Meridian's own tools all run on your server, so this doesn't happen in Meridian today.
See what the provider sees
Shadow privacy, under AI management in the sidebar, shows the persona your providers see (company, domain, country, people), how many values are protected by kind, and a log of every model call with what was masked and restored (counts only). Settings → Shadow shows the same persona and is where you connect Shadow Hub. See Shadow integration for the Privacy and Evidence tabs and what a Hub sync records.
Configure
| Setting | Where | Default |
|---|---|---|
| On / off | MERIDIAN_SHADOW=on|off | on |
| Vault location | <MERIDIAN_DATA_DIR>/shadow | ./data/shadow |
| Policy (intent, per-kind treatment, files) | <MERIDIAN_DATA_DIR>/shadow/shadow.toml | intent on; reports tokenised |
| Presidio detector | MERIDIAN_PRESIDIO_URL=http://presidio:3000/analyze | off |
Presidio. Shadow can call Microsoft Presidio, the leading open-source PII analyzer, as an extra detector: spaCy-based name and location recognition and 50+ recognizers for national IDs and more. Start it with docker compose --profile presidio up -d, set MERIDIAN_PRESIDIO_URL, and restart. Shadow merges Presidio's findings with its own, and still owns the fakes, the vault and the persona. If Presidio is unreachable, Shadow carries on with its built-in detectors and logs a warning.
Keep the shadow/ folder private and back it up together with the database. Without it, existing fakes can't be translated back.
Protect other tools on the same host
Shadow is also an independent product, and Meridian installs it on its host by default (./meridian up --docker and meridian deploy; --no-shadow skips it): an egress proxy on port 8877 that other workloads can use, enrolled in your company's Shadow Hub workspace as a server. On laptops, you can install Shadow at OS level so every AI tool goes through it. See the Shadow repository.
Limits
Shadow translates the content of model calls. It doesn't hide your server's IP address; route egress through a relay if that matters to you.
When Shadow runs as a proxy for other tools, it also masks the files inside requests: multipart uploads and base64 attachments. Text, CSV, JSON and Markdown are masked as text. Word, Excel and PowerPoint files are masked in place and stay valid documents. PDFs are converted to masked text. Images can't be read without OCR, so they pass through untouched by default, or can be blocked.
