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): default keyboard + clipboard capture off, add toggles

Louis Beaumont1c33819ee2f7
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index 3b3ba6ef4..d2dfbe66d 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 {
Lock,
Copy,
ClipboardX,
+ Keyboard,
FolderTree,
} from "lucide-react";
import { cn } from "@/lib/utils";
@@ -535,6 +536,12 @@ export function PrivacySection() {
handleSettingsChange({ disableClipboardCapture: !checked }, true);
};
+ const handleKeyboardCaptureToggle = (checked: boolean) => {
+ // UI is "Capture keyboard" on/off. Settings store inverts to match
+ // the CLI flag name (--disable-keyboard-capture).
+ handleSettingsChange({ disableKeyboardCapture: !checked }, true);
+ };
+
const handleRecordWhileLockedToggle = (checked: boolean) => {
handleSettingsChange({ recordWhileLocked: checked }, true);
};
@@ -956,13 +963,39 @@ export function PrivacySection() {
</div>
<Switch
id="captureClipboard"
- checked={!(settings.disableClipboardCapture ?? false)}
+ checked={!(settings.disableClipboardCapture ?? true)}
onCheckedChange={handleClipboardCaptureToggle}
/>
</div>
</CardContent>
</Card>
+ {/* Keyboard 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">
+ <Keyboard 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 keyboard
+ <HelpTooltip text="when on, screenpipe records what you type (your keystrokes). off by default. the accessibility tree and OCR still capture on-screen text either way, so Rewind and Ask keep working — this only controls the raw keystroke stream, where passwords, API keys, and secrets you type would otherwise be logged." />
+ </h3>
+ <p className="text-xs text-muted-foreground">
+ Off by default. Records the raw keystroke stream (secrets
+ often get typed). On-screen text is still captured.
+ </p>
+ </div>
+ </div>
+ <Switch
+ id="captureKeyboard"
+ checked={!(settings.disableKeyboardCapture ?? true)}
+ onCheckedChange={handleKeyboardCaptureToggle}
+ />
+ </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 07fa8e97c..d9b682473 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -262,8 +262,10 @@ export type Settings = SettingsStore & {
showRestartNotifications?: 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. */
+ /** Skip clipboard capture in the UI recorder (events + content). Defaults to true (clipboard capture OFF) — passwords / API keys often pass through the clipboard, so it's opt-in. */
disableClipboardCapture?: boolean;
+ /** Skip keyboard / typed-text capture in the UI recorder. Defaults to true (keyboard capture OFF) — the a11y tree + OCR still capture on-screen text, this only drops the raw keystroke stream where secrets get typed. */
+ disableKeyboardCapture?: 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;
@@ -575,7 +577,8 @@ let DEFAULT_SETTINGS: Settings = {
filterMusic: false,
ignoreIncognitoWindows: true,
pauseOnDrmContent: false,
- disableClipboardCapture: false,
+ disableClipboardCapture: true,
+ disableKeyboardCapture: true,
experimentalCoreaudioSystemAudio: false,
windowsInputAecEnabled: false,
macosInputVpioEnabled: false,
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 25d1f24f9..884158d4b 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -2463,12 +2463,21 @@ ignoreIncognitoWindows: boolean;
*/
pauseOnDrmContent?: boolean;
/**
- * 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.
+ * Skip clipboard capture in the UI recorder. Defaults to `true`
+ * (clipboard capture OFF) — passwords / API keys / private keys
+ * frequently pass through the clipboard, so it's opt-in via the
+ * "Capture clipboard" toggle.
*/
disableClipboardCapture?: boolean;
+/**
+ * Skip keyboard / typed-text capture in the UI recorder
+ * (`UiCaptureConfig::capture_text`). Defaults to `true` (keyboard
+ * capture OFF) — the raw keystroke stream is the highest-risk,
+ * most-redundant signal (secrets get typed), and the accessibility
+ * tree + OCR still capture on-screen text so Rewind/Ask keep working.
+ * Opt-in via the "Capture keyboard" toggle.
+ */
+disableKeyboardCapture?: boolean;
/**
* Continue recording audio when the screen is locked.
* Default: false (audio pauses when screen is locked to save resources).
diff --git a/crates/screenpipe-config/src/recording.rs b/crates/screenpipe-config/src/recording.rs
index 01e9e093e..e232550e3 100644
--- a/crates/screenpipe-config/src/recording.rs
+++ b/crates/screenpipe-config/src/recording.rs
@@ -303,13 +303,22 @@ 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)]
+ /// Skip clipboard capture in the UI recorder. Defaults to `true`
+ /// (clipboard capture OFF) — passwords / API keys / private keys
+ /// frequently pass through the clipboard, so it's opt-in via the
+ /// "Capture clipboard" toggle.
+ #[serde(rename = "disableClipboardCapture", default = "default_true")]
pub disable_clipboard_capture: bool,
+ /// Skip keyboard / typed-text capture in the UI recorder
+ /// (`UiCaptureConfig::capture_text`). Defaults to `true` (keyboard
+ /// capture OFF) — the raw keystroke stream is the highest-risk,
+ /// most-redundant signal (secrets get typed), and the accessibility
+ /// tree + OCR still capture on-screen text so Rewind/Ask keep working.
+ /// Opt-in via the "Capture keyboard" toggle.
+ #[serde(rename = "disableKeyboardCapture", default = "default_true")]
+ pub disable_keyboard_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)]
@@ -558,7 +567,8 @@ impl Default for RecordingSettings {
ignored_urls: vec![],
ignore_incognito_windows: true,
pause_on_drm_content: false,
- disable_clipboard_capture: false,
+ disable_clipboard_capture: true,
+ disable_keyboard_capture: true,
record_while_locked: false,
languages: vec![],
use_pii_removal: false,
diff --git a/crates/screenpipe-engine/src/cli/mod.rs b/crates/screenpipe-engine/src/cli/mod.rs
index de1ad2859..0e546aa22 100644
--- a/crates/screenpipe-engine/src/cli/mod.rs
+++ b/crates/screenpipe-engine/src/cli/mod.rs
@@ -589,6 +589,13 @@ pub struct RecordArgs {
#[arg(long, default_value_t = false)]
pub disable_clipboard_capture: bool,
+ /// Disable keyboard / typed-text capture entirely. The UI recorder will
+ /// not record what you type (`capture_text`) — the accessibility tree +
+ /// OCR still capture on-screen text. Useful when piping ~/.screenpipe
+ /// data into a remote LLM (secrets get typed).
+ #[arg(long, default_value_t = false)]
+ pub disable_keyboard_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.
@@ -666,6 +673,7 @@ pub struct RecordArgSources {
pub video_quality: bool,
pub pause_on_drm_content: bool,
pub disable_clipboard_capture: bool,
+ pub disable_keyboard_capture: bool,
pub api_auth: bool,
pub listen_on_lan: bool,
pub encrypt_secrets: bool,
@@ -711,6 +719,7 @@ impl RecordArgSources {
video_quality: from_command_line(record, "video_quality"),
pause_on_drm_content: from_command_line(record, "pause_on_drm_content"),
disable_clipboard_capture: from_command_line(record, "disable_clipboard_capture"),
+ disable_keyboard_capture: from_command_line(record, "disable_keyboard_capture"),
api_auth: from_command_line(record, "api_auth"),
listen_on_lan: from_command_line(record, "listen_on_lan"),
encrypt_secrets: from_command_line(record, "encrypt_secrets"),
@@ -748,6 +757,7 @@ impl RecordArgSources {
|| self.video_quality
|| self.pause_on_drm_content
|| self.disable_clipboard_capture
+ || self.disable_keyboard_capture
|| self.api_auth
|| self.listen_on_lan
|| self.encrypt_secrets
@@ -789,6 +799,9 @@ impl RecordArgs {
// `true` for both, so opting out has to be explicit.
capture_clipboard: !self.disable_clipboard_capture,
capture_clipboard_content: !self.disable_clipboard_capture,
+ // --disable-keyboard-capture drops the typed-text stream; the
+ // a11y tree + OCR still capture on-screen text.
+ capture_text: !self.disable_keyboard_capture,
capture_on_keystroke: self
.capture_on_keystroke
.unwrap_or(defaults.capture_on_keystroke),
@@ -861,6 +874,7 @@ impl RecordArgs {
ignore_incognito_windows: true,
pause_on_drm_content: self.pause_on_drm_content,
disable_clipboard_capture: self.disable_clipboard_capture,
+ disable_keyboard_capture: self.disable_keyboard_capture,
listen_on_lan: self.listen_on_lan,
..screenpipe_config::RecordingSettings::default()
}
@@ -1127,6 +1141,9 @@ impl RecordArgs {
if sources.disable_clipboard_capture {
settings.disable_clipboard_capture = self.disable_clipboard_capture;
}
+ if sources.disable_keyboard_capture {
+ settings.disable_keyboard_capture = self.disable_keyboard_capture;
+ }
if sources.api_auth {
settings.api_auth = self.api_auth;
}
diff --git a/crates/screenpipe-engine/src/recording_config.rs b/crates/screenpipe-engine/src/recording_config.rs
index c639895ac..67e4d39f3 100644
--- a/crates/screenpipe-engine/src/recording_config.rs
+++ b/crates/screenpipe-engine/src/recording_config.rs
@@ -89,6 +89,10 @@ pub struct RecordingConfig {
/// the box — passwords / api keys / private keys frequently flow
/// through the clipboard.
pub disable_clipboard_capture: bool,
+ /// Skip keyboard / typed-text capture in the UI recorder
+ /// (`UiCaptureConfig::capture_text`). The a11y tree + OCR still capture
+ /// on-screen text. See `RecordingSettings.disable_keyboard_capture`.
+ pub disable_keyboard_capture: bool,
pub languages: Vec<Language>,
// Cloud/auth
@@ -272,6 +276,7 @@ impl RecordingConfig {
ignore_incognito_windows: settings.ignore_incognito_windows,
pause_on_drm_content: settings.pause_on_drm_content,
disable_clipboard_capture: settings.disable_clipboard_capture,
+ disable_keyboard_capture: settings.disable_keyboard_capture,
languages: settings
.languages
.iter()
@@ -376,6 +381,10 @@ impl RecordingConfig {
included_windows: self.included_windows.clone(),
capture_clipboard: !self.disable_clipboard_capture,
capture_clipboard_content: !self.disable_clipboard_capture,
+ // Keyboard / typed-text capture. Off when disabled — the a11y
+ // tree + OCR still capture on-screen text, this only drops the
+ // raw keystroke stream.
+ capture_text: !self.disable_keyboard_capture,
// Input-latency tuning. `extraction_thread_priority` is parsed from its
// string form; an unrecognized value falls back to the enum default.
prioritize_input_latency: self.prioritize_input_latency,