screenpipe-cli
Skill này làm gì
Skill này thiết lập việc ghi hình màn hình và âm thanh liên tục từ dòng lệnh, rồi kiểm tra sức khỏe ghi hình, dung lượng lưu trữ và tìm kiếm. Dành cho người muốn Screenpipe chạy mà không cần ứng dụng desktop.
Khi nào nên dùng
- ✓Khi bạn muốn cài và khởi động Screenpipe trên một máy không có ứng dụng desktop.
- ✓Khi việc ghi hình có vẻ đã dừng và bạn muốn kiểm tra trạng thái ghi hình.
- ✓Khi bạn muốn tìm kiếm các bản ghi đã lưu từ terminal.
Liên kết skill
https://github.com/screenpipe/screenpipe/blob/main/crates/screenpipe-core/assets/skills/screenpipe-cli/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập Screenpipe chạy nền trên máy tính của tôi và kiểm tra xem nó có đang ghi hình không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy công cụ dòng lệnh Screenpipe từ một thư mục sạch, dùng binary đã cài nếu có sẵn. Sau đó nó đọc trạng thái và kết quả tìm kiếm rồi báo cáo.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần ứng dụng desktop không?
Không. Skill này dùng để vận hành Screenpipe mà không phụ thuộc vào ứng dụng desktop.
Nó có chạy trên Windows không?
Có. Mô tả cho biết nó chạy trên macOS, Linux và Windows.
Nó có quản lý tự động hóa không?
Có. Nó cũng có thể quản lý pipe và kết nối từ terminal.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10151
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
screenpipe-api
22kCho phép agent của bạn xem lịch sử màn hình, âm thanh và cuộc họp do Screenpipe lưu trên máy để trả lời về công việc đã làm.
screenpipe-cli
22kCho phép agent của bạn chạy các pipe và kết nối của Screenpipe từ terminal, như bật, chạy hoặc gỡ lỗi các tự động hóa AI theo lịch.
screenpipe-health
22kGiúp agent của bạn kiểm tra Screenpipe có đang chạy và ghi hình đúng không, rồi chỉ ra vấn đề như dịch vụ dừng hoặc tốn nhiều đĩa.
screenpipe-logs
22kGiúp agent của bạn tìm và đọc log dòng lệnh cùng log ứng dụng desktop của Screenpipe, để nó phát hiện lỗi và hiểu chuyện gì đã xảy ra vào một thời điểm nhất định.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.