Logo: Device Takeover

Device Takeover

Communautéit
oh-ashen-one
device-takeover

Take over and control external devices (Android phones, Linux handhelds, Linux PCs) via network. Provides screen vision, touch/input control, voice I/O, and app management. Use when: controlling a remote device, playing games on a handheld, navigating a phone, taking screenshots of external devices, sending touch inputs, installing apps remotely, voice-controlling a device. Triggers: 'take over', 'control the device', 'play on the device', 'navigate the phone', 'control my phone', 'device takeover', 'SuiPlay', 'android control', 'ADB', 'remote control device'.

Iwwersiicht

Editeuroh-ashen-one
Repositorydevice-takeover
Skill-Nummdevice-takeover
Stären
57
Forks
5
Matgeliwwert Dateien
5
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    oh-ashen-one huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Device Takeover an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/oh-ashen-one/device-takeover/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/oh-ashen-one/device-takeover.git \
  .claude/skills/device-takeover
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Device Takeover an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Device Takeover automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Device Takeover net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Device Takeover

Control external devices on the local network: see the screen, send inputs, speak through speakers, hear through mic.

Supported Devices

Android (ADB)

  • Setup: Enable Developer Options → USB/Wireless Debugging → pair via adb pair IP:PORT
  • Screenshots: adb exec-out screencap -p > /tmp/screen.png
  • Input: adb -s IP:PORT shell input tap X Y / input swipe / input text / input keyevent
  • Apps: adb -s IP:PORT shell am start -n package/activity / pm install
  • Shell: adb -s IP:PORT shell COMMAND
  • See references/android.md for full command reference.

Linux Handheld (SuiPlay / Steam Deck)

  • Setup: SSH access (password or key)
  • Screenshots: Gamescope DBus: busctl --user call org.shadowblip.Gamescope /org/shadowblip/Gamescope/Wayland0 org.shadowblip.Gamescope.Wayland TakeScreenshot sy "/tmp/screenshot.png" 0
  • Input: InputPlumber DBus: busctl --system call org.shadowblip.InputPlumber /org/shadowblip/InputPlumber/CompositeDevice0 org.shadowblip.Input.CompositeDevice SendButtonChord as 1 "BUTTON_EVENT"
  • Voice out: ElevenLabs TTS → SCP mp3 → pw-play
  • Voice in: pw-record → SCP → Whisper API
  • See references/linux-handheld.md for button mappings and details.

Linux PC

  • Setup: SSH access
  • Screenshots: DISPLAY=:0 import -window root /tmp/screen.png or grim
  • Input: xdotool / ydotool / evdev
  • Voice: Same as handheld (PipeWire)

Android Setup — Complete Walkthrough

This is the most important section if you're connecting an Android phone. Follow these steps exactly.

Step 1 — Enable Developer Options

Developer Options is hidden by default on all Android phones. You need to unlock it first.

  1. Open Settings
  2. Scroll down and tap About Phone (on Samsung: About Phone → Software Information)
  3. Find Build Number
  4. Tap Build Number 7 times rapidly
  5. You'll see a countdown: "You are now X steps away from being a developer"
  6. After the 7th tap: "You are now a developer!"
  7. It may ask for your PIN or fingerprint to confirm

Samsung note: On Galaxy devices, Build Number is under Settings → About Phone → Software Information → Build Number Pixel note: On Pixel devices, it's under Settings → About Phone → Build Number OnePlus note: Under Settings → About Device → Version → Build Number

Step 2 — Enable USB Debugging

  1. Go back to Settings → Developer Options (now visible near the bottom of Settings)
  2. Make sure Developer Options toggle is ON at the top
  3. Find USB Debugging and toggle it ON
  4. Confirm the dialog that appears

USB Debugging allows ADB to communicate with your phone over USB and WiFi.

Step 3 — Enable Wireless Debugging

This is what lets OpenClaw connect without a cable.

  1. Still in Settings → Developer Options
  2. Find Wireless Debugging and toggle it ON
  3. Tap Wireless Debugging to enter its settings
  4. You'll see: IP address and Port (this is your connection address)
  5. Tap Pair device with pairing code — this gives you a one-time pairing code and a separate port number

