Agent Skills › screenpipe/screenpipe › screenpipe-cli

screenpipe-cli

GitHub

管理 Screenpipe CLI 中的 AI 自动化管道及连接。支持通过命令行创建、启用、禁用、运行和调试定时任务,以及配置 Telegram/Slack 等服务连接,提供安装与日志查看功能。

.claude/skills/screenpipe-cli/SKILL.md screenpipe/screenpipe

Trigger Scenarios

用户需要通过命令行管理或调试 AI 自动化管道 用户需要创建或配置定时执行的屏幕监控脚本

Install

npx skills add screenpipe/screenpipe --skill screenpipe-cli -g -y
More Options

Non-standard path

npx skills add https://github.com/screenpipe/screenpipe/tree/main/.claude/skills/screenpipe-cli -g -y

Use without installing

npx skills use screenpipe/screenpipe@screenpipe-cli

指定 Agent (Claude Code)

npx skills add screenpipe/screenpipe --skill screenpipe-cli -a claude-code -g -y

安装 repo 全部 skill

npx skills add screenpipe/screenpipe --all -g -y

预览 repo 内 skill

npx skills add screenpipe/screenpipe --list

SKILL.md

Frontmatter
{
    "name": "screenpipe-cli",
    "description": "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."
}

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

  1. Use pipe list (not --json) — table output is compact
  2. Never dump full pipe JSON — can be 15MB+
  3. Check logs first when debugging: pipe logs <name>
  4. 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, slack, discord, email, todoist, teams, google-calendar, openclaw

Credentials are stored locally and are not printed by connection get.

Per-integration details: don't guess API shapes from this skill. Run connection list for self-describing local endpoints. connection get <id> returns only status and non-secret settings.

Publishing pipes to the store

screenpipe pipe publish <pipe-name>

Reads ~/.screenpipe/pipes/<pipe-name>/pipe.md, extracts title/description/icon/category from YAML frontmatter, and publishes to the screenpipe pipe store. Requires auth (SCREENPIPE_API_KEY env var or ~/.screenpipe/auth.json).

Version History

  • 449c824 Current 2026-08-20 10:10

Same Skill Collection

.claude/skills/develop-screenpipe-windows/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/screenpipe-api/SKILL.md
.claude/skills/screenpipe-health/SKILL.md
.claude/skills/screenpipe-logs/SKILL.md
.claude/skills/screenpipe-tauri/SKILL.md
crates/screenpipe-core/assets/skills/render-html-report/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-bug-report/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-chats/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-cli/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-commitment-review/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-customer-context/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-decision-history/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-durable-learning/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-focus-review/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-incident-timeline/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-interview-synthesis/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-meeting-follow-up/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-meeting-prep/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-process-guide/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-project-handoff/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-project-status/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-recall/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-research-synthesis/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-resume-work/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-shareable-recap/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-team/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-workflow-discovery/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-workflow-maintenance/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-worklog/SKILL.md
crates/screenpipe-core/assets/skills/screenpipe-writing-context/SKILL.md
packages/workflows-ui/skills/video-sop/SKILL.md

Metadata

Files
0
Version
62482a7
Hash
998584b7
Indexed
2026-08-20 10:10

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 21:02
浙ICP备14020137号-1