Skip to main content

Remote control of a computer

Project description

Valk

A Python library for remote controlling computers with AI agents. This package provides a simple interface for programmatic control of mouse movements, keyboard input, and screen capture.

Installation

pip install valk

Quick Start

from valk import Computer

# Initialize a computer connection
computer = Computer("http://localhost:8255")

# Take a screenshot
screenshot = computer.screenshot()

# Move mouse and click
computer.move_mouse(x=100, y=100).left_click()

# Type text
computer.type("Hello, World!")

Remote Server

In order to make use of valk you will need to have a machine running with the valk-server on it. We provide a few docker images as demos.

Features

  • Mouse control (move, click, drag)
  • Keyboard input
  • Screen capture
  • System information
  • Debug viewer

Requirements

  • Python 3.12 or higher
  • Docker (for running the computer server)

License

MIT License

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

valk-0.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file valk-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: valk-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for valk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c14a17435eb117254d767567d68cc407584d429ccb3f0c899772c4ad3c5b79aa
MD5 bf7e4ad4301b888f38a915f73019b848
BLAKE2b-256 6b926a2c07b4a8f72bb307b390d687fea0636613573e565aea8cae8e10ecdcde

See more details on using hashes here.

Provenance

The following attestation bundles were made for valk-0.0.2-py3-none-any.whl:

Publisher: release.yaml on ercbot/valk

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