Computer Use enables programmatic control of desktop environments within Daytona sandboxes. It provides mouse, keyboard, screenshot, and display operations for automating GUI interactions and testing desktop applications.

We recommend using this instance type if you need to interact with **Linux**, **Windows**, or **macOS** applications.

<Warning>
**Alpha Access Required**

Computer Use for macOS and Windows is currently in **private alpha**. To request access, please fill out the [Computer Use Windows Access Request Form](https://docs.google.com/forms/d/e/1FAIpQLSfoK-77-VpfsMubw8F4f1opCxIL1AyJUgnM0ONYup5hZ0RTvQ/viewform?usp=dialog) or [Computer Use macOS Access Request Form](https://docs.google.com/forms/d/e/1FAIpQLSc9xlGZ49OjWNkyzDPC9Ip3InMRR0ZXY3tcoD-PFQj3ck6gzQ/viewform?usp=sharing&ouid=103304973264148733944). Once submitted, our team will review your request and reach out with setup instructions and availability details.
</Warning>

## Common use cases

- **GUI Application Testing** - Automate interactions with native macOS applications, click buttons, fill forms, and validate UI behavior
- **Visual Testing & Screenshots** - Capture screenshots of applications, compare UI states, and perform visual regression testing
- **Desktop Automation** - Automate repetitive macOS desktop tasks, file management through GUI, and complex workflows

## Start Computer Use

Start all computer use processes (Xvfb, xfce4, x11vnc, novnc) in the Sandbox.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
result = sandbox.computer_use.start()
print("Computer use processes started:", result.message)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const result = await sandbox.computerUse.start();
console.log('Computer use processes started:', result.message);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
result = sandbox.computer_use.start
puts "Computer use processes started: #{result.message}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
err := sandbox.ComputerUse.Start(ctx)
if err != nil {
	log.Fatal(err)
}
defer sandbox.ComputerUse.Stop(ctx)

fmt.Println("Computer use processes started")
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/start' \
  --request POST
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**start (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computerusestart)
>
> [**start (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#start)
>
> [**start (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#start)
>
> [**Start Computer Use Processes (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/start)

## Stop Computer Use

Stop all computer use processes in the Sandbox.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
result = sandbox.computer_use.stop()
print("Computer use processes stopped:", result.message)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const result = await sandbox.computerUse.stop();
console.log('Computer use processes stopped:', result.message);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
result = sandbox.computer_use.stop
puts "Computer use processes stopped: #{result.message}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
err := sandbox.ComputerUse.Stop(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Println("Computer use processes stopped")
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/stop' \
  --request POST
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**stop (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computerusestop)
>
> [**stop (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#stop)
>
> [**stop (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#stop)
>
> [**Stop Computer Use Processes (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/stop)

## Get status

Get the status of all computer use processes.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
response = sandbox.computer_use.get_status()
print("Computer use status:", response.status)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const status = await sandbox.computerUse.getStatus();
console.log('Computer use status:', status.status);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
response = sandbox.computer_use.status
puts "Computer use status: #{response.status}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
status, err := sandbox.ComputerUse.GetStatus(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Computer use status: %v\n", status["status"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/status'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_status (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computeruseget_status)
>
> [**getStatus (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getstatus)
>
> [**status (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#status)
>
> [**Get Computer Use status (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/status)

## Get process status

Get the status of a specific VNC process.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
xvfb_status = sandbox.computer_use.get_process_status("xvfb")
novnc_status = sandbox.computer_use.get_process_status("novnc")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const xvfbStatus = await sandbox.computerUse.getProcessStatus('xvfb');
const noVncStatus = await sandbox.computerUse.getProcessStatus('novnc');
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
xvfb_status = sandbox.computer_use.get_process_status("xvfb")
no_vnc_status = sandbox.computer_use.get_process_status("novnc")
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/process/{processName}/status'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_process_status (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computeruseget_process_status)
>
> [**getProcessStatus (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getprocessstatus)
>
> [**get_process_status (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#get_process_status)
>
> [**Get Process Status (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/process/{processName}/status)

## Restart process

Restart a specific VNC process.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
result = sandbox.computer_use.restart_process("xfce4")
print("XFCE4 process restarted:", result.message)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const result = await sandbox.computerUse.restartProcess('xfce4');
console.log('XFCE4 process restarted:', result.message);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
result = sandbox.computer_use.restart_process("xfce4")
puts "XFCE4 process restarted: #{result.message}"
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/process/{processName}/restart' \
  --request POST
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**restart_process (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computeruserestart_process)
>
> [**restartProcess (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#restartprocess)
>
> [**restart_process (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#restart_process)
>
> [**Restart process (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/process/{processName}/restart)

## Get process logs

Get logs for a specific VNC process.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
logs = sandbox.computer_use.get_process_logs("novnc")
print("NoVNC logs:", logs)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const logsResp = await sandbox.computerUse.getProcessLogs('novnc');
console.log('NoVNC logs:', logsResp.logs);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
logs = sandbox.computer_use.get_process_logs("novnc")
puts "NoVNC logs: #{logs}"
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/process/{processName}/logs'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_process_logs (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computeruseget_process_logs)
>
> [**getProcessLogs (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getprocesslogs)
>
> [**get_process_logs (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#get_process_logs)
>
> [**Get process logs (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/process/{processName}/logs)

## Get process errors

Get error logs for a specific VNC process.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
errors = sandbox.computer_use.get_process_errors("x11vnc")
print("X11VNC errors:", errors)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const errorsResp = await sandbox.computerUse.getProcessErrors('x11vnc');
console.log('X11VNC errors:', errorsResp.errors);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
errors = sandbox.computer_use.get_process_errors("x11vnc")
puts "X11VNC errors: #{errors}"
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/process/{processName}/errors'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_process_errors (Python SDK)**](/docs/en/python-sdk/sync/computer-use#computeruseget_process_errors)
>
> [**getProcessErrors (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getprocesserrors)
>
> [**get_process_errors (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#get_process_errors)
>
> [**Get process errors (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/process/{processName}/errors)

## Mouse operations

### Click

Click the mouse at the specified coordinates.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Single left click
result = sandbox.computer_use.mouse.click(100, 200)

# Double click
double_click = sandbox.computer_use.mouse.click(100, 200, "left", True)

# Right click
right_click = sandbox.computer_use.mouse.click(100, 200, "right")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Single left click
const result = await sandbox.computerUse.mouse.click(100, 200);

// Double click
const doubleClick = await sandbox.computerUse.mouse.click(100, 200, 'left', true);

// Right click
const rightClick = await sandbox.computerUse.mouse.click(100, 200, 'right');
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Single left click
result = sandbox.computer_use.mouse.click(x: 100, y: 200)

# Double click
double_click = sandbox.computer_use.mouse.click(x: 100, y: 200, button: 'left', double: true)

# Right click
right_click = sandbox.computer_use.mouse.click(x: 100, y: 200, button: 'right')
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Single left click
result, err := sandbox.ComputerUse.Mouse().Click(ctx, 100, 200, nil, nil)
if err != nil {
	log.Fatal(err)
}

// Double click
doubleClick := true
result, err = sandbox.ComputerUse.Mouse().Click(ctx, 100, 200, nil, &doubleClick)

// Right click
rightButton := "right"
result, err = sandbox.ComputerUse.Mouse().Click(ctx, 100, 200, &rightButton, nil)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/mouse/click' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "button": "",
  "double": true,
  "x": 1,
  "y": 1
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**click (Python SDK)**](/docs/en/python-sdk/sync/computer-use#mouseclick)
>
> [**click (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#click)
>
> [**Click (Go SDK)**](/docs/en/go-sdk/daytona#MouseService.Click)
>
> [**Mouse click (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/mouse/click)

### Move

Move the mouse cursor to the specified coordinates.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
result = sandbox.computer_use.mouse.move(100, 200)
print(f"Mouse moved to: {result.x}, {result.y}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const result = await sandbox.computerUse.mouse.move(100, 200);
console.log(`Mouse moved to: ${result.x}, ${result.y}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
result = sandbox.computer_use.mouse.move(x: 100, y: 200)
puts "Mouse moved to: #{result.x}, #{result.y}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
result, err := sandbox.ComputerUse.Mouse().Move(ctx, 100, 200)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Mouse moved to: %v, %v\n", result["x"], result["y"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/mouse/move' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "x": 1,
  "y": 1
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**move (Python SDK)**](/docs/en/python-sdk/sync/computer-use#mousemove)
>
> [**move (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#move)
>
> [**Move (Go SDK)**](/docs/en/go-sdk/daytona#MouseService.Move)
>
> [**Mouse move (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/mouse/move)

### Drag

Drag the mouse from start coordinates to end coordinates.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
result = sandbox.computer_use.mouse.drag(50, 50, 150, 150)
print(f"Dragged from {result.from_x},{result.from_y} to {result.to_x},{result.to_y}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const result = await sandbox.computerUse.mouse.drag(50, 50, 150, 150);
console.log(`Dragged from ${result.from.x},${result.from.y} to ${result.to.x},${result.to.y}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
result = sandbox.computer_use.mouse.drag(start_x: 50, start_y: 50, end_x: 150, end_y: 150)
puts "Dragged from #{result.from_x},#{result.from_y} to #{result.to_x},#{result.to_y}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
result, err := sandbox.ComputerUse.Mouse().Drag(ctx, 50, 50, 150, 150, nil)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Dragged to %v, %v\n", result["x"], result["y"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/mouse/drag' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "button": "",
  "endX": 1,
  "endY": 1,
  "startX": 1,
  "startY": 1
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**drag (Python SDK)**](/docs/en/python-sdk/sync/computer-use#mousedrag)
>
> [**drag (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#drag)
>
> [**Drag (Go SDK)**](/docs/en/go-sdk/daytona#MouseService.Drag)
>
> [**Mouse drag (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/mouse/drag)

### Scroll

Scroll the mouse wheel at the specified coordinates.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Scroll up
scroll_up = sandbox.computer_use.mouse.scroll(100, 200, "up", 3)

# Scroll down
scroll_down = sandbox.computer_use.mouse.scroll(100, 200, "down", 5)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Scroll up
const scrollUp = await sandbox.computerUse.mouse.scroll(100, 200, 'up', 3);

// Scroll down
const scrollDown = await sandbox.computerUse.mouse.scroll(100, 200, 'down', 5);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Scroll up
scroll_up = sandbox.computer_use.mouse.scroll(x: 100, y: 200, direction: 'up', amount: 3)

# Scroll down
scroll_down = sandbox.computer_use.mouse.scroll(x: 100, y: 200, direction: 'down', amount: 5)
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Scroll up
amount := 3
success, err := sandbox.ComputerUse.Mouse().Scroll(ctx, 100, 200, "up", &amount)
if err != nil {
	log.Fatal(err)
}

// Scroll down
amount = 5
success, err = sandbox.ComputerUse.Mouse().Scroll(ctx, 100, 200, "down", &amount)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/mouse/scroll' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1,
  "direction": "",
  "x": 1,
  "y": 1
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**scroll (Python SDK)**](/docs/en/python-sdk/sync/computer-use#mousescroll)
>
> [**scroll (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#scroll)
>
> [**Scroll (Go SDK)**](/docs/en/go-sdk/daytona#MouseService.Scroll)
>
> [**Mouse scroll (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/mouse/scroll)

### Get position

Get the current mouse cursor position.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
position = sandbox.computer_use.mouse.get_position()
print(f"Mouse is at: {position.x}, {position.y}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const position = await sandbox.computerUse.mouse.getPosition();
console.log(`Mouse is at: ${position.x}, ${position.y}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
position = sandbox.computer_use.mouse.position
puts "Mouse is at: #{position.x}, #{position.y}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
position, err := sandbox.ComputerUse.Mouse().GetPosition(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Mouse is at: %v, %v\n", position["x"], position["y"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/mouse/position'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_position (Python SDK)**](/docs/en/python-sdk/sync/computer-use#mouseget_position)
>
> [**getPosition (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getposition)
>
> [**GetPosition (Go SDK)**](/docs/en/go-sdk/daytona#MouseService.GetPosition)
>
> [**Get mouse position (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/mouse/position)

## Keyboard operations

### Type

Type the specified text.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
sandbox.computer_use.keyboard.type("Hello, World!")

# With delay between characters
sandbox.computer_use.keyboard.type("Slow typing", 100)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
await sandbox.computerUse.keyboard.type('Hello, World!');

// With delay between characters
await sandbox.computerUse.keyboard.type('Slow typing', 100);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
sandbox.computer_use.keyboard.type(text: "Hello, World!")

# With delay between characters
sandbox.computer_use.keyboard.type(text: "Slow typing", delay: 100)
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
err := sandbox.ComputerUse.Keyboard().Type(ctx, "Hello, World!", nil)
if err != nil {
	log.Fatal(err)
}

// With delay between characters
delay := 100
err = sandbox.ComputerUse.Keyboard().Type(ctx, "Slow typing", &delay)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/keyboard/type' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "delay": 1,
  "text": ""
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**type (Python SDK)**](/docs/en/python-sdk/sync/computer-use#keyboardtype)
>
> [**type (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#type)
>
> [**Type (Go SDK)**](/docs/en/go-sdk/daytona#KeyboardService.Type)
>
> [**Keyboard type (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/keyboard/type)

### Press

Press a key with optional modifiers.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Press Enter
sandbox.computer_use.keyboard.press("Return")

# Press Ctrl+C
sandbox.computer_use.keyboard.press("c", ["ctrl"])

# Press Ctrl+Shift+T
sandbox.computer_use.keyboard.press("t", ["ctrl", "shift"])
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Press Enter
await sandbox.computerUse.keyboard.press('Return');

// Press Ctrl+C
await sandbox.computerUse.keyboard.press('c', ['ctrl']);

// Press Ctrl+Shift+T
await sandbox.computerUse.keyboard.press('t', ['ctrl', 'shift']);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Press Enter
sandbox.computer_use.keyboard.press(key: "Return")

# Press Ctrl+C
sandbox.computer_use.keyboard.press(key: "c", modifiers: ["ctrl"])

# Press Ctrl+Shift+T
sandbox.computer_use.keyboard.press(key: "t", modifiers: ["ctrl", "shift"])
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Press Enter
err := sandbox.ComputerUse.Keyboard().Press(ctx, "Return", nil)
if err != nil {
	log.Fatal(err)
}

// Press Ctrl+C
err = sandbox.ComputerUse.Keyboard().Press(ctx, "c", []string{"ctrl"})

// Press Ctrl+Shift+T
err = sandbox.ComputerUse.Keyboard().Press(ctx, "t", []string{"ctrl", "shift"})
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/keyboard/key' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "",
  "modifiers": [
    ""
  ]
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**press (Python SDK)**](/docs/en/python-sdk/sync/computer-use#keyboardpress)
>
> [**press (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#press)
>
> [**Press (Go SDK)**](/docs/en/go-sdk/daytona#KeyboardService.Press)
>
> [**Keyboard press (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/keyboard/press)

### Hotkey

Press a hotkey combination.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Copy
sandbox.computer_use.keyboard.hotkey("ctrl+c")

# Paste
sandbox.computer_use.keyboard.hotkey("ctrl+v")

# Alt+Tab
sandbox.computer_use.keyboard.hotkey("alt+tab")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">
```typescript
// Copy
await sandbox.computerUse.keyboard.hotkey('ctrl+c');

// Paste
await sandbox.computerUse.keyboard.hotkey('ctrl+v');

// Alt+Tab
await sandbox.computerUse.keyboard.hotkey('alt+tab');
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Copy
sandbox.computer_use.keyboard.hotkey(keys: "ctrl+c")

# Paste
sandbox.computer_use.keyboard.hotkey(keys: "ctrl+v")

# Alt+Tab
sandbox.computer_use.keyboard.hotkey(keys: "alt+tab")
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Copy
err := sandbox.ComputerUse.Keyboard().Hotkey(ctx, "ctrl+c")
if err != nil {
	log.Fatal(err)
}

// Paste
err = sandbox.ComputerUse.Keyboard().Hotkey(ctx, "ctrl+v")

// Alt+Tab
err = sandbox.ComputerUse.Keyboard().Hotkey(ctx, "alt+tab")
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/keyboard/hotkey' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "keys": ""
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**hotkey (Python SDK)**](/docs/en/python-sdk/sync/computer-use#keyboardhotkey)
>
> [**hotkey (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#hotkey)
>
> [**Hotkey (Go SDK)**](/docs/en/go-sdk/daytona#KeyboardService.Hotkey)
>
> [**Keyboard hotkey (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/keyboard/hotkey)

## Screenshot operations

### Take full screen

Take a screenshot of the entire screen.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
screenshot = sandbox.computer_use.screenshot.take_full_screen()
print(f"Screenshot size: {screenshot.width}x{screenshot.height}")

# With cursor visible
with_cursor = sandbox.computer_use.screenshot.take_full_screen(True)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const screenshot = await sandbox.computerUse.screenshot.takeFullScreen();
console.log(`Screenshot size: ${screenshot.width}x${screenshot.height}`);

// With cursor visible
const withCursor = await sandbox.computerUse.screenshot.takeFullScreen(true);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
screenshot = sandbox.computer_use.screenshot.take_full_screen
puts "Screenshot size: #{screenshot.width}x#{screenshot.height}"

# With cursor visible
with_cursor = sandbox.computer_use.screenshot.take_full_screen(show_cursor: true)
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
screenshot, err := sandbox.ComputerUse.Screenshot().TakeFullScreen(ctx, nil)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Screenshot captured, size: %d bytes\n", *screenshot.SizeBytes)

// With cursor visible
showCursor := true
withCursor, err := sandbox.ComputerUse.Screenshot().TakeFullScreen(ctx, &showCursor)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/screenshot'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**take_full_screen (Python SDK)**](/docs/en/python-sdk/sync/computer-use#screenshottake_full_screen)
>
> [**takeFullScreen (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#takefullscreen)
>
> [**TakeFullScreen (Go SDK)**](/docs/en/go-sdk/daytona#ScreenshotService.TakeFullScreen)
>
> [**Take screenshot (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/screenshot)

### Take region

Take a screenshot of a specific region.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
from daytona import ScreenshotRegion

region = ScreenshotRegion(x=100, y=100, width=300, height=200)
screenshot = sandbox.computer_use.screenshot.take_region(region)
print(f"Captured region: {screenshot.region.width}x{screenshot.region.height}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const region = { x: 100, y: 100, width: 300, height: 200 };
const screenshot = await sandbox.computerUse.screenshot.takeRegion(region);
console.log(`Captured region: ${screenshot.region.width}x${screenshot.region.height}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
region = Daytona::ComputerUse::ScreenshotRegion.new(x: 100, y: 100, width: 300, height: 200)
screenshot = sandbox.computer_use.screenshot.take_region(region: region)
puts "Captured region: #{screenshot.region.width}x#{screenshot.region.height}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
region := types.ScreenshotRegion{X: 100, Y: 100, Width: 300, Height: 200}
screenshot, err := sandbox.ComputerUse.Screenshot().TakeRegion(ctx, region, nil)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Captured region: %dx%d\n", screenshot.Width, screenshot.Height)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/screenshot/region?x=1&y=1&width=1&height=1'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**take_region (Python SDK)**](/docs/en/python-sdk/sync/computer-use#screenshottake_region)
>
> [**takeRegion (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#takeregion)
>
> [**TakeRegion (Go SDK)**](/docs/en/go-sdk/daytona#ScreenshotService.TakeRegion)
>
> [**Take Screenshot Region (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/screenshot/region)

### Take compressed

Take a compressed screenshot of the entire screen.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
from daytona import ScreenshotOptions

# Default compression
screenshot = sandbox.computer_use.screenshot.take_compressed()

# High quality JPEG
jpeg = sandbox.computer_use.screenshot.take_compressed(
    ScreenshotOptions(format="jpeg", quality=95, show_cursor=True)
)

# Scaled down PNG
scaled = sandbox.computer_use.screenshot.take_compressed(
    ScreenshotOptions(format="png", scale=0.5)
)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Default compression
const screenshot = await sandbox.computerUse.screenshot.takeCompressed();

// High quality JPEG
const jpeg = await sandbox.computerUse.screenshot.takeCompressed({
  format: 'jpeg',
  quality: 95,
  showCursor: true
});

// Scaled down PNG
const scaled = await sandbox.computerUse.screenshot.takeCompressed({
  format: 'png',
  scale: 0.5
});
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Default compression
screenshot = sandbox.computer_use.screenshot.take_compressed

# High quality JPEG
jpeg = sandbox.computer_use.screenshot.take_compressed(
  options: Daytona::ComputerUse::ScreenshotOptions.new(format: "jpeg", quality: 95, show_cursor: true)
)

# Scaled down PNG
scaled = sandbox.computer_use.screenshot.take_compressed(
  options: Daytona::ComputerUse::ScreenshotOptions.new(format: "png", scale: 0.5)
)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/screenshot/compressed'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**take_compressed (Python SDK)**](/docs/en/python-sdk/sync/computer-use#screenshottake_compressed)
>
> [**takeCompressed (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#takecompressed)
>
> [**Take compressed screenshot (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/screenshot/compressed)

### Take compressed region

Take a compressed screenshot of a specific region.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
from daytona import ScreenshotRegion, ScreenshotOptions

region = ScreenshotRegion(x=0, y=0, width=800, height=600)
screenshot = sandbox.computer_use.screenshot.take_compressed_region(
    region,
    ScreenshotOptions(format="webp", quality=80, show_cursor=True)
)
print(f"Compressed size: {screenshot.size_bytes} bytes")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const region = { x: 0, y: 0, width: 800, height: 600 };
const screenshot = await sandbox.computerUse.screenshot.takeCompressedRegion(region, {
  format: 'webp',
  quality: 80,
  showCursor: true
});
console.log(`Compressed size: ${screenshot.size_bytes} bytes`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
region = Daytona::ComputerUse::ScreenshotRegion.new(x: 0, y: 0, width: 800, height: 600)
screenshot = sandbox.computer_use.screenshot.take_compressed_region(
  region: region,
  options: Daytona::ComputerUse::ScreenshotOptions.new(format: "webp", quality: 80, show_cursor: true)
)
puts "Compressed size: #{screenshot.size_bytes} bytes"
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/screenshot/region/compressed?x=1&y=1&width=1&height=1'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**take_compressed_region (Python SDK)**](/docs/en/python-sdk/sync/computer-use#screenshottake_compressed_region)
>
> [**takeCompressedRegion (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#takecompressedregion)
>
> [**Take compressed screenshot region (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/screenshot/region/compressed)

## Screen Recording

Computer Use supports screen recording capabilities, allowing you to capture desktop sessions for debugging, documentation, or automation workflows.

### Configure Recording Directory

By default, recordings are saved to `~/.daytona/recordings`. You can specify a custom directory by passing the `DAYTONA_RECORDINGS_DIR` environment variable when creating a sandbox:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
from daytona import Daytona, CreateSandboxFromSnapshotParams

daytona = Daytona()
sandbox = daytona.create(
    CreateSandboxFromSnapshotParams(
        snapshot="daytonaio/sandbox:0.6.0",
        name="my-sandbox",
        env_vars={"DAYTONA_RECORDINGS_DIR": "/home/daytona/my-recordings"}
    )
)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
import { Daytona } from '@daytonaio/sdk';

const daytona = new Daytona();
const sandbox = await daytona.create({
  snapshot: 'daytonaio/sandbox:0.6.0',
  name: 'my-sandbox',
  envVars: { DAYTONA_RECORDINGS_DIR: '/home/daytona/my-recordings' }
});
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
require 'daytona'

daytona = Daytona::Client.new
sandbox = daytona.create(
  snapshot: 'daytonaio/sandbox:0.6.0',
  name: 'my-sandbox',
  env_vars: { DAYTONA_RECORDINGS_DIR: '/home/daytona/my-recordings' }
)
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
import (
	"github.com/daytonaio/daytona/pkg/client"
	"github.com/daytonaio/daytona/pkg/types"
)

daytona := client.New()
envVars := map[string]string{
	"DAYTONA_RECORDINGS_DIR": "/home/daytona/my-recordings",
}

sandbox, err := daytona.Create(ctx, &types.CreateSandboxParams{
	Snapshot: "daytonaio/sandbox:0.6.0",
	Name:     "my-sandbox",
	EnvVars:  envVars,
})
if err != nil {
	log.Fatal(err)
}
```

</Tabs.Item>
</Tabs>

### Start Recording

Start a new screen recording session with an optional name identifier:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Start recording with a custom name
recording = sandbox.computer_use.recording.start("test-1")
print(f"Recording started: {recording.id}")
print(f"File path: {recording.file_path}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Start recording with a custom name
const recording = await sandbox.computerUse.recording.start('test-1');
console.log(`Recording started: ${recording.id}`);
console.log(`File path: ${recording.file_path}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Start recording with a custom label
recording = sandbox.computer_use.recording.start(label: 'test-1')
puts "Recording started: #{recording.id}"
puts "File path: #{recording.file_path}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Start recording with a custom name
name := "test-1"
recording, err := sandbox.ComputerUse.Recording().Start(ctx, &name)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Recording started: %s\n", *recording.Id)
fmt.Printf("File path: %s\n", *recording.FilePath)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recording/start' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "test-1"
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**start (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordingstart)
>
> [**start (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#start-1)
>
> [**start (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#start-1)
>
> [**Start (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.Start)
>
> [**Start Recording (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/recording/start)

### Stop Recording

Stop an active recording session by providing the recording ID:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Stop the recording
stopped_recording = sandbox.computer_use.recording.stop(recording.id)
print(f"Recording stopped: {stopped_recording.duration_seconds} seconds")
print(f"Saved to: {stopped_recording.file_path}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Stop the recording
const stoppedRecording = await sandbox.computerUse.recording.stop(recording.id);
console.log(`Recording stopped: ${stoppedRecording.duration_seconds} seconds`);
console.log(`Saved to: ${stoppedRecording.file_path}`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Stop the recording
stopped_recording = sandbox.computer_use.recording.stop(id: recording.id)
puts "Recording stopped: #{stopped_recording.duration_seconds} seconds"
puts "Saved to: #{stopped_recording.file_path}"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Stop the recording
stoppedRecording, err := sandbox.ComputerUse.Recording().Stop(ctx, *recording.Id)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Recording stopped: %f seconds\n", *stoppedRecording.DurationSeconds)
fmt.Printf("Saved to: %s\n", *stoppedRecording.FilePath)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recording/stop' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "recording-id"
}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**stop (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordingstop)
>
> [**stop (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#stop-1)
>
> [**stop (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#stop-1)
>
> [**Stop (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.Stop)
>
> [**Stop Recording (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/POST/computeruse/recording/stop)

### List Recordings

Get a list of all recordings in the sandbox:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
recordings_list = sandbox.computer_use.recording.list()
print(f"Total recordings: {len(recordings_list.recordings)}")
for rec in recordings_list.recordings:
    print(f"- {rec.name}: {rec.duration_seconds}s ({rec.file_size_bytes} bytes)")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const recordingsList = await sandbox.computerUse.recording.list();
console.log(`Total recordings: ${recordingsList.recordings.length}`);
recordingsList.recordings.forEach(rec => {
  console.log(`- ${rec.name}: ${rec.duration_seconds}s (${rec.file_size_bytes} bytes)`);
});
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
recordings_list = sandbox.computer_use.recording.list
puts "Total recordings: #{recordings_list.recordings.length}"
recordings_list.recordings.each do |rec|
  puts "- #{rec.name}: #{rec.duration_seconds}s (#{rec.file_size_bytes} bytes)"
end
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
recordingsList, err := sandbox.ComputerUse.Recording().List(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Total recordings: %d\n", len(recordingsList.Recordings))
for _, rec := range recordingsList.Recordings {
	fmt.Printf("- %s: %.2fs (%d bytes)\n", *rec.Name, *rec.DurationSeconds, *rec.FileSizeBytes)
}
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recording/list'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**list (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordinglist)
>
> [**list (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#list)
>
> [**list (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#list)
>
> [**List (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.List)
>
> [**List Recordings (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/recording/list)

### Get Recording

Get details about a specific recording:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
recording_detail = sandbox.computer_use.recording.get("recording-id")
print(f"Recording: {recording_detail.name}")
print(f"Status: {recording_detail.status}")
print(f"Duration: {recording_detail.duration_seconds}s")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const recordingDetail = await sandbox.computerUse.recording.get('recording-id');
console.log(`Recording: ${recordingDetail.name}`);
console.log(`Status: ${recordingDetail.status}`);
console.log(`Duration: ${recordingDetail.duration_seconds}s`);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
recording_detail = sandbox.computer_use.recording.get(id: 'recording-id')
puts "Recording: #{recording_detail.name}"
puts "Status: #{recording_detail.status}"
puts "Duration: #{recording_detail.duration_seconds}s"
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
recordingDetail, err := sandbox.ComputerUse.Recording().Get(ctx, "recording-id")
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Recording: %s\n", *recordingDetail.Name)
fmt.Printf("Status: %s\n", *recordingDetail.Status)
fmt.Printf("Duration: %.2fs\n", *recordingDetail.DurationSeconds)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recording/{recordingId}'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordingget)
>
> [**get (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#get)
>
> [**get (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#get)
>
> [**Get (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.Get)
>
> [**Get Recording (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/recording/{recordingId})

### Delete Recording

Delete a recording by ID:

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
sandbox.computer_use.recording.delete("recording-id")
print("Recording deleted successfully")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
await sandbox.computerUse.recording.delete('recording-id');
console.log('Recording deleted successfully');
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
sandbox.computer_use.recording.delete(id: 'recording-id')
puts 'Recording deleted successfully'
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
err := sandbox.ComputerUse.Recording().Delete(ctx, "recording-id")
if err != nil {
	log.Fatal(err)
}

fmt.Println("Recording deleted successfully")
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recording/{recordingId}' \
  --request DELETE
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**delete (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordingdelete)
>
> [**delete (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#delete)
>
> [**delete (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#delete)
>
> [**Delete (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.Delete)
>
> [**Delete Recording (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/DELETE/computeruse/recording/{recordingId})

### Download Recording

Download a recording file from the sandbox to your local machine. The file is streamed efficiently without loading the entire content into memory, making it suitable for large recordings.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
# Download recording to local file
sandbox.computer_use.recording.download(recording.id, "local_recording.mp4")
print("Recording downloaded successfully")

# Or with custom path
import os
download_path = os.path.join("recordings", f"recording_{recording.id}.mp4")
sandbox.computer_use.recording.download(recording.id, download_path)
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
// Download recording to local file
await sandbox.computerUse.recording.download(recording.id, 'local_recording.mp4');
console.log('Recording downloaded successfully');

// Or with custom path
const downloadPath = `recordings/recording_${recording.id}.mp4`;
await sandbox.computerUse.recording.download(recording.id, downloadPath);
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
# Download recording to local file
sandbox.computer_use.recording.download(id: recording.id, local_path: 'local_recording.mp4')
puts 'Recording downloaded successfully'

# Or with custom path
download_path = "recordings/recording_#{recording.id}.mp4"
sandbox.computer_use.recording.download(id: recording.id, local_path: download_path)
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
// Download recording to local file
err := sandbox.ComputerUse.Recording().Download(ctx, recording.GetId(), "local_recording.mp4")
if err != nil {
	log.Fatal(err)
}
fmt.Println("Recording downloaded successfully")

// Or with custom path
downloadPath := fmt.Sprintf("recordings/recording_%s.mp4", recording.GetId())
err = sandbox.ComputerUse.Recording().Download(ctx, recording.GetId(), downloadPath)
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/recordings/{recordingId}/download' \
  --output local_recording.mp4
```

</Tabs.Item>
</Tabs>

<Tip>
**Streaming Downloads**

All SDK implementations stream the recording file directly to disk without loading the entire content into memory. This allows you to download large recordings (hundreds of MB or even GB) efficiently without running out of memory.

- **Python**: Streams in 64KB chunks using `httpx`
- **TypeScript**: Uses Node.js `pipeline()` with backpressure handling
- **Ruby**: Uses Typhoeus streaming with `on_body` callbacks
- **Go**: Uses `io.Copy()` with 32KB internal buffer
</Tip>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Ruby SDK](/docs/en/ruby-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**download (Python SDK)**](/docs/en/python-sdk/sync/computer-use#recordingdownload)
>
> [**download (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#download)
>
> [**download (Ruby SDK)**](/docs/en/ruby-sdk/computer-use#download)
>
> [**Download (Go SDK)**](/docs/en/go-sdk/daytona#RecordingService.Download)
>
> [**Download Recording (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/recordings/{recordingId}/download)

### Recording Dashboard

Every sandbox includes a built-in recording dashboard for managing screen recordings through a web interface. The dashboard allows you to view, download, and delete recordings without writing code.

To access the recording dashboard:

1. Navigate to your sandboxes in the Daytona Dashboard
2. Click the action menu (three dots) for your sandbox
3. Select **Screen Recordings** from the dropdown menu

The recording dashboard provides:
- List of all recordings with metadata (name, duration, file size, creation time)
- Playback controls for reviewing recordings
- Download functionality to save recordings locally
- Delete options for managing storage

<Tip>
The recording dashboard runs on a private port and is automatically secured. No additional authentication is required once you access it through the Daytona Dashboard.
</Tip>

## Display operations

### Get info

Get information about the displays.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
info = sandbox.computer_use.display.get_info()
print(f"Primary display: {info.primary_display.width}x{info.primary_display.height}")
print(f"Total displays: {info.total_displays}")
for i, display in enumerate(info.displays):
    print(f"Display {i}: {display.width}x{display.height} at {display.x},{display.y}")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const info = await sandbox.computerUse.display.getInfo();
console.log(`Primary display: ${info.primary_display.width}x${info.primary_display.height}`);
console.log(`Total displays: ${info.total_displays}`);
info.displays.forEach((display, index) => {
  console.log(`Display ${index}: ${display.width}x${display.height} at ${display.x},${display.y}`);
});
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
info = sandbox.computer_use.display.info
puts "Primary display: #{info.primary_display.width}x#{info.primary_display.height}"
puts "Total displays: #{info.total_displays}"
info.displays.each_with_index do |display, i|
  puts "Display #{i}: #{display.width}x#{display.height} at #{display.x},#{display.y}"
end
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
info, err := sandbox.ComputerUse.Display().GetInfo(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Displays: %v\n", info["displays"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/display/info'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_info (Python SDK)**](/docs/en/python-sdk/sync/computer-use#displayget_info)
>
> [**getInfo (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getinfo)
>
> [**GetInfo (Go SDK)**](/docs/en/go-sdk/daytona#DisplayService.GetInfo)
>
> [**Get display info (API)**](/docs/en/tools/api#daytona-toolbox/tag/computer-use/GET/computeruse/display/info)

### Get windows

Get the list of open windows.

<Tabs>
<Tabs.Item title="Python" icon="python">

```python
windows = sandbox.computer_use.display.get_windows()
print(f"Found {windows.count} open windows:")
for window in windows.windows:
    print(f"- {window.title} (ID: {window.id})")
```

</Tabs.Item>
<Tabs.Item title="TypeScript" icon="typescript">

```typescript
const windows = await sandbox.computerUse.display.getWindows();
console.log(`Found ${windows.count} open windows:`);
windows.windows.forEach(window => {
  console.log(`- ${window.title} (ID: ${window.id})`);
});
```

</Tabs.Item>
<Tabs.Item title="Ruby" icon="ruby">

```ruby
windows = sandbox.computer_use.display.windows
puts "Found #{windows.count} open windows:"
windows.windows.each do |window|
  puts "- #{window.title} (ID: #{window.id})"
end
```

</Tabs.Item>
<Tabs.Item title="Go" icon="go">

```go
result, err := sandbox.ComputerUse.Display().GetWindows(ctx)
if err != nil {
	log.Fatal(err)
}

fmt.Printf("Open windows: %v\n", result["windows"])
```

</Tabs.Item>
<Tabs.Item title="API" icon="json">

```bash
curl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/computeruse/display/windows'
```

</Tabs.Item>
</Tabs>

For more information, see the [Python SDK](/docs/en/python-sdk/sync/computer-use), [TypeScript SDK](/docs/en/typescript-sdk/computer-use), [Go SDK](/docs/en/go-sdk), and [API](/docs/en/tools/api#daytona-toolbox/tag/computer-use) references:

> [**get_windows (Python SDK)**](/docs/en/python-sdk/sync/computer-use#displayget_windows)
>
> [**getWindows (TypeScript SDK)**](/docs/en/typescript-sdk/computer-use#getwindows)
>
> [**GetWindows (Go SDK)**](/docs/en/go-sdk/daytona#DisplayService.GetWindows)
>
> [**Get Windows (API)**](/docs/en/tools/api#daytona-toolbox/get-toolbox-sandboxid-computer-use-display-windows)
