Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

docs(privacy-filter): add mintlify docs page + link from chat tooltip

Louis Beaumont9fdf1cd3a299
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 5bb13e8f1..7ef1675fa 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -4499,7 +4499,7 @@ export function StandaloneChat({ className }: { className?: string } = {}) {
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
- openUrl("https://screenpi.pe/privacy-filter");
+ openUrl("https://docs.screenpi.pe/privacy-filter");
}}
className="text-[11px] underline text-muted-foreground hover:text-foreground transition-colors"
>
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/docs.json b/docs/mintlify/docs-mintlify-mig-tmp/docs.json
index 73a6772f5..000ca22e2 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/docs.json
+++ b/docs/mintlify/docs-mintlify-mig-tmp/docs.json
@@ -31,7 +31,7 @@
},
{
"group": "connect",
- "pages": ["mcp-server", "mcp-apps", "connections", "cloud-sync", "cloud-archive", "teams"]
+ "pages": ["mcp-server", "mcp-apps", "connections", "cloud-sync", "cloud-archive", "privacy-filter", "teams"]
},
{
"group": "use cases",
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/privacy-filter.mdx b/docs/mintlify/docs-mintlify-mig-tmp/privacy-filter.mdx
new file mode 100644
index 000000000..66811e2c1
--- /dev/null
+++ b/docs/mintlify/docs-mintlify-mig-tmp/privacy-filter.mdx
@@ -0,0 +1,130 @@
+---
+title: "privacy filter - strip personal info before AI sees it"
+sidebarTitle: "privacy filter"
+description: "Remove names, emails, phone numbers, addresses, and account numbers from your screen data before it reaches the AI. Runs inside a confidential-compute enclave you can verify."
+icon: "shield-halved"
+---
+
+the privacy filter removes personal info from your screen data before the AI you're chatting with sees it. names, emails, phone numbers, addresses, account numbers — all replaced with placeholders like `[PERSON]`, `[EMAIL]`, `[PHONE]` before the text ever leaves the filter.
+
+it runs inside a confidential-compute enclave — a virtual machine whose memory is encrypted by the CPU, so even the cloud provider can't read what's inside.
+
+## how it works
+
+<Steps>
+ <Step title="you flip the shield in chat">
+ in the chat composer, click the shield icon above the send button. the toggle is saved between sessions.
+ </Step>
+ <Step title="screenpipe runs on your machine">
+ when the AI asks for screen data (OCR text, audio transcripts, etc.), screenpipe-server on your computer sends that text to our privacy filter at `pii.screenpipe.containers.tinfoil.dev`.
+ </Step>
+ <Step title="the enclave strips personal info">
+ a token-classification model reads the text and replaces personal info with tagged placeholders. the enclave has no disk, no logs, and encrypted memory — nothing persists past the request.
+ </Step>
+ <Step title="the AI gets the redacted version">
+ the filtered text comes back with names/emails/etc replaced. that's what reaches your AI chat — the AI never sees your personal info.
+ </Step>
+</Steps>
+
+## what gets removed
+
+<CardGroup cols={2}>
+ <Card title="names" icon="user">
+ people names in any context — "Louis", "Mr. Beaumont", "louis.b@..."
+ </Card>
+ <Card title="emails" icon="envelope">
+ email addresses in any format
+ </Card>
+ <Card title="phones" icon="phone">
+ phone numbers including international formats
+ </Card>
+ <Card title="addresses" icon="location-dot">
+ physical addresses and postal codes
+ </Card>
+ <Card title="account numbers" icon="hashtag">
+ SSNs, credit card numbers, bank accounts, IDs
+ </Card>
+ <Card title="secrets" icon="key">
+ API keys and tokens that look like secrets
+ </Card>
+ <Card title="urls" icon="link">
+ URLs that look personal
+ </Card>
+ <Card title="dates" icon="calendar">
+ dates that look personal (birthdates etc)
+ </Card>
+</CardGroup>
+
+example:
+
+```
+Before: "email [email protected] about the invoice, call me at 555-1234"
+After: "email [EMAIL] about the invoice, call me at [PHONE]"
+```
+
+## why not just a regex
+
+most "PII scrubbers" are pattern matches: find anything with an `@` + a domain, replace it. that catches obvious stuff and misses everything else — names with no context, addresses with no zip code, account numbers formatted oddly, dates.
+
+our filter uses [`openai/privacy-filter`](https://huggingface.co/openai/privacy-filter), a 1.5B-parameter token-classification model fine-tuned specifically for this. it reads the whole sentence and decides, token by token, what is and isn't personal.
+
+## why it's confidential
+
+we run the filter inside a **confidential-compute enclave** hosted by [Tinfoil](https://tinfoil.sh). confidential compute uses CPU features (AMD SEV-SNP / Intel TDX) to encrypt the virtual machine's memory at the hardware level. even the cloud provider running the physical hardware can't read the memory.
+
+what that gives you:
+
+<CardGroup cols={2}>
+ <Card title="attested code" icon="certificate">
+ the enclave publishes a signed hash of the container image it's running. you (or your client) can fetch the hash and check it against [the open-source code](https://github.com/screenpipe/privacy-filter). if the hashes don't match, the enclave is compromised and the client refuses to talk to it.
+ </Card>
+ <Card title="no disk" icon="database">
+ the enclave has no persistent storage. nothing written during a request survives past the request — by design, not policy.
+ </Card>
+ <Card title="no logs" icon="eye-slash">
+ the [server code](https://github.com/screenpipe/privacy-filter/blob/main/server.py) doesn't log request bodies. anyone can audit it.
+ </Card>
+ <Card title="encrypted transport" icon="lock">
+ HTTPS from your machine to the enclave. TLS termination happens inside the attested boundary, so the decrypted text only exists in enclave memory.
+ </Card>
+</CardGroup>
+
+## who sees what
+
+- **you**: you flip the toggle, you see the original data on your own screen.
+- **screenpipe-server (local)**: sends raw text to the enclave, gets redacted text back. runs on your computer.
+- **the enclave**: decrypts the text, runs the model, returns the redacted version. destroys the memory immediately.
+- **screenpipe cloud**: _not in the path._ our backend can't see the raw text — we built it this way deliberately.
+- **the AI (claude, gpt, gemini, your local llama, whichever)**: only ever sees the redacted version.
+
+## where it applies
+
+<Tabs>
+ <Tab title="chat">
+ toggle the shield icon in the chat composer. the app adds `filter_pii=1` to every search the AI runs on your screen data. persists across sessions.
+ </Tab>
+ <Tab title="pipes">
+ set `privacy_filter: true` in a pipe's front-matter (`pipe.md`). the pipe agent's screen searches get the flag automatically.
+ </Tab>
+ <Tab title="api">
+ append `?filter_pii=1` to any `/search` request against your local screenpipe-server (`http://localhost:3030/search?q=foo&filter_pii=1`).
+ </Tab>
+</Tabs>
+
+## limits
+
+- **latency.** adds ~1-2 seconds per search on first hit. responses are cached by content hash for 1 hour so repeated data (same email thread, same IDE file) is nearly free.
+- **model imperfection.** >99% on common categories in our tests, but not perfect. don't rely on it as your only line of defense for critical secrets — combine with the "ignored windows" filter and don't record password managers.
+- **text only.** the filter operates on text already extracted from screenshots (OCR, accessibility). raw image frames aren't uploaded. if you enable cloud archive that uploads frames, those are separate and encrypted end-to-end by your own key.
+- **pro tier.** the shield icon is a Pro feature. compute inside a confidential enclave isn't free. non-pro users see the shield with an upgrade link.
+- **fail closed.** if the enclave is unreachable, your search call fails with a clear error rather than silently returning unredacted text. you never get redaction that didn't happen.
+
+## open source
+
+all three layers are auditable:
+
+- **filter service, Dockerfile, Tinfoil config:** [github.com/screenpipe/privacy-filter](https://github.com/screenpipe/privacy-filter)
+- **client integration in screenpipe-server:** [crates/screenpipe-engine/src/privacy_filter.rs](https://github.com/screenpipe/screenpipe/blob/main/crates/screenpipe-engine/src/privacy_filter.rs)
+- **Tinfoil attestation SDK** for independently verifying the running enclave: [docs.tinfoil.sh](https://docs.tinfoil.sh)
+
+if you find a way to make the filter leak data, [please tell us](mailto:[email protected]) — we take this one seriously.