screenpipe-api
它能做什么
它会把你的智能体连接到本地的 Screenpipe 服务,让它能搜索你屏幕上出现过的内容、你的会议以及你使用过的应用。适合想回顾或总结过去工作的人。
适用场景
- ✓当你想找到几小时前或本周在屏幕上看到过的内容时。
- ✓当你想总结某段时间内的会议或所用应用时。
- ✓当你想查看 Screenpipe 同步的其他设备上的活动时。
技能链接
https://github.com/screenpipe/screenpipe/blob/main/.claude/skills/screenpipe-api/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我昨天下午在做什么?请用我的 Screenpipe 记录帮我查一下。”
每周 5 个新技能,1 分钟读完。
工作原理
它会使用你的本地密钥,把请求发送到 Screenpipe 的本地服务,把返回结果保存为文件,并只阅读能回答你问题的部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Screenpipe API
Local REST API at http://localhost:3030. Full reference (60+ endpoints): https://docs.screenpi.pe/llms-full.txt
Authentication
ALL requests require authentication. Add the auth header to every curl call:
curl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" \
-H "X-Screenpipe-Client: api" \
-H "X-Screenpipe-Agent: unknown" \
"http://localhost:3030/..."
The fixed X-Screenpipe-Client: api value attributes a successful, nonempty
external retrieval to the API surface. Never put an agent name, customer name,
project, prompt, or other dynamic value in this header.
Include both attribution headers above on REST retrievals. The installer sets
X-Screenpipe-Agent to a fixed app identifier; preserve that value. If this is
an unconfigured reference, leave it as unknown. Never substitute a project,
user, model, prompt, or other dynamic identifier.
The $SCREENPIPE_LOCAL_API_KEY env var is already set in your environment. Without it you get 403. The only exception is /health (no auth needed).
Context Window Protection
API responses can be large. Always write curl output to a file first (curl ... -o /tmp/sp_result.json), check size (wc -c /tmp/sp_result.json), and if over 5KB read only the first 50-100 lines. Extract what you need with jq. NEVER dump full large responses into context.
For the list endpoints (/search, /elements, /frames/{id}/elements) you can also cut tokens at the source: add &format=csv (or tsv) to get a columnar table that writes each column name once instead of repeating keys per row, and &fields=a,b,c to return only the columns you need (dotted paths like content.text). On a list of UI elements that is roughly a 70% token cut versus JSON. For the element endpoints specifically, &format=outline (alias tree) goes further still — a deduped, indented tree of just the text-bearing nodes (~91% fewer tokens, measured) — and is the best default for reading UI structure. Use &format=automation for automation planning: it retains interactive controls, state, bounds, allowed actions, short response-local refs, and best-effort stable keys. Text-heavy ocr/audio barely benefit from any reshaping (the text blob dominates), so reach for fields + max_content_length there. With no format/fields the response is unchanged JSON.
1. Search — GET /search
curl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" \
-H "X-Screenpipe-Client: api" \
-H "X-Screenpipe-Agent: unknown" \
"http://localhost:3030/search?q=QUERY&content_type=all&limit=10&start_time=1h%20ago"
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q |
string | No | Keywords. Do NOT use for audio searches — transcriptions are noisy, q filters too aggressively. |
content_type |
string | No | all (default), accessibility, audio, input, ocr, memory, parsed. Use parsed for compact app-specific messages, emails, tasks, documents, and code review. Parsed capture is experimental, may be empty when disabled/unsupported, and is not included in all. Screen text is primarily captured via the OS accessibility tree (accessibility); OCR is a fallback for apps without accessibility support. |
limit |
integer | No | Max 1-20. Default: 10 |
offset |
integer | No | Pagination. Default: 0 |
start_time |
ISO 8601, relative, or local calendar | Yes | Accepts 2024-01-15T10:00:00Z, 16h ago, today, yesterday, or YYYY-MM-DD |
end_time |
Same as start_time |
No | Defaults to now |
app_name |
string | No | e.g. "Google Chrome", "Slack", "zoom.us" |
window_name |
string | No | Window title substring |
frame_id |
integer | No | With content_type=parsed, return parsed data attached to one frame. |
actor_id |
integer | No | With content_type=parsed, filter by a resolved actor identity. |
speaker_name |
string | No | Filter audio by speaker (case-insensitive partial) |
focused |
boolean | No | Only focused windows |
tags |
string | No | Comma-separated; return only items carrying ALL of them (e.g. person:ada,project:atlas). Works for screen/audio and, with content_type=memory, memories. See Tags below. |
include_related |
boolean | No | With tags, also return a related map of co-occurring tags (people/projects/workflows seen alongside yours), most-frequent first. One call for the surrounding context instea |
常见问题
它需要密钥吗?
需要。本地服务要求提供密钥,没有密钥请求会失败。
它只搜索我的电脑吗?
它查询的是你电脑上运行的 Screenpipe 服务,设置好后也可以涵盖同步的设备。
它能导出媒体文件吗?
可以。导出媒体和重新转写是它可以执行的操作之一。
详情
作者的原始描述
Query the user's local and synced-device Screenpipe data via the REST API at localhost:3030. Use for screen activity, meetings, apps, productivity, other-device or cross-device history, media export, retranscription, or connected services.
repo: screenpipe/screenpipe
热度
- GitHub 星标
- 22k
- 排名
- #10143
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
screenpipe-cli
22k让你的智能体在终端中运行 Screenpipe 的管道(pipes)和连接,例如启用、运行或调试定时的 AI 自动化任务。
screenpipe-health
22k帮你的智能体检查 Screenpipe 是否正常运行并录制,然后指出常见问题,例如服务已停止或磁盘占用过高。
screenpipe-logs
22k帮你的智能体查找并阅读 Screenpipe 命令行和桌面应用的日志,以便发现错误,并弄清某个时间点发生了什么。
render-html-report
22k帮你的智能体把摘要做成可视化的 HTML 报告,包含图表或仪表板,并在 Screenpipe 查看器中以实时页面显示。