Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

scrcpy

FreeNo executable scriptsNot checked

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…

TerminalSkillsby TerminalSkills★ 221 GitHub stars

About this skill

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

  1. On the phone: Settings, About phone, tap Build number seven times; then Developer options, enable USB debugging.
  2. Plug in the USB cable and accept the "Allow USB debugging?" prompt on the phone.
  3. Check that the device is listed as device (not unauthorized):
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,

Full SKILL.md on GitHub

Install scrcpy in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

_scores.json

FAQ

What does the scrcpy skill do?

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.

How do I install the scrcpy skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the scrcpy skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare scrcpy with