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.2.0.tar.gz (11.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.2.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vnc_computer_use-0.2.0.tar.gz
  • Upload date:
  • Size: 11.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.2.0.tar.gz
Algorithm Hash digest
SHA256 08be9d3448b98d0c23af1f7fafe6b9313cd31d93adc217345422690defd334dd
MD5 9c31d21dc10dbd5202d63bb1b06d7190
BLAKE2b-256 2191907e4f8e7884580cfc118fa335a8f0e7d5678da0029a196efad6584a3ee3

See more details on using hashes here.

Provenance

The following attestation bundles were made for vnc_computer_use-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vnc_computer_use-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e48fdff3d964325b9b1150988e8c9463bb2c0b610941b7c1eaae78b9c6e35324
MD5 d86faa04f8219521f1b8deaad0c2ae81
BLAKE2b-256 4a16e89af03d59afafce0f0f33867974ac908866f636bccccbfe256d811a9f1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for vnc_computer_use-0.2.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