screenpipe-cli
它能做什么
它会运行 screenpipe 命令,用于列出、启用、停用、运行和调试管道(即定时的 AI 自动化任务),也可以管理 Slack、Telegram 等服务的连接。适合用 Screenpipe 自动化任务的人。
适用场景
- ✓当你想创建、启用或停用一个定时的 Screenpipe 自动化任务时。
- ✓当某个管道运行失败,你想检查它的日志时。
- ✓当你想从命令行连接 Slack 或 Telegram 等服务时。
技能链接
https://github.com/screenpipe/screenpipe/blob/main/.claude/skills/screenpipe-cli/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出我的 Screenpipe 管道,并显示昨晚失败的那个的日志。”
每周 5 个新技能,1 分钟读完。
工作原理
它会在干净的临时文件夹中,使用最新版本运行 screenpipe 命令行工具,然后按你的要求列出、修改或检查管道和连接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Screenpipe CLI
Use bun x screenpipe@latest to run CLI commands. No separate install needed.
IMPORTANT: Always run bun x commands from a clean temp directory to avoid node_modules conflicts:
cd "$(mktemp -d)" && bun x screenpipe@latest <command>
Shell
- All platforms →
bash(on Windows, the bundled git-portable bash is used automatically)
Pipe Management
Pipes are markdown-based AI automations that run on schedule. Each pipe lives at ~/.screenpipe/pipes/<name>/pipe.md.
Commands
bun x screenpipe@latest pipe list # List all pipes (compact table)
bun x screenpipe@latest pipe enable <name> # Enable a pipe
bun x screenpipe@latest pipe disable <name> # Disable a pipe
bun x screenpipe@latest pipe run <name> # Run once immediately (for testing)
bun x screenpipe@latest pipe logs <name> # View execution logs
bun x screenpipe@latest pipe install <url-or-path> # Install from GitHub or local path
bun x screenpipe@latest pipe delete <name> # Delete a pipe
bun x screenpipe@latest pipe models list # View AI model presets
Creating a Pipe
Create ~/.screenpipe/pipes/<name>/pipe.md with YAML frontmatter + prompt:
---
schedule: every 30m
enabled: true
preset: ["Primary", "Fallback"]
---
Your prompt instructions here. The AI agent executes this on schedule.
## What to do
1. Query screenpipe search API for recent activity
2. Process results
3. Output summary / send notification
Schedule syntax: every 30m, every 1h, every day at 9am, every monday at 9am, or cron: */30 * * * *, 0 9 * * *
Config fields: schedule, enabled (bool), preset (string or array — e.g. "Oai" or ["Primary", "Fallback"]), history (bool — include previous output as context)
Screenpipe prepends a context header with time range, timezone, OS, and API URL before each execution. No template variables needed.
After creating:
bun x screenpipe@latest pipe install ~/.screenpipe/pipes/my-pipe
bun x screenpipe@latest pipe enable my-pipe
bun x screenpipe@latest pipe run my-pipe # terminal-only; in-app chat uses the workflow below
Testing from in-app chat
The cloud JWT is intentionally absent from Bash. Do not expose or recover it, and do not use standalone pipe run. Test through the authenticated desktop runtime:
api="${SCREENPIPE_LOCAL_API_URL:-http://localhost:3030}"
auth="Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY"
curl -sS -X POST -H "$auth" "$api/pipes/my-pipe/run"
curl -sS -H "$auth" "$api/pipes/my-pipe/logs"
{"success":true} means the run started, not that it passed. Poll for a new terminal log. Bind only after success: true; otherwise report its stderr and leave the Live View unchanged.
Editing Config
Edit frontmatter in ~/.screenpipe/pipes/<name>/pipe.md directly, or use the API:
curl -X POST http://localhost:3030/pipes/<name>/config \
-H "Content-Type: application/json" \
-d '{"config": {"schedule": "every 1h", "enabled": true}}'
Rules
- Use
pipe list(not--json) — table output is compact - Never dump full pipe JSON — can be 15MB+
- Check logs first when debugging:
pipe logs <name> - Outside in-app chat, use
pipe run <name>before waiting for a schedule; in-app chat uses the authenticated runtime above
Connection Management
Manage integrations (Telegram, Slack, Discord, Email, Todoist, Teams) from the CLI.
Commands
bun x screenpipe@latest connection list # List all connections + status
bun x screenpipe@latest connection list --json # JSON output
bun x screenpipe@latest connection get <id> # Show status + non-secret settings
bun x screenpipe@latest connection get <id> --json # JSON output
bun x screenpipe@latest connection set <id> key=val # Save credentials
bun x screenpipe@latest connection test <id> # Test a connection
bun x screenpipe@latest connection remove <id> # Remove credentials
Examples
# Set up Telegram
bun x screenpipe@latest connection set telegram bot_token=123456:ABC-DEF chat_id=5776185278
# Set up Slack webhook
bun x screenpipe@latest connection set slack webhook_url=https://hooks.slack.com/services/...
# Verify it works
bun x screenpipe@latest connection test telegram
# Check what's connected
bun x screenpipe@latest connection list
Connection IDs: telegram, `sl
常见问题
需要先安装什么吗?
不需要单独安装,因为该命令通过 bun 运行。
管道保存在哪里?
每个管道都是 .screenpipe 文件夹中 pipes 文件夹里的一个 Markdown 文件。
它能立即测试某个管道吗?
可以。它可以立即运行一次管道,便于测试。
详情
作者的原始描述
Manage screenpipe pipes (scheduled AI automations) and connections (Telegram, Slack, Discord, etc.) via the CLI. Use when the user asks to create, list, enable, disable, run, or debug pipes, or manage service connections from the command line.
repo: screenpipe/screenpipe
热度
- GitHub 星标
- 22k
- 排名
- #10144
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
screenpipe-api
22k让你的智能体查阅 Screenpipe 保存在你电脑上的屏幕、音频和会议记录,回答关于过往工作的问题。
screenpipe-health
22k帮你的智能体检查 Screenpipe 是否正常运行并录制,然后指出常见问题,例如服务已停止或磁盘占用过高。
screenpipe-logs
22k帮你的智能体查找并阅读 Screenpipe 命令行和桌面应用的日志,以便发现错误,并弄清某个时间点发生了什么。
render-html-report
22k帮你的智能体把摘要做成可视化的 HTML 报告,包含图表或仪表板,并在 Screenpipe 查看器中以实时页面显示。