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: use actual token value in pipe pi config instead of env var name
Louis Beaumont4f43da7091f2
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex 972208c52..8e28b451f 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -142,10 +142,14 @@ impl PiExecutor {json!({"providers": {}})};+ // Use actual token value in apiKey (not env var name) — Pi v0.51.1+ may not+ // resolve env var names reliably, causing tier=anonymous on the gateway.+ // Falls back to env var name for backwards compatibility when token is absent.+ let api_key_value = user_token.unwrap_or("SCREENPIPE_API_KEY");let screenpipe_provider = json!({"baseUrl": api_url,"api": "openai-completions",- "apiKey": "SCREENPIPE_API_KEY",+ "apiKey": api_key_value,"authHeader": true,"models": screenpipe_cloud_models()});