Logo Device Takeover

Device Takeover

Cộng đồng
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'.

Tổng quan

Nhà phát hànhoh-ashen-one
Kho mãdevice-takeover
Tên kỹ năngdevice-takeover
Sao
57
Bản fork
5
Tệp đi kèm
5
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được oh-ashen-one công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Device Takeover trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/oh-ashen-one/device-takeover/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/oh-ashen-one/device-takeover.git \
  .claude/skills/device-takeover
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Device Takeover trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Device Takeover ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Device Takeover với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Device Takeover làm được gì?

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'.

Vì sao nên dùng Device Takeover trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Device Takeover là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Device Takeover trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/oh-ashen-one/device-takeover/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Device Takeover?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Device Takeover với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Device Takeover với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Device Takeover có miễn phí không?

Kỹ năng này được oh-ashen-one phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