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(privacy): toggle to disable clipboard capture (UI + CLI flag)

Louis Beaumont48fef33f1f97
diff --git a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
index 56b7f9952..4aa271943 100644
--- a/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
+++ b/apps/screenpipe-app-tauri/components/cli-command-dialog.tsx
@@ -110,6 +110,9 @@ export function CliCommandDialog({ settings }: CliCommandDialogProps) {
if (settings.disableAudio) {
args.push("--disable-audio");
}
+ if (settings.disableClipboardCapture) {
+ args.push("--disable-clipboard-capture");
+ }
settings.ignoredWindows.forEach((window) =>
args.push(`--ignored-windows "${window}"`)
);
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index 7e71de752..42e032752 100644
--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
@@ -20,6 +20,7 @@ import {
Tv,
Lock,
Copy,
+ ClipboardX,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
@@ -314,6 +315,12 @@ export function PrivacySection() {
handleSettingsChange({ pauseOnDrmContent: checked }, true);
};
+ const handleClipboardCaptureToggle = (checked: boolean) => {
+ // UI is "Capture clipboard" on/off. Settings store inverts to match
+ // the CLI flag name (--disable-clipboard-capture).
+ handleSettingsChange({ disableClipboardCapture: !checked }, true);
+ };
+
const handleRecordWhileLockedToggle = (checked: boolean) => {
handleSettingsChange({ recordWhileLocked: checked }, true);
};
@@ -761,6 +768,32 @@ export function PrivacySection() {
</CardContent>
</Card>
+ {/* Clipboard capture toggle */}
+ <Card>
+ <CardContent className="px-3 py-2.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-2.5">
+ <ClipboardX className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground flex items-center gap-1.5">
+ Capture clipboard
+ <HelpTooltip text="when on, screenpipe records clipboard copy/paste events and contents. turn off if you ship ~/.screenpipe to a remote LLM or share it — passwords, API keys, and private keys frequently pass through the clipboard." />
+ </h3>
+ <p className="text-xs text-muted-foreground">
+ Skip if your data leaves the machine (passwords, keys often
+ pass through copy/paste).
+ </p>
+ </div>
+ </div>
+ <Switch
+ id="captureClipboard"
+ checked={!Boolean(settings.disableClipboardCapture ?? false)}
+ onCheckedChange={handleClipboardCaptureToggle}
+ />
+ </div>
+ </CardContent>
+ </Card>
+
{/* Record While Locked */}
<Card>
<CardContent className="px-3 py-2.5">
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 0b90181d5..829ac99de 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -223,6 +223,8 @@ export type Settings = SettingsStore & {
offlineMode?: boolean;
/** Pause all screen capture when a DRM-protected streaming app (Netflix, Disney+, etc.) or a remote-desktop client (Omnissa/VMware Horizon) is focused — they blank their windows during screen recording */
pauseOnDrmContent?: boolean;
+ /** Skip clipboard capture in the UI recorder (events + content). Recommended when piping ~/.screenpipe to a remote LLM since passwords / API keys often pass through the clipboard. */
+ disableClipboardCapture?: boolean;
/** Experimental: capture System Audio via CoreAudio Process Tap (macOS 14.4+) instead of ScreenCaptureKit.
* Off by default. Ignored on macOS <14.4 and non-macOS — falls back to SCK. */
experimentalCoreaudioSystemAudio?: boolean;
@@ -464,6 +466,7 @@ let DEFAULT_SETTINGS: Settings = {
filterMusic: false,
ignoreIncognitoWindows: true,
pauseOnDrmContent: false,
+ disableClipboardCapture: false,
experimentalCoreaudioSystemAudio: false,
recordWhileLocked: false,
appendTypedTextToMeetingNotes: true,
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rs
index 75a99e366..8c4b1fdf6 100644
--- a/crates/screenpipe-config/src/recording.rs
+++ b/crates/screenpipe-config/src/recording.rs
@@ -166,6 +166,13 @@ pub struct RecordingSettings {
#[serde(rename = "pauseOnDrmContent", default)]
pub pause_on_drm_content: bool,
+ /// Skip clipboard capture in the UI recorder. Off by default; recommended
+ /// when piping ~/.screenpipe data into a remote LLM or sharing it,
+ /// since passwords / API keys / private keys often pass through the
+ /// clipboard.
+ #[serde(rename = "disableClipboardCapture", default)]
+ pub disable_clipboard_capture: bool,
+
/// Continue recording audio when the screen is locked.
/// Default: false (audio pauses when screen is locked to save resources).
#[serde(rename = "recordWhileLocked", default)]
@@ -347,6 +354,7 @@ impl Default for RecordingSettings {
ignored_urls: vec![],
ignore_incognito_windows: true,
pause_on_drm_content: false,
+ disable_clipboard_capture: false,
record_while_locked: false,
append_typed_text_to_meeting_notes: true,
languages: vec![],
diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rs
index 0c9437e19..09ee4baee 100644
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@ -393,6 +393,13 @@ pub struct RecordArgs {
#[arg(long, default_value_t = false)]
pub pause_on_drm_content: bool,
+ /// Disable clipboard capture entirely. The UI recorder will not record
+ /// clipboard copy/paste events or contents — useful when piping
+ /// ~/.screenpipe data into a remote LLM (passwords, keys, secrets often
+ /// pass through the clipboard).
+ #[arg(long, default_value_t = false)]
+ pub disable_clipboard_capture: bool,
+
/// Require authentication for remote API access. When enabled, non-localhost
/// requests must include Authorization: Bearer <SCREENPIPE_API_KEY>.
/// Localhost requests are always allowed.
@@ -445,6 +452,10 @@ impl RecordArgs {
excluded_windows: self.ignored_windows.clone(),
ignored_windows: self.ignored_windows.clone(),
included_windows: self.included_windows.clone(),
+ // --disable-clipboard-capture flips both flags off. Defaults are
+ // `true` for both, so opting out has to be explicit.
+ capture_clipboard: !self.disable_clipboard_capture,
+ capture_clipboard_content: !self.disable_clipboard_capture,
..Default::default()
}
}
@@ -492,6 +503,7 @@ impl RecordArgs {
analytics_enabled: !self.disable_telemetry,
ignore_incognito_windows: true,
pause_on_drm_content: self.pause_on_drm_content,
+ disable_clipboard_capture: self.disable_clipboard_capture,
listen_on_lan: self.listen_on_lan,
..screenpipe_config::RecordingSettings::default()
}
diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rs
index 73071c98d..713a2770a 100644
--- a/crates/screenpipe-engine/src/recording_config.rs
+++ b/crates/screenpipe-engine/src/recording_config.rs
@@ -53,6 +53,11 @@ pub struct RecordingConfig {
pub ignore_incognito_windows: bool,
/// Pause all screen capture when a DRM streaming app (Netflix, etc.) is focused.
pub pause_on_drm_content: bool,
+ /// Skip clipboard capture in the UI recorder (events + content). Useful
+ /// when piping ~/.screenpipe data into a remote LLM or shipping it off
+ /// the box — passwords / api keys / private keys frequently flow
+ /// through the clipboard.
+ pub disable_clipboard_capture: bool,
pub languages: Vec<Language>,
// Cloud/auth
@@ -178,6 +183,7 @@ impl RecordingConfig {
ignored_urls: settings.ignored_urls.clone(),
ignore_incognito_windows: settings.ignore_incognito_windows,
pause_on_drm_content: settings.pause_on_drm_content,
+ disable_clipboard_capture: settings.disable_clipboard_capture,
languages: settings
.languages
.iter()
@@ -247,6 +253,8 @@ impl RecordingConfig {
excluded_windows: self.ignored_windows.clone(),
ignored_windows: self.ignored_windows.clone(),
included_windows: self.included_windows.clone(),
+ capture_clipboard: !self.disable_clipboard_capture,
+ capture_clipboard_content: !self.disable_clipboard_capture,
..Default::default()
}
}