/vnc-remote-control:compuse-vncfrom vnc-remote-control
Use when you must drive a remote machine, VM, or GUI/TUI program over VNC/RFB - sending keystrokes and clicks and reading the screen with OCR - because the target has no network, SSH, agent, or API. Covers Proxmox/hypervisor VM consoles (first boot before networking, or a VM that will never have a network), legacy line-of-business GUIs and dated installers that are only a window, and old TUI apps driven by keypresses. Nothing is installed on the target - it needs only a VNC/RFB server, which a Proxmox VM console already exposes on the host. Driven with the `vnc-remote-control` CLI (PyPI).
Ships in vnc-remote-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Drive a target's screen over plain VNC/RFB with the vnc-remote-control CLI: type text, press
named keys, click, screenshot, and OCR. It is a pure client - nothing runs on the target, no
agent, no service, no open port, nothing in its process list. The control happens entirely through
a VNC/RFB server the target already exposes.
type + key); the target needs only
a VNC server, which Proxmox provides out of the box.This skill installs vnc-remote-control and then drives it. First make sure the CLI and tesseract
are present on the machine you drive FROM (never on the target):
# the CLI - persistent on PATH via uv; installs it, or upgrades an older install
uv tool install --upgrade vnc-remote-control
# tesseract is a REQUIRED system dependency (OCR is how you find what to click)
command -v tesseract >/dev/null || sudo apt-get install -y tesseract-ocr # macOS: brew install tesseract | Windows: choco install tesseract
Do not skip the install because vnc-remote-control is already on PATH: that keeps whatever
release was installed, and this skill describes the latest one. An older install lacks options
documented here and stops with No such option '--us-shift'; vnc-remote-control --version
shows what you have.
For a one-off without a persistent install, uvx vnc-remote-control ... runs it on demand (uv
fetches it each run); tesseract is still required. Then drive the target with the commands below.
Every command in this table needs --port; --host defaults to 127.0.0.1. Its --help
(vnc-remote-control key --help) and the CLI's other commands (info, config, the email
commands) run without it.
| Command | Does |
|---|---|
type "text" [--enter] [--us-shift] | Type a literal string into the focused field (--enter adds Return; --us-shift: see below) |
key <name> | Press one named key: enter, tab, esc, arrows, f1-f12; key --help lists them all |
click X Y | Left-click at an absolute framebuffer pixel |
screenshot out.png [--mark X,Y] [--grid 50] | Write the native-resolution PNG; prints resolution: WxH; optional crosshair / coordinate grid |
ocr [--grep PATTERN] | List on-screen words with their click centers and confidence |
click-text "PATTERN" | Click the first on-screen word matching the pattern |
vnc-remote-control --port 5901 screenshot /tmp/g.png --grid 50
vnc-remote-control --host 10.0.0.5 --port 5901 click-text "Next"
vnc-remote-control --port 5901 type "chkdsk c: /f" --enter
RFB pointer coordinates are absolute framebuffer pixels - the same pixels as a native-resolution screenshot. This tool never scales, so a coordinate read off the screenshot is the exact click coordinate. (Past "wrong pixel" failures came from reading coordinates off a scaled image.)
screenshot out.png - view it at NATIVE size (do not let the viewer downscale).out.png - there is no scale factor to undo.screenshot out.png --mark X,Y and check the crosshair lands on target (--grid 50 adds a ruler).ocr --grep "Sign in" then click <cx> <cy>, or one-shot click-text "Sign in". click-text only sees text OCR can read - low-contrast or placeholder hints (a faint greyed-out search box), icons, and untitled controls are missed and it fails; fall back to reading the pixel off the screenshot and click X Y.type. Skipping the click is the #1 reason typed text seems to vanish.keyboard: key) maps keysyms to the guest layout. If wrong characters land on such a server,
its layout is misconfigured - fix it there, never compensate per keystroke on the client.type --us-shift. The console of a plain Proxmox VM is QEMU's
VNC, which turns a keysym into the scancode of its key in the VM's keymap (keyboard:, default
en-us) but presses no Shift for it: type 'x@A2Z|' lands as x2A2Z\ (letters keep their case,
shifted symbols lose Shift). --us-shift holds Shift_L around every character a US keyboard
types with Shift, and the same text then lands intact. Leave it off for a layout-aware server
(openvmm), where an extra Shift would change the character. The guest's own keyboard layout must
match the VM's keymap: a German guest layout under the default en-us keymap turns - into ss,
so pick U.S. English in an installer driven this way. All of this was measured with the default
en-us keymap; whether --us-shift fits a VM with another keyboard: value is untested.--delay-scale 2 multiplies every delay, or set
individual gaps via --set vnc.key_up_gap=0.2 (keys: key_down_hold, key_up_gap, click_move_gap,
click_hold, click_release_gap).screenshot + ocr FIRST and act on what
the screen ACTUALLY says (an error dialog, a validation message, a progress indicator, a greyed-out or
relabeled button). Never blind-retry: if the first click DID land, the same coordinates may now hit a
DIFFERENT control (re-firing an installer, dismissing an unread error), and on a laggy guest an
"unchanged" screenshot is weak evidence. Only when two screenshots a few seconds apart show a genuinely
identical, idle screen is "dropped input" the diagnosis - then retry ONCE with increased delays and
re-read the screen.screenshot to confirm,
then Space: Enter fires the default No. A black framebuffer can be display power-save with the
prompt still up, and one click wakes it.bitranox:coding-resilience.VNC_REMOTE_CONTROL_PASSWORD env var (which --password reads by
default), NOT on the command line - a password in argv is visible in ps. TLS/VeNCrypt and Apple
Remote Desktop auth are not supported. (demand gated)VNC_REMOTE_CONTROL_PASSWORD=secret vnc-remote-control --port 5901 key enter
The VM's console is a VNC/RFB server on the host. Reach it directly, or SSH-tunnel to the console
port with ssh -N -L <local-port>:127.0.0.1:<console-port> <user>@<host>, then point the client at
127.0.0.1:<local-port> (-N because no remote command is wanted, and binding the forward to the
host's loopback keeps the console off its network). openvmm is the ideal layout-aware target so arbitrary
characters and non-US layouts type reliably.
A plain Proxmox QEMU VM is different in three ways:
Its console is a unix socket, /var/run/qemu-server/<vmid>.vnc, not a TCP port. Forward a
local port to it: ssh -N -L 127.0.0.1:<local-port>:/var/run/qemu-server/<vmid>.vnc root@<node>.
It requires VNC password auth. Keep the password in a file on the machine you drive from,
outside any repository (mode 600, at most 8 characters: VNC authentication reads no more), set
it in QEMU's monitor and keep it from expiring. printf is a shell builtin, so the password
never shows in a process list, and $(cat ...) drops a trailing newline, so the two monitor
commands stay on their own lines:
printf 'set_password vnc %s\nexpire_password vnc never\n' "$(cat pw.txt)" \
| ssh root@<node> 'qm monitor <vmid>' >/dev/null 2>&1
VNC_REMOTE_CONTROL_PASSWORD="$(cat pw.txt)" vnc-remote-control --port <local-port> \
type --us-shift 'root@pam' --enter
Send ALL of the monitor's output to /dev/null: qm monitor echoes every line it reads back
after its qm> prompt, so the password is in its stdout, and a filter such as
grep -v '^qm>' still lets it through. Judge the result by the client's login instead. The
client takes the same password through its environment variable. Without
expire_password the login fails with "VNC authentication failed". Delete the file when done.
Opening the VM's console in the Proxmox web UI sets a new password and replaces yours, so set it
again when authentication suddenly starts failing mid-session. It lives only in the running QEMU
process and is gone at the next VM start.
It is not layout-aware: with the default en-us keymap, type with --us-shift (see Gotchas).
VMware Workstation has its own VNC server, switched on per VM in the VM's .vmx file. Edit the file
while the VM is powered off:
RemoteDisplay.vnc.enabled = "TRUE"
RemoteDisplay.vnc.port = "<port>"
RemoteDisplay.vnc.password = "<password>"
At power-on VMware replaces the password line with a hashed RemoteDisplay.vnc.key. The server's
keymap is US (whether type needs --us-shift there is untested), and it listens on every
interface, so firewall the port and reach it through an SSH tunnel
(ssh -N -L 127.0.0.1:<local-port>:127.0.0.1:<port> <user>@<host>). A headless Windows guest
booting from an EFI ISO stops at "Press any key to boot from CD or DVD": right after vmrun start,
send vnc-remote-control --port <local-port> key space once a second until a screenshot shows the
installer.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bitranox/vnc-remote-control --plugin vnc-remote-control