scrcpy
БесплатноБез исполняемых скриптовНе проверенscrcpy shows an Android phone or tablet screen on the computer and lets you control it with the keyboard and mouse over USB or Wi-Fi, with no app on the…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
scrcpy — mirror, control and record an Android device
Overview
scrcpy ("screen copy") talks to the device through adb, starts a small server on it for the duration of the session, and streams the encoded screen (and audio) back to the computer. Nothing is installed permanently and no root is needed. It can mirror and control the device, record the stream to a file straight from the device encoder, mirror the camera instead of the screen, work over Wi-Fi, or run without any window.
Everything here assumes the user owns the device or is explicitly allowed to use it; scrcpy needs USB debugging, which the owner must switch on, and the device shows an authorization prompt the first time a computer connects. An agent should never try to work around that prompt.
Instructions
Installation
Use the official release; the project warns against downloading it from anywhere else (https://github.com/Genymobile/scrcpy). Package-manager versions on Debian, Ubuntu and Snap are marked obsolete by the project.
brew install scrcpy # macOS (Homebrew); also needs: brew install --cask android-platform-tools
sudo pacman -S scrcpy # Arch Linux
Linux and Windows static builds include adb. Linux example with the checksum published in the project's doc/linux.md:
curl -fLO https://github.com/Genymobile/scrcpy/releases/download/v5.0.1/scrcpy-linux-x86_64-v5.0.1.tar.gz
echo "9f969d30cc574816077edecda65719c1c70b0aee1df1ba5fa00779ac07b8fd6e scrcpy-linux-x86_64-v5.0.1.tar.gz" | sha256sum --check
tar -xzf scrcpy-linux-x86_64-v5.0.1.tar.gz
./scrcpy-linux-x86_64-v5.0.1/scrcpy --version
Run it from that folder or add the folder to PATH. Check the latest tag on the releases page before copying the version number and checksum.
Prepare the device and connect over USB
- On the phone: Settings, About phone, tap Build number seven times; then Developer options, enable USB debugging.
- Plug in the USB cable and accept the "Allow USB debugging?" prompt on the phone.
- Check that the device is listed as
device(notunauthorized):
adb devices
scrcpy
If several devices are attached, pick one with --serial (-s), --select-usb (-d) or --select-tcpip (-e); the ANDROID_SERIAL environment variable works too.
On some devices (notably Xiaomi) keyboard and mouse input fails with an INJECT_EVENTS error until the separate option "USB debugging (Security settings)" is enabled and the device is rebooted.
Wireless connection
With the phone on the same network as the computer:
scrcpy --tcpip # while connected by USB: finds the IP, enables adb over TCP/IP, connects
scrcpy --tcpip=192.168.1.42 # a device already listening on port 5555
scrcpy --tcpip=+192.168.1.42:5555 # "+" forces a reconnection
After the first successful --tcpip, the cable can be removed. On Android 11+, wireless debugging in Developer options can replace the USB step; pair and connect with adb pair / adb connect first, then run scrcpy -e.
Recording
--record (-r) muxes on the computer the stream encoded on the device; the container is chosen from the file extension or --record-format (mp4, mkv, m4a, mka, opus, aac, flac, wav).
scrcpy --record=login-flow.mp4
scrcpy --no-audio --record=login-flow.mp4 # video only
scrcpy --no-video --record=voice-note.opus # audio only
scrcpy --record=demo.mkv --time-limit=90 # stop after 90 seconds
Timestamps are taken on the device, so a flaky Wi-Fi link does not leave stutter in the file.
Headless: record with no window
--no-window hides the window and implies no video playback; --no-playback (-N) disables video and audio playback on the computer. Use them for unattended recording and combine with --no-control to make sure nothing is sent to the device.
scrcpy --no-window --no-control --record=nightly-smoke.mp4 --time-limit=120
Because there is no window, always set --time-limit or stop the process yourself, and run it with a shell timeout.
Audio
Audio forwarding is on by default on Android 11+ (on Android 11 the device screen must be unlocked when scrcpy starts). Useful options: --no-audio, --require-audio (fail instead of silently falling back to video only), --audio-codec (opus, aac, flac, raw), and --audio-source (output by default; playback, mic and other microphone variants). --audio-dup keeps the sound playing on the phone while it is captured (only with --audio-source=playback).
Camera mirroring (Android 12+)
scrcpy --list-cameras
scrcpy --list-camera-sizes
scrcpy --video-source=camera --camera-facing=back --camera-size=1920x1080
scrcpy --video-source=camera --camera-id=0 --no-audio --record=door.mp4
Camera mode switches the audio source to the microphone unless --no-audio is given. --camera-facing takes front, back or external.
Quality,
Установить scrcpy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scrcpy?
scrcpy shows an Android phone or tablet screen on the computer and lets you control it with the keyboard and mouse over USB or Wi-Fi, with no app on the device and no root. Use it when the user asks to "mirror my Android phone", "record the Android screen", "control the phone from my computer", "connect to the phone over Wi-Fi", "record a demo of my app", "use the phone camera as a video source", or needs scrcpy flags. Covers install, adb connection, wireless mode, recording, audio, camera, headless runs and tuning. Only for devices the user owns or may use.
Как установить скилл scrcpy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scrcpy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub