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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: pass token via ANTHROPIC_API_KEY env var instead of --api-key flag
Louis Beaumont855161c20af6
diff --git a/screenpipe-app-tauri/src-tauri/src/pi.rs b/screenpipe-app-tauri/src-tauri/src/pi.rsindex 53449921e..620e2096c 100644--- a/screenpipe-app-tauri/src-tauri/src/pi.rs+++ b/screenpipe-app-tauri/src-tauri/src/pi.rs@@ -116,8 +116,8 @@ pub async fn run(prompt: &str, user_token: Option<&str>) -> Result<String, Strincmd.arg("--model").arg(DEFAULT_MODEL);if let Some(token) = user_token {- info!("pi::run: passing api-key (token length: {})", token.len());- cmd.arg("--api-key").arg(token);+ info!("pi::run: setting ANTHROPIC_API_KEY env var (token length: {})", token.len());+ cmd.env("ANTHROPIC_API_KEY", token);} else {warn!("pi::run: no user_token provided!");}