Skip to main content

VNC Computer-Use CLI - control a remote desktop via VNC for AI computer-use agents

Project description

vnc-computer-use

VNC Computer-Use CLI - control a remote desktop via VNC for AI computer-use agents.

Installation

pip install vnc-computer-use

Usage

Connect to a VNC server

vnc connect localhost::5900
vnc connect myhost:0 --password secret
vnc connect myhost:0 --username user --password pass  # macOS Screen Sharing

Interact with the remote desktop

# Screenshots
vnc get_screenshot -o screen.png
vnc get_screenshot  # returns base64 JSON

# Keyboard
vnc key enter
vnc key ctrl-c
vnc type "hello world"

# Mouse
vnc left_click 100 200
vnc right_click 300 400
vnc double_click 100 200
vnc mouse_move 500 500
vnc left_click_drag 100 200
vnc scroll down 100 200

# Info
vnc get_cursor_position
vnc get_screen_size
vnc status

Multi-session support

vnc connect host1::5900 --session work
vnc connect host2::5900 --session personal
vnc -s work get_screenshot -o work.png
vnc -s personal left_click 100 200

Disconnect

vnc disconnect
vnc disconnect --session work

How it works

vnc launches a background daemon process that maintains a persistent VNC connection via vncdotool. The CLI communicates with the daemon over a Unix domain socket, making each action fast without reconnection overhead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnc_computer_use-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnc_computer_use-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file vnc_computer_use-0.1.0.tar.gz.

File metadata

  • Download URL: vnc_computer_use-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vnc_computer_use-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a842d5186987eb3480babc48798995d8800f1330fa6e2aeb0c14aa18ce885383
MD5 ba3ab4d66322f2f6272a64e6c4ed08cf
BLAKE2b-256 2ab43de1ca29b25280e46b5ba800a1edf3814651373fd3d43f49a84e7b0c44cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vnc_computer_use-0.1.0.tar.gz:

Publisher: publish.yml on EYHN/vnc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vnc_computer_use-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vnc_computer_use-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b79bfa2d7739f4927aa88c4eb67b2ad6dbe8a461accf8ab4e00db217a067246
MD5 485d216664f8099fcbf625565d89e244
BLAKE2b-256 0308e86e84ae1ec849ac755543327c1e7900e176051fb5ac103c5ef7446d7922

See more details on using hashes here.

Provenance

The following attestation bundles were made for vnc_computer_use-0.1.0-py3-none-any.whl:

Publisher: publish.yml on EYHN/vnc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page