rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Taoidle/dsh-nanokvm
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
NanoKVM boxes in DeepSeek Harness: see the machine's screen, press its power button, type and click, and mount virtual media — one card per box, a live tab in the right sidebar, and tools the agent calls directly.
A NanoKVM is a small IP-KVM: HDMI capture, an emulated USB keyboard and mouse, two wires to the target's power and reset buttons (plus the two LEDs), an emulated USB disk, and a web UI. This plugin speaks to that web UI the way the browser does, over the box's own HTTP and websocket API.
The settings card writes one device at a time through the plugin's own route, not through the settings form: the host merges the submitted fields into the stored list, so an existing password is never part of the page round trip and editing one box cannot clear another box's password. A new box needs its web password; an edit with the password field left empty keeps the stored one. Test logs in with the fields as typed, before anything is saved.
From npm:
dsh plugin add dsh-nanokvm
Or from the plugin manager (Settings ▸ Plugins ▸ install) by package name, and once the plugin is listed in the awesome-dsh-plugin catalogue it also shows up in the Discover tab of the market.
From a checkout of this repository:
npm pack # produces dsh-nanokvm-<version>.tgz
# then install that tarball through the plugin manager / `dsh plugin add file:./dsh-nanokvm-<version>.tgz`
In this desktop application the profile is owned by the Electron application, so a
direct dsh plugin --profile desktop … is refused; use the plugin manager there.
Restart the application after installing: the host half and the client half are loaded once per process.
Settings ▸ Plugins ▸ NanoKVM. Each box is one complete card — address, login, TLS, note:
| field | meaning |
|---|---|
| name | the device argument of every tool (lab, kvm-x99ii…) |
| baseUrl | 192.168.2.57 (http), https://kvm.lan, or host:8080 |
| username / password | the box's web UI login (the password is sent AES-wrapped, as the web UI does) |
| insecureTls | self-signed HTTPS certificates |
| description | note: which machine is plugged into this box |
The first device is the default when a tool call omits device, unless another is marked default.
Global settings stay global: request timeout, whether keyboard/mouse injection tools are allowed, whether the panel opens after an action (a screenshot, power or reset), and the panel frame rate.
| tool | what it does |
|---|---|
nanokvm_devices |
list the configured boxes |
nanokvm_status |
addresses, firmware, power/disk LEDs, HDMI state, cached images |
nanokvm_screenshot |
one frame of the target screen (JPEG) |
nanokvm_resolution |
the size pointer input is mapped into |
nanokvm_power |
press the power button; on/off watch the LED |
nanokvm_reset |
press the hardware reset button |
nanokvm_type |
type text through the box's paste path |
nanokvm_key |
press a key or chord (works in a BIOS) |
nanokvm_mouse |
move/click/scroll at a pixel of the target screen; buttons holds a mask for drag steps |
nanokvm_hid |
keyboard LEDs, HID reset, USB mode, the box's shortcuts and leader key |
nanokvm_settings |
hostname, mDNS, SSH, swap, memory limit, mouse jiggler, virtual devices |
nanokvm_account |
the box account, and changing its web password |
nanokvm_media |
list images and the virtual drive state |
nanokvm_mount / nanokvm_eject |
attach or release an image as the USB drive |
nanokvm_hdmi |
read/reset/enable/disable capture, idle timeout |
nanokvm_oled |
read or blank the box's OLED |
nanokvm_system |
firmware version, update, preview builds, reboot the box, Wake-on-LAN |
Every tool takes device; omitting it uses the default box.
The NanoKVM tab in the right sidebar shows the captured frame, the power LED state, and the actions worth one click: power on/off/press, reset, Enter, an HDMI reset, and a text field that types into the target. With several boxes a selector switches between them.
The frame itself takes input: click, drag, right-click and wheel are absolute pointer reports mapped from the
rendered picture back to the target's pixels. It is the same report nanokvm_mouse sends, and the panel's paste,
key, mouse and pointer actions obey the injection switch. Power, reset, HDMI, OLED and media are device controls,
not input injection, so they stay available when injection is turned off.
POST /api/auth/login with the password AES-256-CBC encrypted (OpenSSL Salted__, MD5
EVP_BytesToKey, secret nanokvm-sipeed-2024), the same transformation the web UI applies before sending.
The token comes back in the body; every later request carries Cookie: nano-kvm-token=….GET /api/stream/mjpeg — a multipart/x-mixed-replace stream. A screenshot reads until the first
complete JPEG and hangs up. No frame means no HDMI signal: the target is off or its output is asleep.POST /api/vm/gpio {type, duration} — a real electrical pulse on the button line. GET /api/vm/gpio
reports the power LED, which is what power on/off polls until it reaches the wanted state./api/ws HID websocket, 8-byte boot reports ([1, modifiers, 0, key1…key6]) and 6-byte
absolute mouse reports ([2, buttons, x, y, wheel], x/y in 0–32767).storage/media* first. Application 2.5.3+ serves it and still keeps the
pre-2.6 storage/image* endpoints as a compatibility layer; 2.5.0 serves only storage/image*. A 404/501 on the
modern family falls back to the legacy list/mount calls. media/state is missing there and is treated as
"unknown" rather than an error. 2.5.0 has no eject route at all.ipmitool.The application version and the system image are separate: the image supplies the base system, the application is updated independently from it. The plugin reads the application version and adapts where the two APIs differ.
| feature | application | system image |
|---|---|---|
| login, frame, power/reset, keyboard/mouse/paste, HDMI, OLED, status, HID | 2.5.0 (tested) | 1.4.2+ (tested 1.4.3) |
| media list and whole-image mount | 2.5.0 via storage/image*; 2.5.3+ via storage/media* |
1.4.2+ |
| partitions inside an image, media state, eject | 2.5.3+ | 1.4.2+ |
exact pointer resolution from /api/vm/input-resolution |
2.5.3+; 2.5.0 falls back to the frame size | 1.4.2+ |
| password change verifies the current password | 2.6+; 2.5.x accepts username + new password only | 1.4.2+ |
| mouse-jiggler read/write | 2.5.0+ | 1.4.2+ |
On 2.5.0, eject has no route: mount the replacement image instead. The tool answers with that instruction rather than reporting a success that did not happen.
nanokvm_screenshot needs an HDMI signal; there is no "capture a black screen" fallback.npm run check # node --check over every source file
npm test # contract tests: config, device (local mock box), client guard, device store
The tests run offline. tools/check-device.mjs starts a local mock of the box's API and
drives the real client against it; nothing in the test suite needs a NanoKVM.
MIT — see LICENSE. Copyright (c) 2026 Taoidle.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。