> ## Documentation Index
> Fetch the complete documentation index at: /llms.txt
> Use this file to discover all available pages before exploring further.

# Client utilities

> Bring your laptop's clipboard, files and browser into your machines, from a shell, from an agent or from an automation.

The client utilities are a small background agent on your laptop that lets your machines reach back to it. From inside a machine you can paste images from your clipboard into Claude Code, read files under your home directory, and start and drive a Chrome on your laptop. That Chrome runs in a dedicated profile that starts empty, so it does not have your existing logins.

## Enable

The client utilities are built into the `boxd` CLI. See [Installation](/cli/installation.md). There is no separate download, and they are **off by default**. On each laptop you want to reach:

```bash
boxd config set client-utils.enable true
```

```text
Client utilities enabled on this device (my-mac).
  device id: …
  VMs you enter via `boxd connect` / `ssh <vm>.boxd` can now reach this machine.
  Disable with `boxd config set client-utils.enable false`. Docs: https://docs.boxd.sh/reference/client-utilities
```

You need to be logged in first (`boxd auth login`). Run it as yourself, not with `sudo`. The agent runs in your login session so it can reach your clipboard, browser and home directory. macOS and Linux are supported.

These settings are all changed on your laptop:

```bash
boxd config get client-utils.enable          # enabled?
boxd config set client-utils.enable false    # turn the bridge off
boxd config set client-utils.label "desktop" # name this laptop (default: its hostname)
boxd config set daemon.enable false          # remove the background agent entirely
```

Turning the utilities off keeps a small background agent running in a reduced mode that only syncs your `~/.ssh/config` entries. Running `boxd config set daemon.enable false` on your laptop removes it altogether.

## Which machines can reach your laptop

Your **private machines**, the ones only you have a shell on. Shared machines and isolated machines are refused, so a teammate on a shared machine can never read your files or drive your browser.

Every session you open with `boxd connect` or `ssh <machine>.boxd` is tied to the laptop you opened it from. A background automation reaches the laptop it was started from. A session with no laptop attached, such as a console terminal or a cron job, reaches your most recently connected laptop instead. Nothing else is needed, and the bridge keeps working across reconnects.

## Several laptops

Enable the utilities on each one, and give them labels. Then, inside a machine:

```bash
boxd local devices
```

```text
DEVICE       LABEL                        CAPABILITIES
3fa9c02b1e   desktop (default)            clipboard, fs, browser
8b17d4e0aa   laptop                       clipboard, fs, browser

Pick one: `boxd local --device <DEVICE|LABEL> browser open` (default used otherwise)
```

The listing marks the most recently connected laptop as the default. A session you opened from one of your laptops (`boxd connect`, `ssh <machine>.boxd`) goes to that laptop, and so does an automation started from that session. A session with no laptop attached (cron, the console terminal) goes to the marked default.

Every `boxd local` command takes `--device <label|id|prefix>` to target a specific laptop. An explicit choice is strict and never falls back to a different one, and an ambiguous prefix is refused. Agents on the machine run `boxd local devices` first and **ask which laptop** when there is more than one.

## Clipboard and image pasting

With the utilities enabled, pasting into Claude Code inside a machine pulls from your laptop's clipboard, images included. Screenshots, diagrams and mockups go straight into the conversation with no file transfer.

## Reading local files

Inside a machine:

```bash
boxd local ls                              # your home directory
boxd local ls Documents                    # relative to home
boxd local ls /Users/you/Desktop           # absolute
boxd local read ~/notes.txt                # a file
boxd local read ~/app.log --tail=50        # last 50 lines
boxd local read ~/app.log --head=20        # first 20 lines
boxd local read ~/app.log --range=10:30    # lines 10 to 30
```

```text
dir   /Users/you/Documents
file  /Users/you/.bashrc (1234 bytes)
```

Access is **read-only** and limited to files under your home directory. Anything outside it is refused. Files up to 100 MiB can be read. All commands except `read` accept `--json`.

## Browser

Start and control a Chrome on your laptop from a machine. The browser runs on **your** screen and your network, in a **dedicated profile** boxd keeps for it, separate from your everyday Chrome. It starts empty. Log in once and it stays logged in.

Inside a machine:

```bash
boxd local browser open                    # start Chrome (visible)
boxd local browser open --headless         # start it invisibly
boxd local browser info                    # running? plus the CDP endpoint
boxd local browser cdp-url                 # just the CDP endpoint, one line
boxd local browser close                   # close it
```

Chrome or Chromium must be installed on the laptop. One instance runs at a time, and `open` while it is running returns the existing one. Its profile lives in `~/.boxd/browser-sessions/default/` on your laptop, so cookies and logins persist across `open` and `close`.

### Driving it

`boxd local browser cdp-url` prints a Chrome DevTools Protocol endpoint that any CDP client inside the machine can use: the pre-installed `agent-browser` (`agent-browser --cdp "$(boxd local browser cdp-url)"`), Playwright, Puppeteer, or the `chrome-devtools` MCP server that coding agents get automatically. In an [automation](/guides/automations/browser.md), `boxd.local.device().browser.connect()` hands you a Playwright `Browser`. For examples, and how this compares with the machine's own browser, see [Launch a browser](/guides/launch-a-browser.md).

## Errors you might see

* ``no devices connected - on your computer, run `boxd config set client-utils.enable true` ``: nothing is enabled, or the agent on your laptop isn't running.
* `can't reach your computer from this VM - the boxd client daemon isn't connected`: re-run the enable command on your laptop.
* `this feature requires an updated boxd client on your computer`: the agent is older than the machine expects. Update the CLI on your laptop.
* `client utilities are not available on org-shared VMs` or `client utilities are not available on isolated VMs`: this is by design. Fork the shared machine to get a private copy.

## Update

Re-run the install command on your laptop to upgrade the `boxd` CLI in place. See [Installation](/cli/installation.md). The next time you run `boxd`, the agent restarts on the new version.