Important: There are TWO port numbers:

  • Pairing port — only used once during first-time setup
  • Connection port — used every time you reconnect Write both down.

Step 4 — Install ADB on Your Mac/Linux Machine

bash
# macOS (via Homebrew)
brew install android-platform-tools

# Ubuntu/Debian
sudo apt-get install adb

# Verify install
adb version

Step 5 — Pair Your Phone (First Time Only)

  1. On your phone: go to Settings → Developer Options → Wireless Debugging → Pair device with pairing code
  2. Note the IP:PORT and the 6-digit pairing code shown on screen
  3. On your computer, run:
bash
adb pair 192.168.1.XXX:PAIRING_PORT
# Enter the 6-digit code when prompted

You should see: Successfully paired to 192.168.1.XXX:PAIRING_PORT

Step 6 — Connect to Your Phone

After pairing, use the main connection port (not the pairing port):

bash
adb connect 192.168.1.XXX:CONNECTION_PORT

You should see: connected to 192.168.1.XXX:CONNECTION_PORT

Verify it worked:

bash
adb devices
# Should show your device listed as "device"

Step 7 — Test It

Take a screenshot and pull it to your Mac:

bash
adb exec-out screencap -p > /tmp/screen.png
open /tmp/screen.png   # Opens in Preview on Mac

If you see your phone screen, you're connected. Done.

Reconnecting After Restart

The pairing is permanent. But you need to reconnect after every reboot (phone or computer):

bash
adb connect 192.168.1.XXX:CONNECTION_PORT

The port number may change after a phone reboot. If connection fails, go back to Settings → Developer Options → Wireless Debugging to see the current port.

Troubleshooting

"adb: error: failed to connect" or "connection refused"

  • Make sure your phone and computer are on the same WiFi network
  • Check that Wireless Debugging is still ON (it can get disabled on reboot on some phones)
  • Verify the port number — it may have changed

"unauthorized" in adb devices

  • Check your phone screen — there should be a dialog asking "Allow USB debugging?" — tap Allow
  • If no dialog appears, try: adb kill-server && adb start-server then reconnect

Developer Options disappeared

  • Some phones hide it again after reboot. Go back to About Phone → Build Number and tap 7 times again.

"offline" in adb devices

  • Run adb disconnect && adb connect IP:PORT to force a fresh connection

Gameplay Loop

For playing games on a remote device:

  1. Screenshot the current frame
  2. Analyze what's on screen (vision model)
  3. Decide action based on game state
  4. Send input (button press / tap / swipe)
  5. Speak response if voice is active
  6. Repeat

Keep screenshot→decide→input cycle under 3 seconds for responsive gameplay. Use scripts/game-loop.sh for the automated capture-analyze-act pipeline.

Voice Loop

For voice-controlled device interaction:

  1. Record mic audio (5s chunks)
  2. Transcribe via Whisper
  3. Parse intent + generate response (GPT-4o, JSON mode)
  4. Execute device actions from response
  5. Speak response via TTS → device speakers
  6. Repeat

Key Learnings

  • Gamescope blocks X11 screenshots — must use its DBus TakeScreenshot method
  • InputPlumber intercepts hardware gamepads — use SendButtonChord DBus, not raw uinput
  • Gamescope only displays apps launched through PlayServe — flatpak from SSH won't render
  • Android ADB is the cleanest path — full control with standard tooling
  • Framebuffer capture works as fallback on Linux: sudo cat /dev/fb0 + ffmpeg rawvideo conversion
  • Wireless Debugging port changes on phone reboot — always check current port in Developer Options

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Device Takeover?

Take over and control external devices (Android phones, Linux handhelds, Linux PCs) via network. Provides screen vision, touch/input control, voice I/O, and app management. Use when: controlling a remote device, playing games on a handheld, navigating a phone, taking screenshots of external devices, sending touch inputs, installing apps remotely, voice-controlling a device. Triggers: 'take over', 'control the device', 'play on the device', 'navigate the phone', 'control my phone', 'device takeover', 'SuiPlay', 'android control', 'ADB', 'remote control device'.

Firwat Device Takeover op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Device Takeover besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Device Takeover an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/oh-ashen-one/device-takeover/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Device Takeover benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Device Takeover benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Device Takeover domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Device Takeover gratis?

oh-ashen-one huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