| 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
bun x screenpipe@latest pipe enable <name>
bun x screenpipe@latest pipe disable <name>
bun x screenpipe@latest pipe run <name>
bun x screenpipe@latest pipe logs <name>
bun x screenpipe@latest pipe install <url-or-path>
bun x screenpipe@latest pipe delete <name>
bun x screenpipe@latest pipe models list
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
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>
- Use
pipe run <name> to test before waiting for schedule
Connection Management
Manage integrations (Telegram, Slack, Discord, Email, Todoist, Teams) from the CLI.
Commands
bun x screenpipe@latest connection list
bun x screenpipe@latest connection list --json
bun x screenpipe@latest connection get <id>
bun x screenpipe@latest connection get <id> --json
bun x screenpipe@latest connection set <id> key=val
bun x screenpipe@latest connection test <id>
bun x screenpipe@latest connection remove <id>
Examples
bun x screenpipe@latest connection set telegram bot_token=123456:ABC-DEF chat_id=5776185278
bun x screenpipe@latest connection set slack webhook_url=https://hooks.slack.com/services/...
bun x screenpipe@latest connection test telegram
bun x screenpipe@latest connection list
Connection IDs: telegram, slack, discord, email, todoist, teams, google-calendar, openclaw
Credentials are stored locally at ~/.screenpipe/connections.json.
Per-integration details: don't guess API shapes from this skill. Run connection list or connection get <id> — each entry includes a self-describing description with credential fields, endpoints, and example bodies. Only fetch the integration you need.
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).