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

docs: Add LAN access instructions for API

screenpipe-agent[mac-mini]0d1af2820ae7
diff --git a/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx b/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
index dcf31472f..61233c603 100644
--- a/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
+++ b/docs/mintlify/docs-mintlify-mig-tmp/search-screen-history.mdx
@@ -78,6 +78,27 @@ the easiest way to search is the built-in search in the screenpipe desktop app:
- **use time context**: combine `start_time` and `end_time` for precision
- **combine filters**: app name + time range + keywords
+## accessing the API from other devices on your network
+
+by default, the screenpipe API only listens on `127.0.0.1` (localhost). to access it from other devices on your LAN, start screenpipe with the `--listen-on-lan` flag:
+
+```bash
+screenpipe --listen-on-lan
+```
+
+this binds the server to `0.0.0.0`, making it reachable at `http://<your-machine-ip>:3030/`. note that `--listen-on-lan` automatically enables API authentication to protect your data on the network.
+
+**example:** if your machine's local IP is `192.168.1.100`, you can now query from another device:
+
+```bash
+curl "http://192.168.1.100:3030/search?q=my+query" \
+ -H "Authorization: Bearer <your-api-key>"
+```
+
+to find your machine's local IP:
+- **macOS/Linux**: `ifconfig | grep "inet " | grep -v 127.0.0.1`
+- **Windows**: `ipconfig | find "IPv4"`
+
## privacy
- all search happens locally on your device