screenpipe-cli
What it does
It sets up always-on screen and audio recording from the command line, then checks capture health, storage, and search. It is for people who want Screenpipe running without the desktop app.
When to use it
- ✓When you want to install and start Screenpipe on a machine with no desktop app.
- ✓When recording seems to have stopped and you want the capture status checked.
- ✓When you want to search your saved recordings from a terminal.
Skill link
https://github.com/screenpipe/screenpipe/blob/main/crates/screenpipe-core/assets/skills/screenpipe-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up Screenpipe to run in the background on my computer and check that it is recording.”
5 new skills a week. 1 minute to read.
How it works
It runs the Screenpipe command-line tool from a clean folder, using the installed binary when one is available. It then reads the status and search results and reports them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Screenpipe CLI
Run every CLI command exactly like this, from a clean temp directory so bun x cannot collide with a project's node_modules:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} <command>
$SCREENPIPE_CLI is an already-resolved native binary that screenpipe publishes and refreshes for you. When it is set, a call costs ~0.15s. The bun x screenpipe@latest fallback runs when it is not (a plain terminal, a fresh install, an offline machine) and costs ~4s, because @latest re-resolves the npm registry every single time. Never replace the whole expression with just bun x screenpipe@latest — you would give up the fast path for no reason.
Rules: every invocation is cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} … · keep the ${SCREENPIPE_CLI:-…} form intact · never drop the cd prefix · copy the examples below verbatim rather than shortening them · because the cd changes your working directory, any path you pass must be absolute (~/... or /...), never relative (./my-pipe).
Works on macOS, Linux, and Windows: the CLI always runs under bash, and mktemp is present on all three (on Windows via the bundled git-portable usr/bin).
Use status, search, and state-changing commands as the terminal surface. For repeated or SQL reads, use MCP or the local API (see screenpipe-api). Never use an external SQLite client on the live database.
Sandboxed shells: some agents (e.g. Codex) block all shell network access, so
bun xcannot fetch the package and CLI calls tolocalhost:3030fail instantly. If that happens, use the screenpipe MCP tools instead of the CLI.
Recorder quickstart
For a CLI-only user who wants this computer recorded continuously, use this sequence:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} doctor
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} service install
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} status
service install defaults to recorder mode: screen + audio capture, local indexing, and the API, launched at boot/login and restarted after failures. On macOS, resolve Screen Recording, Microphone, and Accessibility permission warnings reported by doctor; a background service cannot bypass OS consent.
Use the foreground process only for an interactive session or live debugging:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} record
Use API-only server mode only when the machine should serve existing or synced data without recording itself:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} service install --mode server
Running service install again switches modes and restarts the service immediately. service uninstall stops and removes it.
Status and diagnostics
Start every investigation with:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} status
This reports the distinction that matters:
recording normally: the API is healthy and at least one capture stream is activeserving normally: intentional server mode; the API is healthy and local capture is disablednot capturing: the process is up but no capture stream is activeneeds attention: the health endpoint reports degraded/unhealthy capturestopped: no screenpipe health endpoint answered on the selected port
It also prints screen/audio freshness, active devices, history counts, total storage, and the exact SQLite path. Do not infer recording from a PID, an open port, or service status; those prove a process exists, not that new data is arriving.
For scripts and agents, use structured output:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} status --json
Important fields are running, health.status, health.frame_status, health.audio_status, last_capture, last_audio_capture, storage_size_bytes, and database_path. Treat running: true as API availability only; inspect capture status and timestamps before claiming recording is healthy.
Useful follow-ups:
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} service status
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} doctor
cd "$(mktemp -d)" && ${SCREENPIPE_CLI:-bun x screenpipe@latest} diagnose --dry-run
diagnose --dry-run saves a support bundle locally and does not upload it. Do not run diagnose without `--dr
FAQ
Do I need the desktop app?
No. This skill is for operating Screenpipe without relying on the desktop app.
Does it work on Windows?
Yes. The description says it works on macOS, Linux, and Windows.
Can it manage automations too?
Yes. It can also manage pipes and connections from the terminal.
Details
Original description by the author
Set up and operate screenpipe from the terminal, including always-on recording, service modes, capture health, storage, local search, pipes, and connections. Use when the user asks to install, run, inspect, query, automate, or debug screenpipe without relying on the desktop app.
repo: screenpipe/screenpipe
Popularity
- GitHub stars
- 22k
- Ranking position
- #10151
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
screenpipe-api
22kLets your agent look through your own screen, audio, and meeting history saved by Screenpipe on your computer, to answer questions about past work.
screenpipe-cli
22kLets your agent run Screenpipe pipes and connections from the terminal, such as enabling, running, or debugging scheduled AI automations.
screenpipe-health
22kHelps your agent check whether Screenpipe is running and recording properly, then points out common problems such as a stopped service or heavy disk use.
screenpipe-logs
22kHelps your agent find and read Screenpipe's command-line and desktop app logs, so it can spot errors and work out what happened at a given time.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.