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: add copy button for API key in Privacy settings

Louis Beaumont964ea070366b
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index d53ebeba2..0d4b9de87 100644
--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
@@ -19,6 +19,7 @@ import {
WifiOff,
Tv,
Lock,
+ Copy,
} from "lucide-react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
@@ -432,6 +433,19 @@ export function PrivacySection() {
}}
className="h-8 text-xs font-mono"
/>
+ {settings.apiKey && (
+ <Button
+ variant="outline"
+ size="sm"
+ className="h-8 px-2 shrink-0"
+ onClick={() => {
+ navigator.clipboard.writeText(settings.apiKey ?? "");
+ toast({ title: "API key copied to clipboard" });
+ }}
+ >
+ <Copy className="h-3.5 w-3.5" />
+ </Button>
+ )}
</div>
)}
</LockedSetting>