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

hide consumer UI in enterprise builds (login, account, referral, upsells)

Louis Beaumontb680962fd4f2
diff --git a/apps/screenpipe-app-tauri/app/onboarding/page.tsx b/apps/screenpipe-app-tauri/app/onboarding/page.tsx
index faf238414..73b958bb3 100644
--- a/apps/screenpipe-app-tauri/app/onboarding/page.tsx
+++ b/apps/screenpipe-app-tauri/app/onboarding/page.tsx
@@ -12,6 +12,7 @@ import EngineStartup from "@/components/onboarding/engine-startup";
import ReadContent from "@/components/onboarding/read-content";
import ShortcutGate from "@/components/onboarding/shortcut-gate";
import { useOnboarding } from "@/lib/hooks/use-onboarding";
+import { useIsEnterpriseBuild } from "@/lib/hooks/use-is-enterprise-build";
import posthog from "posthog-js";
import { commands } from "@/lib/utils/tauri";
@@ -41,6 +42,14 @@ export default function OnboardingPage() {
const [isVisible, setIsVisible] = useState(true);
const [isTransitioning, setIsTransitioning] = useState(false);
const { onboardingData, isLoading } = useOnboarding();
+ const isEnterprise = useIsEnterpriseBuild();
+
+ // Enterprise builds skip the login slide
+ useEffect(() => {
+ if (isEnterprise && currentSlide === "login") {
+ setCurrentSlide("permissions");
+ }
+ }, [isEnterprise, currentSlide]);
// Restore saved step on mount
useEffect(() => {
diff --git a/apps/screenpipe-app-tauri/app/page.tsx b/apps/screenpipe-app-tauri/app/page.tsx
index 4d56c6e65..8a1d3c934 100644
--- a/apps/screenpipe-app-tauri/app/page.tsx
+++ b/apps/screenpipe-app-tauri/app/page.tsx
@@ -19,6 +19,7 @@ import { commands } from "@/lib/utils/tauri";
import localforage from "localforage";
import { LoginDialog } from "../components/login-dialog";
import { UpdateBanner, useUpdateListener } from "../components/update-banner";
+import { useIsEnterpriseBuild } from "@/lib/hooks/use-is-enterprise-build";
import { ModelDownloadTracker } from "../components/model-download-tracker";
import Timeline from "@/components/rewind/timeline";
import { Button } from "@/components/ui/button";
@@ -79,6 +80,7 @@ export default function Home() {
const { settings, updateSettings, loadUser, reloadStore, isSettingsLoaded, loadingError } = useSettings();
const { toast } = useToast();
const { onboardingData } = useOnboarding();
+ const isEnterprise = useIsEnterpriseBuild();
const { isServerDown, isLoading: isHealthLoading } = useHealthCheck();
const { isMac } = usePlatform();
const [isRestarting, setIsRestarting] = useState(false);
@@ -350,7 +352,7 @@ export default function Home() {
<>
<ChangelogDialog />
- <LoginDialog />
+ {!isEnterprise && <LoginDialog />}
<ModelDownloadTracker />
<UpdateBanner />
diff --git a/apps/screenpipe-app-tauri/app/settings/page.tsx b/apps/screenpipe-app-tauri/app/settings/page.tsx
index fc535cfc2..c80dddcc4 100644
--- a/apps/screenpipe-app-tauri/app/settings/page.tsx
+++ b/apps/screenpipe-app-tauri/app/settings/page.tsx
@@ -49,6 +49,7 @@ import { useQueryState } from "nuqs";
import { listen } from "@tauri-apps/api/event";
import { useSettings } from "@/lib/hooks/use-settings";
import { useTeam } from "@/lib/hooks/use-team";
+import { useIsEnterpriseBuild } from "@/lib/hooks/use-is-enterprise-build";
import { open as openUrl } from "@tauri-apps/plugin-shell";
import { commands } from "@/lib/utils/tauri";
import { toast } from "@/components/ui/use-toast";
@@ -100,6 +101,7 @@ function SettingsPageContent() {
const { settings } = useSettings();
const teamState = useTeam();
const posthog = usePostHog();
+ const isEnterprise = useIsEnterpriseBuild();
// Sidebar collapse state (persisted in localStorage)
const [sidebarCollapsed, setSidebarCollapsed] = useState(false);
@@ -269,9 +271,9 @@ function SettingsPageContent() {
...(showCloudSync
? [{ id: "cloud-sync" as SettingsModalSection, label: "Cloud sync", icon: <Cloud className="h-4 w-4" />, group: "settings" }]
: []),
- { id: "account", label: "Account", icon: <User className="h-4 w-4" />, group: "account" },
+ ...(!isEnterprise ? [{ id: "account" as SettingsModalSection, label: "Account", icon: <User className="h-4 w-4" />, group: "account" }] : []),
{ id: "team", label: "Team", icon: <Users className="h-4 w-4" />, group: "account" },
- { id: "referral", label: "Get free month", icon: <Gift className="h-4 w-4" />, group: "account" },
+ ...(!isEnterprise ? [{ id: "referral" as SettingsModalSection, label: "Get free month", icon: <Gift className="h-4 w-4" />, group: "account" }] : []),
];
const settingsGroup = settingsModalSections.filter(s => s.group === "settings");
@@ -404,8 +406,8 @@ function SettingsPageContent() {
{/* Spacer */}
<div className="flex-1" />
- {/* Team promo card — hidden when user already has a team or sidebar collapsed */}
- {!teamState.team && !sidebarCollapsed && (
+ {/* Team promo card — hidden when user already has a team, sidebar collapsed, or enterprise */}
+ {!teamState.team && !sidebarCollapsed && !isEnterprise && (
<div className="mx-1 mb-3 p-3 border border-border bg-card">
<h3 className="text-sm font-medium text-foreground">
Add your team to screenpipe
@@ -424,8 +426,8 @@ function SettingsPageContent() {
{/* Bottom items */}
<div className="space-y-0.5 border-t border-border pt-2">
- {/* Team link */}
- {(() => {
+ {/* Team link — hide invite promo in enterprise */}
+ {(!isEnterprise || teamState.team) && (() => {
const teamLabel = teamState.team
? `Your team (${teamState.members.length})`
: "Invite your team";
@@ -452,8 +454,8 @@ function SettingsPageContent() {
return btn;
})()}
- {/* Get free month */}
- {(() => {
+ {/* Get free month — hidden in enterprise */}
+ {!isEnterprise && (() => {
const btn = (
<button
onClick={() => openModal("referral")}