Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>DroidBridgeNew to Visual Studio Code? Get it now.
DroidBridge

DroidBridge

Lusan Sapkota

|
25 installs
| (0) | Free
Live, touchable Android phone and tablet mirror inside VS Code, plus an MCP server that lets AI agents see and control your device.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DroidBridge

DroidBridge Logo

Seamlessly connect, control, and mirror Android devices inside VS Code

VS Code Marketplace Open VSX Open VSX downloads GitHub Release VS Code License: MIT Author

Install | Documentation | Issues | Portfolio


DroidBridge sidebar before mirroring, with a device ready DroidBridge sidebar with a live tablet mirror

Mirror popped out into an editor tab

Features

DroidBridge transforms your VS Code into a powerful Android development hub with these key features:

Wireless Device Management

  • One-Click Connection: Connect to Android devices over WiFi using IP address and port
  • Connection History: Remember and quickly reconnect to recent devices
  • Smart Pairing: Simplified pairing process for wireless debugging
  • Real-time Status: Live connection status with detailed feedback

Live Screen Mirror Inside VS Code

  • In the Sidebar: The device screen streams live into the DroidBridge sidebar, no external window needed
  • Fully Interactive: Click to tap, drag to swipe, scroll wheel to scroll, type to send text, right click for Back
  • Phones and Tablets: Keeps the device aspect ratio at any sidebar width and follows rotation live
  • Pop Out: Move the mirror into a resizable editor tab (or drag that tab into its own window), and back again
  • Device Controls: Back, Home, Recent apps, Rotate, Volume, Power and Notifications buttons
  • Capture: Save a full resolution screenshot or record the screen to MP4 from the toolbar
  • Any Language: Type in any keyboard layout, and paste your computer clipboard onto the device with Ctrl+V
  • Native Window Option: Open the classic scrcpy window when you want it, with always-on-top
  • Nothing Extra to Install: The scrcpy server is bundled; the embedded mirror only needs ADB

AI Agents Can Drive Your Device (MCP)

  • Built-in MCP Server: Lets AI agents see the screen, read the UI, tap, swipe, type, read logs and install apps
  • Works Everywhere: Available to GitHub Copilot agent mode automatically, and to Claude Code, Cursor, Windsurf and other MCP clients with one copied command
  • Watch It Live: Keep the mirror open while the agent works and see every step on the device

Smart Binary Management

  • Auto-Detection: Finds existing ADB/scrcpy installations automatically
  • Zero-Config Setup: Downloads required binaries when not found
  • Cross-Platform: Works seamlessly on Windows, macOS, and Linux
  • Custom Paths: Support for custom binary locations

Native VS Code Integration

  • Theme Adaptive: Automatically matches VS Code's light/dark themes
  • Tidy Sidebar: Collapsible sections that remember whether you opened or closed them
  • USB and Emulators: Detects USB devices and emulators automatically, no IP needed
  • Start an Emulator: With nothing connected, Start Mirror offers your Android SDK emulators, boots the one you pick and mirrors it. You can also create a new phone or tablet emulator from an installed system image right there
  • Stop and Tune Emulators: Stop the running emulator from the sidebar, and set CPU cores, memory, storage, graphics (hardware or software) and boot mode in Emulator Settings
  • Several Devices: With more than one device connected, choose which one to mirror
  • Command Palette: Access all features via Ctrl+Shift+P
  • Comprehensive Logging: Detailed logs for troubleshooting

Quick Start

Installation

VS Code Marketplace (Recommended)

# Search for "DroidBridge" in Extensions (Ctrl+Shift+X)
# Or install via command line
code --install-extension lusansapkota.droidbridge

Manual Installation

  1. Download the latest .vsix from Releases
  2. Install via: Extensions > ... > Install from VSIX...

Setup Your Android Device

  1. Enable Developer Options:

    Settings > About Phone > Tap "Build Number" 7 times
    
  2. Enable Wireless Debugging:

    Settings > Developer Options > Enable "Wireless Debugging"
    
  3. Get Connection Details:

    Developer Options > Wireless Debugging > Note IP:Port (e.g., 192.168.1.100:5555)
    

Connect & Mirror

  1. Open DroidBridge: Click the icon in VS Code's Activity Bar
  2. Connect Device: Enter IP address and port, click "Connect Device"
  3. Start Mirroring: Click "Start Mirror" in the Screen Mirror section (or the play button in the view title)
  4. Interact: Click, drag, scroll and type on the mirror; use the toolbar for device buttons, screenshots and recordings
  5. Pop Out: Use the external link button to move the mirror into an editor tab, or the window button for a native scrcpy window

Pro Tip: DroidBridge automatically handles ADB and scrcpy binaries - no manual installation needed!

