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

domain: switch desktop API calls to api.screenpipe.com (phase 2) (#3583)

Louis Beaumonte79fc189518a
diff --git a/apps/screenpipe-app-tauri/components/onboarding/engine-startup.tsx b/apps/screenpipe-app-tauri/components/onboarding/engine-startup.tsx
index 88540cd6d..68051e8e6 100644
--- a/apps/screenpipe-app-tauri/components/onboarding/engine-startup.tsx
+++ b/apps/screenpipe-app-tauri/components/onboarding/engine-startup.tsx
@@ -483,7 +483,7 @@ export default function EngineStartup({
const userToken = settings.user?.token;
if (preset?.provider === "screenpipe-cloud" && userToken) {
- endpoint = "https://api.screenpi.pe/v1/chat/completions";
+ endpoint = "https://api.screenpipe.com/v1/chat/completions";
model = preset.model || model;
auth = { Authorization: `Bearer ${userToken}` };
} else if (
@@ -496,7 +496,7 @@ export default function EngineStartup({
auth = { Authorization: `Bearer ${preset.apiKey}` };
} else if (userToken) {
// Fall back to cloud even if preset is non-cloud but token exists.
- endpoint = "https://api.screenpi.pe/v1/chat/completions";
+ endpoint = "https://api.screenpipe.com/v1/chat/completions";
auth = { Authorization: `Bearer ${userToken}` };
} else {
// No way to call any model. Bail and reset the gate so a later poll
diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
index e9cb9aeb1..e4334cce8 100644
--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.tsx
@@ -205,7 +205,7 @@ export function AIProviderConfig({
const fetchPiModels = async () => {
try {
const token = settings?.user?.token || "";
- const resp = await fetch("https://api.screenpi.pe/v1/models", {
+ const resp = await fetch("https://api.screenpipe.com/v1/models", {
headers: token ? { Authorization: `Bearer ${token}` } : {},
});
if (resp.ok) {
diff --git a/apps/screenpipe-app-tauri/components/rewind/region-ocr-overlay.tsx b/apps/screenpipe-app-tauri/components/rewind/region-ocr-overlay.tsx
index 310248e23..4a5e1c534 100644
--- a/apps/screenpipe-app-tauri/components/rewind/region-ocr-overlay.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/region-ocr-overlay.tsx
@@ -151,7 +151,7 @@ export const RegionOcrOverlay: FC<RegionOcrOverlayProps> = ({
// Call screenpipe cloud API
const response = await fetch(
- "https://api.screenpi.pe/v1/chat/completions",
+ "https://api.screenpipe.com/v1/chat/completions",
{
method: "POST",
headers: {
diff --git a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
index 0ecc8e12a..f5239ae00 100644
--- a/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/ai-presets.tsx
@@ -741,13 +741,13 @@ const AISection = ({
modelCount = ollamaModels.length;
setModels(ollamaModels);
} else {
- const apiModels = (data.data || [])
- .map((m: any) => ({
+ const apiModels = (data.data || [])
+ .map((m: any) => ({
id: m.id,
name: m.id,
provider: settingsPreset?.provider || "custom",
- }))
- .filter((m: any, idx: number, arr: any[]) => arr.findIndex((x: any) => x.id === m.id) === idx);
+ }))
+ .filter((m: any, idx: number, arr: any[]) => arr.findIndex((x: any) => x.id === m.id) === idx);
modelCount = apiModels.length;
setModels(apiModels);
}
@@ -897,6 +897,7 @@ const AISection = ({
const isApiKeyRequired =
settingsPreset?.provider !== "openai-chatgpt" &&
settingsPreset?.provider !== "anthropic" &&
+ settingsPreset?.url !== "https://api.screenpipe.com/v1" &&
settingsPreset?.url !== "https://api.screenpi.pe/v1" &&
settingsPreset?.url !== "http://localhost:11434/v1" &&
settingsPreset?.url !== "embedded";
@@ -1029,8 +1030,8 @@ const AISection = ({
id: m.id,
name: m.id,
provider: "openai-chatgpt",
- }))
- .filter((m: { id: string }, idx: number, arr: { id: string }[]) => arr.findIndex((x) => x.id === m.id) === idx);
+ }))
+ .filter((m: { id: string }, idx: number, arr: { id: string }[]) => arr.findIndex((x) => x.id === m.id) === idx);
console.log("[chatgpt] fetched", chatgptModels.length, "models from API");
if (chatgptModels.length > 0) {
setModels(chatgptModels);
@@ -1062,13 +1063,13 @@ const AISection = ({
// Fetch models from gateway so new models appear automatically
try {
const token = settings.user?.token || "";
- const piResp = await fetch("https://api.screenpi.pe/v1/models", {
+ const piResp = await fetch("https://api.screenpipe.com/v1/models", {
headers: token ? { Authorization: `Bearer ${token}` } : {},
});
if (piResp.ok) {
const piData = await piResp.json();
- const piModels: AIModel[] = (piData.data || [])
- .map((m: any) => ({
+ const piModels: AIModel[] = (piData.data || [])
+ .map((m: any) => ({
id: m.id,
name: m.name || m.id,
provider: "screenpipe",
@@ -1083,8 +1084,8 @@ const AISection = ({
recommended_for: m.recommended_for,
warning: m.warning,
query_weight: m.query_weight,
- }))
- .filter((m: AIModel, idx: number, arr: AIModel[]) => arr.findIndex((x) => x.id === m.id) === idx);
+ }))
+ .filter((m: AIModel, idx: number, arr: AIModel[]) => arr.findIndex((x) => x.id === m.id) === idx);
if (piModels.length > 0) {
setModels(piModels);
break;
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-usage-status.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-usage-status.tsx
index 278d2dd7a..a969084d3 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-usage-status.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-usage-status.tsx
@@ -24,7 +24,7 @@ export interface UsageStatus {
resets_at: string;
}
-const USAGE_URL = "https://api.screenpi.pe/v1/usage";
+const USAGE_URL = "https://api.screenpipe.com/v1/usage";
/** Poll interval — 30s is frequent enough that a user who sends a burst
* sees the chip appear promptly, rare enough not to hammer the worker. */
const POLL_INTERVAL_MS = 30_000;
diff --git a/apps/screenpipe-app-tauri/src-tauri/assets/extensions/web-search.ts b/apps/screenpipe-app-tauri/src-tauri/assets/extensions/web-search.ts
index 1e863715d..d26f6cdf3 100644
--- a/apps/screenpipe-app-tauri/src-tauri/assets/extensions/web-search.ts
+++ b/apps/screenpipe-app-tauri/src-tauri/assets/extensions/web-search.ts
@@ -32,7 +32,7 @@ export default function (pi: ExtensionAPI) {
const apiKey = process.env.SCREENPIPE_API_KEY || "";
const response = await fetch(
- "https://api.screenpi.pe/v1/web-search",
+ "https://api.screenpipe.com/v1/web-search",
{
method: "POST",
headers: {
diff --git a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
index a6c2d274c..e08a158c0 100644
--- a/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
+++ b/apps/screenpipe-app-tauri/src-tauri/capabilities/main.json
@@ -10,6 +10,7 @@
"http://localhost:*",
"https://api.openai.com/*",
"https://*.openai.com/*",
+ "https://api.screenpipe.com/*",
"https://api.screenpi.pe/*",
"https://*.anthropic.com/*",
"https://*.ollama.ai/*",
diff --git a/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json b/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
index dba880652..ee8be638d 100644
--- a/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
+++ b/apps/screenpipe-app-tauri/src-tauri/gen/schemas/capabilities.json
@@ -1 +1 @@
-{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*","https://api.openai.com/*","https://*.openai.com/*","https://api.screenpi.pe/*","https://*.anthropic.com/*","https://*.ollama.ai/*","https://*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default",{"identifier":"shell:allow-open","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"}]},"store:default","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","fs:allow-rename","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default",{"identifier":"opener:allow-open-url","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"},{"url":"^obsidian://.*"}]},"core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/**","requireLiteralLeadingDot":false},{"path":"$DOWNLOAD","requireLiteralLeadingDot":false},{"path":"$DOWNLOAD/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor/**","requireLiteralLeadingDot":false},{"path":"$HOME/.codex","requireLiteralLeadingDot":false},{"path":"$HOME/.codex/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Obsidian","requireLiteralLeadingDot":false},{"path":"$APPDATA/Obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/.config/obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/.config/obsidian/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$TEMP"},{"path":"$TEMP/*"},{"path":"$TEMP/**"}]},"opener:default",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"open","name":"open","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"cmd","name":"cmd","sidecar":false}]}]}}
\ No newline at end of file
+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*","https://api.openai.com/*","https://*.openai.com/*","https://api.screenpipe.com/*","https://api.screenpi.pe/*","https://*.anthropic.com/*","https://*.ollama.ai/*","https://*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default",{"identifier":"shell:allow-open","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"}]},"store:default","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","fs:allow-rename","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default",{"identifier":"opener:allow-open-url","allow":[{"url":"^https?://.*"},{"url":"^mailto:.*"},{"url":"^tel:.*"},{"url":"^x-apple-reminderkit://.*"},{"url":"^obsidian://.*"}]},"core:window:default","core:window:allow-get-all-windows","core:window:allow-close","core:window:allow-destroy","core:window:allow-start-dragging",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/**","requireLiteralLeadingDot":false},{"path":"$DOWNLOAD","requireLiteralLeadingDot":false},{"path":"$DOWNLOAD/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/**","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor","requireLiteralLeadingDot":false},{"path":"$HOME/.cursor/**","requireLiteralLeadingDot":false},{"path":"$HOME/.codex","requireLiteralLeadingDot":false},{"path":"$HOME/.codex/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude","requireLiteralLeadingDot":false},{"path":"$APPDATA/Claude/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Claude/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Local/Packages/Claude_pzs8sxrjxfjjc/LocalCache/Roaming/Claude/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/Obsidian","requireLiteralLeadingDot":false},{"path":"$APPDATA/Obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/AppData/Roaming/Obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/Library/Application Support/obsidian/**","requireLiteralLeadingDot":false},{"path":"$HOME/.config/obsidian","requireLiteralLeadingDot":false},{"path":"$HOME/.config/obsidian/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools","core:webview:allow-create-webview-window",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$TEMP"},{"path":"$TEMP/*"},{"path":"$TEMP/**"}]},"opener:default",{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"open","name":"open","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"cmd","name":"cmd","sidecar":false}]}]}}
\ No newline at end of file
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
index 19d822295..74c4436be 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
@@ -291,7 +291,7 @@ fn check_package_bin(pkg_dir: std::path::PathBuf, bin_name: &str) -> Option<Stri
const PI_PACKAGE: &str = "@earendil-works/[email protected]";
const PI_AI_PACKAGE: &str = "@earendil-works/[email protected]";
const PI_NAMESPACE_DIR: &str = "@earendil-works";
-const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/v1";
+const SCREENPIPE_API_URL: &str = "https://api.screenpipe.com/v1";
/// Pool of Pi sessions — each session_id gets its own PiManager/process.
pub struct PiPool {
@@ -1121,7 +1121,7 @@ const PI_READY_TIMEOUT: std::time::Duration = std::time::Duration::from_millis(2
/// Resolve a model name for the screenpipe provider.
///
-/// The gateway (api.screenpi.pe) is the source of truth for model validation
+/// The gateway (api.screenpipe.com) is the source of truth for model validation
/// and supports many more models than the local hardcoded list (OpenRouter,
/// Gemini, Anthropic, etc.). We only do lightweight normalization here
/// (strip date suffixes) and pass through to the gateway which will reject
@@ -3153,7 +3153,7 @@ mod tests {
assert_eq!(providers.len(), 1);
let sp = &providers["screenpipe"];
- assert_eq!(sp["baseUrl"], "https://api.screenpi.pe/v1");
+ assert_eq!(sp["baseUrl"], "https://api.screenpipe.com/v1");
assert_eq!(sp["api"], "openai-completions");
assert_eq!(sp["apiKey"], "SCREENPIPE_API_KEY");
assert_eq!(sp["authHeader"], true);
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index a093864e4..9a621b1ae 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -771,7 +771,7 @@ impl Default for AIPreset {
id: String::new(),
prompt: String::new(),
provider: AIProviderType::ScreenpipeCloud,
- url: "https://api.screenpi.pe/v1".to_string(),
+ url: "https://api.screenpipe.com/v1".to_string(),
model: "qwen/qwen3.5-flash-02-23".to_string(),
default_preset: false,
api_key: None,
@@ -956,7 +956,7 @@ Rules:
- Always answer my question/intent, do not make up things
"#.to_string(),
provider: AIProviderType::ScreenpipeCloud,
- url: "https://api.screenpi.pe/v1".to_string(),
+ url: "https://api.screenpipe.com/v1".to_string(),
model: "auto".to_string(),
default_preset: true,
api_key: None,
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs
index 764cf765f..fb948ed8e 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs
@@ -54,7 +54,7 @@ pub struct CachedSuggestions {
// ─── Enhanced AI config ─────────────────────────────────────────────────────
-/// When enabled, uses screenpipe cloud (api.screenpi.pe) instead of Apple
+/// When enabled, uses screenpipe cloud (api.screenpipe.com) instead of Apple
/// Intelligence for generating suggestions. Produces much better results
/// but sends recent activity context to the cloud.
#[derive(Debug, Clone)]
@@ -1433,7 +1433,7 @@ struct AiResult {
}
/// Screenpipe cloud API endpoint for enhanced AI suggestions.
-const SCREENPIPE_CLOUD_API: &str = "https://api.screenpi.pe/v1";
+const SCREENPIPE_CLOUD_API: &str = "https://api.screenpipe.com/v1";
async fn generate_ai_suggestions(
api: &LocalApiContext,
diff --git a/crates/screenpipe-audio/src/meeting_streaming/config.rs b/crates/screenpipe-audio/src/meeting_streaming/config.rs
index 1b3795c5b..18fdb9c77 100644
--- a/crates/screenpipe-audio/src/meeting_streaming/config.rs
+++ b/crates/screenpipe-audio/src/meeting_streaming/config.rs
@@ -7,7 +7,7 @@ use std::{env, str::FromStr};
use serde::{Deserialize, Serialize};
use url::Url;
-const SCREENPIPE_CLOUD_REALTIME_URL: &str = "wss://api.screenpi.pe/v1/realtime";
+const SCREENPIPE_CLOUD_REALTIME_URL: &str = "wss://api.screenpipe.com/v1/realtime";
const DEEPGRAM_LIVE_URL: &str = "wss://api.deepgram.com/v1/listen";
const SCREENPIPE_CLOUD_REALTIME_PATH: &str = "/v1/realtime";
const DEEPGRAM_LIVE_PATH: &str = "/v1/listen";
diff --git a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
index c2da82602..54308c658 100644
--- a/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
+++ b/crates/screenpipe-audio/src/transcription/deepgram/batch.rs
@@ -275,14 +275,14 @@ async fn handle_deepgram_response(
error!(
"device: {}, deepgram request blocked — received HTML instead of JSON (status {}). \
this usually means a firewall, corporate proxy, or captive portal is intercepting \
- requests to api.screenpi.pe. body preview: {}",
+ requests to api.screenpipe.com. body preview: {}",
device,
status,
&body_text[..body_text.len().min(500)]
);
return Err(anyhow::anyhow!(
"Audio transcription blocked by network (firewall/proxy). \
- Please check that api.screenpi.pe is accessible from your network."
+ Please check that api.screenpipe.com is accessible from your network."
));
}
@@ -374,11 +374,11 @@ async fn handle_deepgram_response(
let err_str = format!("{:?}", e);
if err_str.contains("timed out") || err_str.contains("timeout") {
error!(
- "device: {}, deepgram request timed out — possible firewall blocking api.screenpi.pe: {:?}",
+ "device: {}, deepgram request timed out — possible firewall blocking api.screenpipe.com: {:?}",
device, e
);
return Err(anyhow::anyhow!(
- "Audio transcription request timed out. Check if api.screenpi.pe is accessible from your network."
+ "Audio transcription request timed out. Check if api.screenpipe.com is accessible from your network."
));
}
if err_str.contains("dns") || err_str.contains("resolve") {
@@ -396,7 +396,7 @@ async fn handle_deepgram_response(
device, e
);
return Err(anyhow::anyhow!(
- "Connection refused to audio transcription server. A firewall may be blocking api.screenpi.pe."
+ "Connection refused to audio transcription server. A firewall may be blocking api.screenpipe.com."
));
}
diff --git a/crates/screenpipe-audio/src/transcription/deepgram/mod.rs b/crates/screenpipe-audio/src/transcription/deepgram/mod.rs
index 41c00c50d..b137dbf99 100644
--- a/crates/screenpipe-audio/src/transcription/deepgram/mod.rs
+++ b/crates/screenpipe-audio/src/transcription/deepgram/mod.rs
@@ -34,7 +34,7 @@ impl DeepgramTranscriptionConfig {
pub fn screenpipe_cloud(token: String) -> Self {
Self {
- endpoint: "https://api.screenpi.pe/v1/listen".to_string(),
+ endpoint: "https://api.screenpipe.com/v1/listen".to_string(),
auth_token: token,
auth_header_prefix: "Bearer",
}
diff --git a/crates/screenpipe-core/assets/extensions/web-search.ts b/crates/screenpipe-core/assets/extensions/web-search.ts
index 313ee22fd..3e6ed16b5 100644
--- a/crates/screenpipe-core/assets/extensions/web-search.ts
+++ b/crates/screenpipe-core/assets/extensions/web-search.ts
@@ -41,7 +41,7 @@ export default function (pi: ExtensionAPI) {
const apiKey = process.env.SCREENPIPE_API_KEY || "";
const response = await fetch(
- "https://api.screenpi.pe/v1/web-search",
+ "https://api.screenpipe.com/v1/web-search",
{
method: "POST",
headers: {
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index 41c9f3565..dc44e27bd 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -16,7 +16,7 @@ use tracing::{debug, error, info, warn};
const PI_PACKAGE: &str = "@earendil-works/[email protected]";
const PI_AI_PACKAGE: &str = "@earendil-works/[email protected]";
const PI_NAMESPACE_DIR: &str = "@earendil-works";
-pub const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/v1";
+pub const SCREENPIPE_API_URL: &str = "https://api.screenpipe.com/v1";
/// Fetch the model catalog from the Cloudflare Worker gateway and convert
/// it into the format Pi's `models.json` expects.
@@ -102,7 +102,7 @@ fn fallback_cloud_models() -> serde_json::Value {
pub struct PiExecutor {
/// Screenpipe cloud token (for LLM calls via screenpipe proxy).
pub user_token: Option<String>,
- /// Screenpipe API base URL (default: `https://api.screenpi.pe/v1`).
+ /// Screenpipe API base URL (default: `https://api.screenpipe.com/v1`).
pub api_url: String,
/// Bearer token for the *local* screenpipe-server API (localhost:3030).
/// Exposed to the Pi subprocess as `SCREENPIPE_API_AUTH_KEY` so bash tool
@@ -131,7 +131,7 @@ impl PiExecutor {
/// screenpipe-api skill is installed WITHOUT the Gemma 4 E4B
/// confidential-enclave block. Default (no marker) = enabled, so
/// fresh installs ship the capability documented and Pi knows to
- /// call `api.screenpi.pe` with `model: "gemma4-e4b"` for audio /
+ /// call `api.screenpipe.com` with `model: "gemma4-e4b"` for audio /
/// video / image analysis.
///
/// Gating happens at install time (here) rather than by mutating
diff --git a/crates/screenpipe-engine/src/routes/cloud_proxy.rs b/crates/screenpipe-engine/src/routes/cloud_proxy.rs
index 45e2c9cc6..78a239cb9 100644
--- a/crates/screenpipe-engine/src/routes/cloud_proxy.rs
+++ b/crates/screenpipe-engine/src/routes/cloud_proxy.rs
@@ -7,7 +7,7 @@
//! agent never sees the cloud JWT. Agent-driven media analysis goes through
//! this route instead: agent → localhost:3030/v1/chat/completions (auth'd
//! with the local sp-key the wrapper auto-injects) → server forwards to
-//! api.screenpi.pe with the user's cloud JWT held in AppState.
+//! api.screenpipe.com with the user's cloud JWT held in AppState.
use axum::{
body::Body,
@@ -20,7 +20,7 @@ use tracing::warn;
use crate::server::AppState;
-const CLOUD_BASE_URL: &str = "https://api.screenpi.pe";
+const CLOUD_BASE_URL: &str = "https://api.screenpipe.com";
pub async fn chat_completions(
State(state): State<Arc<AppState>>,
diff --git a/crates/screenpipe-engine/src/server.rs b/crates/screenpipe-engine/src/server.rs
index 50f431aaf..2d7abffc7 100644
--- a/crates/screenpipe-engine/src/server.rs
+++ b/crates/screenpipe-engine/src/server.rs
@@ -190,7 +190,7 @@ pub struct AppState {
pub api_auth: bool,
/// The API key to validate against (from SCREENPIPE_API_KEY or auth.json)
pub api_auth_key: Option<String>,
- /// Cloud JWT (Clerk) used to authenticate proxied requests to api.screenpi.pe.
+ /// Cloud JWT (Clerk) used to authenticate proxied requests to api.screenpipe.com.
/// Held in a RwLock so the desktop shell can refresh it after login/logout
/// without rebuilding the server. The pi-agent's bash deliberately can't see
/// this token — agent calls localhost/v1/chat/completions and the server
@@ -288,7 +288,7 @@ impl SCServer {
}
/// Set the cloud JWT used to authenticate proxied chat-completion calls
- /// to api.screenpi.pe. Safe to call before or after `start()` — the route
+ /// to api.screenpipe.com. Safe to call before or after `start()` — the route
/// reads the inner Arc on each request. Callers can also clone the Arc
/// directly (see `cloud_token_handle`) to update it from elsewhere.
pub fn with_cloud_token(self, token: Option<String>) -> Self {
@@ -713,7 +713,7 @@ impl SCServer {
axum::routing::post(crate::routes::transcribe::transcribe_handler)
.layer(axum::extract::DefaultBodyLimit::max(250 * 1024 * 1024)), // 250MB
)
- // Local proxy → api.screenpi.pe/v1/chat/completions. Lets the
+ // Local proxy → api.screenpipe.com/v1/chat/completions. Lets the
// pi-agent's bash do cloud media analysis without ever seeing the
// cloud JWT (which the wrapper unsets). Body limit bumped because
// requests embed base64'd audio/images.
diff --git a/crates/screenpipe-engine/src/workflow_classifier.rs b/crates/screenpipe-engine/src/workflow_classifier.rs
index 51de9e3d0..e3a0a2f0a 100644
--- a/crates/screenpipe-engine/src/workflow_classifier.rs
+++ b/crates/screenpipe-engine/src/workflow_classifier.rs
@@ -63,7 +63,7 @@ const EVENT_LABELS: &[&str] = &[
/// self-hosted vLLM. Going through the gateway means infra moves only need a
/// `wrangler secret put EVENT_CLASSIFIER_URL` — no client release.
/// Override with the `SCREENPIPE_EVENT_CLASSIFIER_URL` env var for self-host.
-pub const DEFAULT_CLASSIFIER_URL: &str = "https://api.screenpi.pe";
+pub const DEFAULT_CLASSIFIER_URL: &str = "https://api.screenpipe.com";
/// Start the workflow classifier polling loop.
pub async fn start_workflow_classifier(