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

feat(pii): enable PII removal by default (#2120)

Louis Beaumontc72c23a8bb4d
diff --git a/screenpipe-app-tauri/components/settings/recording-settings.tsx b/screenpipe-app-tauri/components/settings/recording-settings.tsx
index 425be9e79..ebeb967da 100644
--- a/screenpipe-app-tauri/components/settings/recording-settings.tsx
+++ b/screenpipe-app-tauri/components/settings/recording-settings.tsx
@@ -1452,9 +1452,9 @@ export function RecordingSettings() {
<div className="flex items-center justify-between">
<div className="space-y-1">
- <Label htmlFor="usePiiRemoval">PII removal</Label>
+ <Label htmlFor="usePiiRemoval">PII removal (recommended)</Label>
<p className="text-sm text-muted-foreground">
- Redact emails, phone numbers, and addresses from screen text
+ Redact sensitive data from OCR and audio: emails, phones, SSNs, credit cards, IP addresses, API keys
</p>
</div>
<Switch
diff --git a/screenpipe-app-tauri/src-tauri/src/store.rs b/screenpipe-app-tauri/src-tauri/src/store.rs
index 847e741e7..f730dec2d 100644
--- a/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -407,7 +407,7 @@ impl Default for SettingsStore {
ocr_engine: "tesseract".to_string(),
monitor_ids: vec!["default".to_string()],
audio_devices: vec!["default".to_string()],
- use_pii_removal: false,
+ use_pii_removal: true,
restart_interval: 0,
port: 3030,
data_dir: "default".to_string(),
diff --git a/screenpipe-server/src/cli.rs b/screenpipe-server/src/cli.rs
index 73deace52..056909a39 100644
--- a/screenpipe-server/src/cli.rs
+++ b/screenpipe-server/src/cli.rs
@@ -235,8 +235,9 @@ pub struct Cli {
#[arg(short = 'l', long, value_enum)]
pub language: Vec<Language>,
- /// Enable PII removal from OCR text property that is saved to db and returned in search results
- #[arg(long, default_value_t = false)]
+ /// Enable PII removal from OCR text and audio transcriptions saved to db and returned in search results.
+ /// When enabled, sensitive data like emails, phone numbers, credit cards, SSNs, and API keys are redacted.
+ #[arg(long, default_value_t = true)]
pub use_pii_removal: bool,
/// Disable vision recording