AI Agent Access (MCP)

DroidBridge ships an MCP server so AI agents can test and operate your app on a real device or emulator. Try prompts like "Open my app, log in with the test account and tell me if the dashboard loads" or "Find out why the settings screen crashes; check logcat".

Client Setup
GitHub Copilot (VS Code) Nothing to do. Open Chat in Agent mode and enable DroidBridge Android in the tools picker
Claude Code Run DroidBridge: Set Up AI Agent Access (MCP), choose Claude Code, paste the copied command in a terminal
Cursor, Claude Desktop, Windsurf, others Run the same command, choose the JSON option, add it to the client's MCP config

External clients need Node.js. The copied path stays valid across DroidBridge updates.

Tools

Tool What it does
list_devices Connected devices and emulators, plus the emulators that can be started
start_emulator, stop_emulator Boot an emulator (headless by default) and wait until it is ready, or shut one down
pair_device, connect_device, disconnect_device Wireless debugging: pair with a code, connect and disconnect by IP:port
device_info Model, Android version, screen size, rotation, load, memory and battery
screenshot Screen image (downscaled), with the scale to device pixels
screen_record Start and stop an MP4 screen recording, saved on your computer
ui_tree On-screen elements with text, id, description and tap coordinates. Says which app it read and how many nodes it held, and falls back to the view hierarchy when UI Automator cannot read the screen
tap, long_press, swipe Touch input in device pixels. Taps last 60 ms by default (durationMs)
tap_element Tap an element by text, resource id or description, scrolling the list to find it when needed
wait_for Wait until an element appears, or disappears with gone
type_text, press_key Keyboard input in any language (non-ASCII text is pasted) and keys such as back, home, enter
current_app, list_apps, launch_app Inspect and start apps
start_activity Start an activity or intent with action, data and typed extras
stop_app, clear_app_data, set_permission Force-stop, reset an app's data, grant or revoke runtime permissions
set_display, set_app_locale Dark mode, font scale, screen size and density, rotation, and per-app language
open_url Open a URL or app deep link
install_apk Install an APK, split APKs or an .aab (with bundletool), optionally granting permissions or allowing a downgrade
push_file, pull_file Copy files to and from the device, including a debuggable app's private files such as its database
logcat Recent logs filtered on the device by app, tags, priority and time, or by text
shell Run an adb shell command on the device
reset_adb Reconnect devices stuck offline, or restart the ADB server (which also drops other ADB users such as Android Studio)

Input tools (tap, tap_element, long_press, swipe, type_text, press_key) take an optional expectPackage and refuse to act when another app is in the foreground, so stray input cannot land in another app.

With more than one device connected, tools take a serial argument (see list_devices). Agents act on your device as you would, so review what you allow them to run, especially shell and install_apk.

Interface Overview

Sidebar Sections

Section headers show status and quick actions before the expand arrow, so they work even when a section is collapsed.

Screen Mirror

  • Live View: Interactive device screen that resizes with the sidebar
  • Toolbar: Back, Home, Recent apps; Rotate, Volume down, Volume up, Power; Notifications, Paste clipboard, Screenshot and Record (click again to stop and save)
  • Header: Open in editor tab, open native window, stop
  • Keyboard: Click the mirror, then type in any layout; Enter, Backspace, arrows and Escape (Back) are supported, and Ctrl+V (Cmd+V) pastes your computer clipboard

Device Connection

  • Header Status: Disconnected, Ready (USB device or emulator) or Connected, with details on hover
  • IP/Port Fields: Pre-filled with your last successful connection
  • Connect/Disconnect: One-click connection management
  • Start Emulator: Boot or create an emulator. The arrow on the right switches between Headless (screen only in DroidBridge) and With window
  • Stop Emulator: The square button next to it shuts down the running emulator, including one stuck offline
  • Emulator Settings: The gear button opens a page to set CPU cores, memory, VM heap, internal storage, graphics (Automatic, Hardware or Software), Quick or cold boot, start orientation, keyboard and device frame, and to delete the saved state or wipe data

Footer

  • Show Logs: Open the DroidBridge output log
  • Reset ADB: Emergency reset when devices stay offline or the mirror hangs. Stops mirroring and scrcpy, removes port forwards, restarts the ADB server and reconnects a wireless device

Native Window

  • Launch Scrcpy: Open the device in a separate scrcpy window (requires scrcpy installed)
  • Launch Screen Off: Mirror with device screen off (battery saving)
  • Stop Scrcpy: Close the native window

Connection History

  • Recent Devices: Quick access to your last 10 connections
  • One-Click Reconnect: Click the plug icon to instantly reconnect
  • Manage History: Remove unwanted entries with trash icon

