File size: 1,853 Bytes
cf93ac3
 
513a2d7
 
 
cf93ac3
513a2d7
cf93ac3
513a2d7
cf93ac3
 
513a2d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: Open Computer Use Agent
emoji: πŸ–₯️
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
---

# Open Computer Use Agent

An open-source alternative to OpenAI's Operator and Anthropic's Computer Use.

## Features

- πŸ–₯️ Full Linux desktop (Xfce) running in the browser
- πŸ–±οΈ Mouse control (click, double-click, right-click)
- ⌨️ Keyboard input (typing, key combinations)
- πŸ“· Real-time screenshots
- 🌐 Firefox ESR browser included

## How It Works

This Space runs a virtual X11 desktop using:
- **Xvfb**: Virtual framebuffer for headless display
- **Xfce4**: Lightweight desktop environment
- **xdotool**: Mouse and keyboard automation
- **Gradio**: Web UI for control

## Usage

1. Click "Take Screenshot" to see the current desktop
2. Use the action controls to interact:
   - Enter X,Y coordinates and click
   - Type text
   - Press keyboard shortcuts
   - Scroll up/down

## Architecture

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  HuggingFace Spaces Container   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   Xvfb    │◄─│   Xfce4    β”‚  β”‚
β”‚  β”‚   :99     β”‚  β”‚  Desktop   β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚        β”‚                        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  xdotool  │◄─│  Gradio    β”‚  β”‚
β”‚  β”‚  control  β”‚  β”‚  UI :7860  β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

## License

MIT