A desktop for AI agents
Project description
AgentDesk
A desktop for AI agents.
Built on agentd to make desktop VMs accessible to AI agents.
Implements the ToolsV1 protocol
Installation
pip install agentdesk
Quick Start
from agentdesk import Desktop
desktop = Desktop.local()
desktop.view(background=True)
desktop.open_url("https://google.com")
desktop.move_mouse(500, 500)
desktop.click()
img = desktop.take_screenshot()
Usage
Create a local desktop
from agentdesk import Desktop
desktop = Desktop.local()
$ agentdesk create --provider qemu
*requires qemu
Create a remote desktop on GCE
desktop = Desktop.gce()
$ agentdesk create --provider gce
Create a remote desktop on EC2
desktop = Desktop.ec2()
$ agentdesk create --provider ec2
View the desktop in the UI
desktop.view()
$ agentdesk view old_mckinny
*requires docker
List desktops
Desktop.list()
$ agentdesk get
Delete a desktop
Desktop.delete("old_mckinny")
$ agentdesk delete old_mckinny
Use the desktop
desktop.open_url("https://google.com")
coords = desktop.mouse_coordinates()
desktop.move_mouse(500, 500)
desktop.click()
desktop.type_text("What kind of ducks are in Canada?")
desktop.press_key('Enter')
desktop.scroll()
img = desktop.take_screenshot()
Examples
GPT-4V provides a notebook using a desktop
Developing
Please open an issue before creating a PR.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentdesk-0.2.1.tar.gz
(29.0 kB
view hashes)
Built Distribution
agentdesk-0.2.1-py3-none-any.whl
(35.4 kB
view hashes)
Close
Hashes for agentdesk-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c850f767f7dee2fd8f22164fbb1d03c1ac96a6c6d78a4122634c24e7d335a36e |
|
MD5 | 5c13cfe91f8d1862462585a1b7d97f0f |
|
BLAKE2b-256 | 9ba3b0687edb7c885716b40dafb8d7700537375b1c445e108ddb6f7be4934b4a |