Wireless Pairing

  • Manual Pairing: Enter host, port, and 6-digit code from device
  • Quick Setup: Streamlined pairing for first-time connections

Command Palette

Access all features via Ctrl+Shift+P / Cmd+Shift+P:

DroidBridge: Connect to Device
DroidBridge: Disconnect Device
DroidBridge: Launch Scrcpy
DroidBridge: Launch Scrcpy Screen Off
DroidBridge: Stop Scrcpy
DroidBridge: Start Emulator
DroidBridge: Stop Emulator
DroidBridge: Emulator Settings
DroidBridge: Save Device Screenshot
DroidBridge: Start or Stop Screen Recording
DroidBridge: Start Screen Mirror
DroidBridge: Stop Screen Mirror
DroidBridge: Open Screen Mirror in Editor Tab
DroidBridge: Open Screen Mirror in Native Window
DroidBridge: Set Up AI Agent Access (MCP)
DroidBridge: Show Logs
DroidBridge: Reset ADB
DroidBridge: Check Binary Status
DroidBridge: Download Missing Binaries
DroidBridge: Refresh Binary Detection

Configuration

VS Code Settings

Configure DroidBridge via Settings > Extensions > DroidBridge:

Setting Description Default
droidbridge.defaultIp Default IP address for connections "192.168.1.100"
droidbridge.defaultPort Default port for ADB connection "5555"
droidbridge.adbPath Custom ADB binary path (optional) ""
droidbridge.scrcpyPath Custom scrcpy binary path (optional) ""
droidbridge.scrcpy.maxSize Longest side of the mirror in pixels, 0 for native 1024
droidbridge.scrcpy.bitrate Video bitrate, raise for high resolution tablets "8M"
droidbridge.scrcpy.alwaysOnTop Keep the mirror window above other windows true
droidbridge.emulator.headless Start emulators without their own window, shown only in the DroidBridge mirror. Headless starts cold boot and do not save state true

Configuration Examples

Basic Setup
{
  "droidbridge.defaultIp": "192.168.1.150",
  "droidbridge.defaultPort": "5555"
}
Custom Binary Paths
{
  "droidbridge.adbPath": "/usr/local/bin/adb",
  "droidbridge.scrcpyPath": "/usr/local/bin/scrcpy"
}
Development Environment
{
  "droidbridge.defaultIp": "10.0.0.100",
  "droidbridge.defaultPort": "5037",
  "droidbridge.adbPath": "/Android/Sdk/platform-tools/adb",
  "droidbridge.scrcpyPath": "/usr/local/bin/scrcpy"
}

Binary Management

DroidBridge features an intelligent binary management system that handles ADB and scrcpy automatically:

Smart Detection Process

  1. Custom Paths: Your configured binary locations
  2. System PATH: Homebrew, apt, chocolatey installations
  3. Common Directories: Platform-specific standard locations
  4. Auto-Download: Fetches latest binaries from droidbridge-binaries

Management Commands

Command Description
Check Binary Status View current detection status for all binaries
Download Missing Binaries Download any missing ADB/scrcpy binaries
Refresh Binary Detection Re-scan system for existing installations

Supported Platforms

Platform ADB Source Scrcpy Source
Windows Android SDK, Chocolatey, Manual GitHub Releases, Chocolatey
macOS Android SDK, Homebrew, Xcode Homebrew, GitHub Releases
Linux Android SDK, apt/yum/pacman Package Manager, AppImage

Offline Usage

No internet? No problem:

  1. Install binaries manually via package manager
  2. Add them to your system PATH
  3. Or configure custom paths in settings

Binary hosting: All binaries are securely hosted at github.com/Lusan-sapkota/droidbridge-binaries

Troubleshooting

Connection Issues

Device Won't Connect

  • Both device and computer on same WiFi network
  • Wireless debugging enabled in Developer Options
  • Correct IP address and port entered
  • Try: adb kill-server && adb start-server

"Device Offline" Error

  • Click Reset ADB in the sidebar footer
  • Disconnect and reconnect device
  • Check network connectivity
  • Restart wireless debugging on device
  • Check firewall/VPN settings
Emulator Issues

No Emulators Listed

  • DroidBridge looks in ANDROID_HOME, ANDROID_SDK_ROOT, next to adb and in the default SDK folder. Set ANDROID_HOME if your SDK lives elsewhere
  • Install the Android Emulator from the Android Studio SDK Manager
  • Creating an emulator needs Android SDK Command-line Tools and Java (JAVA_HOME or java on PATH)

Emulator Is Slow or the UI Cannot Be Read Right After Starting

  • Images with Google Play update themselves for a minute or two after a cold boot. DroidBridge waits for this before reporting the emulator ready, and agents are told when the device is too busy
  • Check with the device_info MCP tool, which reports the load
  • Prefer Google APIs images over Google Play images for automation, and give the AVD more CPU cores in Emulator Settings

Black Screen, "Failed to find ColorBuffer" or "System UI isn't responding"

  • The emulator resumed a Quick Boot state saved with a different renderer, for example by an older DroidBridge headless start. Open Emulator Settings, stop the emulator and click Delete Saved State. Headless starts now always cold boot and never save state, so this cannot happen again
  • If the screen stays black with Hardware graphics, switch Graphics to Software

Emulator Starts but Nothing Works

  • A saved Quick Boot state can be broken. DroidBridge detects this and cold boots once; if it persists, use Wipe Data in Emulator Settings

A Headless Emulator Keeps Running

  • Run DroidBridge: Stop Emulator. Headless emulators DroidBridge started also stop when VS Code closes
Screen Mirroring Issues

Scrcpy Won't Launch

  • Device connected via ADB first
  • USB debugging enabled
  • Device authorization prompt accepted
  • Test manually: scrcpy --help

Poor Performance

  • Lower resolution (max-size parameter)
  • Reduce bitrate
  • Close other device apps
  • Check WiFi bandwidth

Mirror Problems

  • If the mirror freezes, stop and start it again from the toolbar
  • Lower droidbridge.scrcpy.maxSize or the bitrate on slow Wi-Fi
  • Taps not registering: click inside the device image, not the border
  • For the native window, check that it is not hidden behind other windows
Binary Issues

"Binary Not Found" Errors

  1. Run Check Binary Status command
  2. Use Download Missing Binaries
  3. Manual installation:
    # Windows (Chocolatey)
    choco install adb scrcpy
    
    # macOS (Homebrew)  
    brew install android-platform-tools scrcpy
    
    # Linux (Ubuntu/Debian)
    sudo apt install adb scrcpy
    

Download Failures

  • Check internet connection
  • Verify firewall/proxy settings
  • Try Refresh Binary Detection
  • Configure custom paths
Getting Help
  1. Check Logs: DroidBridge: Show Logs
  2. Reset Settings: Clear custom paths
  3. Restart Extension: Developer: Reload Window
  4. Report Issues: GitHub Issues

Requirements

System Requirements

Component Requirement
VS Code 1.104.0+
OS Windows 10+ / macOS 10.14+ / Linux (Ubuntu 18.04+)
Android 5.0+ with Developer Options
Network Same WiFi network for device & computer (or USB)

Dependencies

DroidBridge automatically manages these essential tools:

ADB (Android Debug Bridge)

  • Device connection & communication
  • Auto-downloaded if missing
  • Custom paths configurable

Scrcpy

  • High-performance screen mirroring
  • Lightweight & efficient
  • Optimized settings included

Smart Binary Management: Extension automatically detects, downloads, and configures all required tools. No manual setup needed!

Known Issues

Issue Description Workaround
Multiple Instances Scrcpy instances may conflict Stop existing sessions first
Device Setup Some devices need extra wireless setup Follow device-specific guides
WiFi Latency Network can affect performance Use 5GHz WiFi or USB debugging
Windows Paths Custom binaries need .exe extension Include full path with extension
Google Play Images Busy for a minute or two after a cold boot Wait, or use a Google APIs image

Contributing

We welcome contributions! Help make DroidBridge even better.

Quick Start

# 1. Fork the repository
git clone https://github.com/yourusername/DroidBridge.git

# 2. Install dependencies
npm install

# 3. Start development
npm run watch

# 4. Test your changes
npm test

Contribution Guidelines

  • Create feature branches from main
  • Add tests for new functionality
  • Update documentation
  • Follow existing code style
  • Submit detailed pull requests

Bug Reports

Found a bug? Create an issue with:

  • Steps to reproduce
  • Expected vs actual behavior
  • Environment details (OS, VS Code version, etc.)

About

Created by Lusan Sapkota

DroidBridge combines modern Android development tools with VS Code's powerful interface, making device management effortless and productive.

  • Binaries Repository: DroidBridge-Binaries
  • Portfolio: lusansapkota.com.np
  • Contact: Available through GitHub or portfolio site

Support This Project

If DroidBridge has improved your development workflow:

  • Star this repository
  • Report bugs and suggest features
  • Contribute code or documentation
  • Share with other developers

Made with for the Android development community

VS Code Android

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • scrcpy - Screen mirroring; the scrcpy server (Apache-2.0) is bundled unmodified, see resources/scrcpy-server.LICENSE
  • Android Debug Bridge (ADB) - Android debugging tool
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft