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

# Open the Desktop and browser

> View and operate the same Computer's Linux desktop, reconnect safely, and understand the public browser-control boundary.

Desktop displays and controls the Linux desktop inside your existing Computer. It is the same machine, disk, installed software, and browser profile that your terminal and Agent use. Opening a Viewer does not create another Computer.

Use Desktop for graphical tools, browser-based login, or checking the working environment. Use [Private Preview](https://docs.deepest.dev/network/private-preview.md) to show a web application without exposing the whole desktop, and [Human assistance](https://docs.deepest.dev/desktop/human-assistance.md) when an Agent needs an explicit handoff.

## Open from the Console

1. Select your Computer and check that it is Running. Starting it is a separate explicit action.
2. Open **Desktop**. If a connection control is shown, choose **Connect to Desktop** in the picture area or **Connect** in the toolbar.
3. Wait for the real Linux desktop to appear, then interact with a terminal or browser.
4. If the connection drops, choose **Reconnect** or open **Desktop** again.

A normal Desktop session permits keyboard and mouse input without first creating an assistance request.

The Developer Image includes the required desktop software. Desktop prepares or starts its environment when opened. Chromium does not necessarily start automatically; use the available browser launcher or application menu. Launcher placement can differ between Developer Image versions; if no browser icon is visible, use the application menu or verify that Chromium is installed.

To verify the connection, open a terminal in the visible desktop and run:

```bash theme={null}
uname -s
printf 'This is the Computer desktop\n'
```

Expect Linux and the printed line **inside the Viewer**. Seeing a connected indicator alone is weaker evidence than observing a harmless input action reach the intended Computer.

## Open with the SDK

Use the [SDK installation and authentication setup](https://docs.deepest.dev/api-and-sdk/typescript.md). Run this in a trusted caller environment:

```js theme={null}
import { Deepest } from "@deepest/sdk";

const { DEEPEST_API_URL, DEEPEST_API_KEY, COMPUTER_ID } = process.env;
if (!DEEPEST_API_URL || !DEEPEST_API_KEY || !COMPUTER_ID) {
  throw new Error("Set the control API URL, Agent Key, and Computer ID.");
}
const deepest = new Deepest({ baseUrl: DEEPEST_API_URL, apiKey: DEEPEST_API_KEY });
const reply = await deepest.computer(COMPUTER_ID).desktop.open();
if (!reply.ok) {
  console.error(reply.error.code, reply.retry, reply.resource_id);
  process.exit(1);
}
// Deliver the dashboard URL to the authorized human through a trusted channel.
console.log(reply.result.dashboard_url);
```

`desktop.open()` prepares the desktop and returns `computer_id`, `display`, `viewer_url`, `dashboard_path`, and `dashboard_url`. `desktop.ensure()` prepares it without issuing a Viewer URL; it returns the Computer and display.

The authenticated Dashboard is the usual human entry point. The `viewer_url` is a short-lived runtime credential for viewing and controlling one desktop. Do not paste it into public issue trackers, analytics, source files, or a public Share. The API Key is never needed in the runtime URL.

## What persists, and what does not

| Action | Computer and applications | Viewer/browser implications |
| - | - | - |
| Close the Viewer tab | Computer keeps running | Disconnects your view; does not close every Guest application |
| Close a Chromium window inside the Guest | Other Guest processes keep running | Browser behavior follows Chromium; files already saved remain on disk |
| Reopen Desktop while Running | Returns to the same Computer | Existing Guest desktop and browser processes can still be present |
| Stop Computer | Stops processes and releases running resources | Viewer cannot operate it; no automatic Start |
| Start the same Computer | Cold boot of the retained disk | Reopen Desktop and launch applications as needed |
| Restore a disk snapshot | Replaces disk contents with the selected saved state | Browser profile data on disk rolls back; current platform authorization does not |
| Clone Computer | New identity with a copied disk | Guest browser profile/login files may be copied; Deepest grants are separate |

Browser profile files, cookies, and local storage are stored on the Computer's retained disk and can persist across normal Stop/Start. A third-party website can still expire, revoke, or challenge its own session. Unsaved in-memory form contents and live browser processes are not a persistence guarantee.

A Viewer URL is short-lived and expires after one hour; it is not a permanent desktop address. When an old link is no longer accepted, reopen through the authenticated Dashboard. A platform restart may invalidate temporary Viewer links without deleting the Computer.

## Browser automation: distinguish the interfaces

Deepest exposes Desktop preparation/opening and human-assistance coordination. It does **not** expose platform screenshot, pixel-click, DOM, accessibility-tree, CDP, or Playwright operations.

You may install and run browser-automation tools inside your own Computer, subject to their requirements and your permissions. Those are user-managed tools operated through SSH or Exec; they are not additional Deepest platform APIs. Installing an Agent that offers computer use does not add a platform computer-use API.

If a browser automation tool must share a human's current browser session, configure and verify that tool against the intended existing session. A new browser process or fresh profile is a different working context. Human assistance coordinates the handoff; it does not automatically attach an arbitrary Agent to Chromium.

## Security and resource considerations

Desktop lets the authorized viewer act as the Guest user, which has broad privileges in the Developer Image. Treat a Viewer URL as sensitive. Share a web result with Preview/Share instead of distributing desktop control.

In the Developer Image, the root-user Chromium launcher runs without Chromium's own process sandbox. Browse and run code with that Guest-level risk in mind: a compromised browser may access that Computer's files or login state. This is not a reason to expose the Viewer publicly or store Account control credentials inside the Guest.

Desktop and Chromium consume the **same** Computer memory and Account shared CPU as builds, containers, and Agents. Closing the Viewer does not free their resource usage. If you need to release running memory, save work and explicitly [Stop the Computer](https://docs.deepest.dev/computers/lifecycle.md). Keep enough memory for the actual browser workload instead of choosing only the smallest allowed size.

## Troubleshoot

| Result or symptom | Meaning and next step |
| - | - |
| `NOT_RUNNING` | Explicitly Start the original Computer if the task requires it |
| `DESKTOP_UNSUPPORTED` | The current Guest does not meet the desktop prerequisites; do not assume every custom environment is supported |
| `DESKTOP_UNAVAILABLE` | Desktop preparation or access failed; inspect the reported state and retry only after the cause is understood |
| `EXEC_BUSY` | Preparation competes for command capacity; respect retry guidance and allow other work to finish |
| Old Viewer link fails | Reopen via the authenticated Dashboard for a fresh link |
| Picture appears but input is disabled | Check whether this is an assistance page waiting for human takeover or showing a completed handoff |
| Browser opens logged out | Check the profile and the website's session policy; disk persistence does not force third-party login persistence |
| `UNKNOWN / query-first` | Re-read the original Computer and current desktop situation before another mutation |

An Agent should never interpret Viewer closure as a Computer Stop or assistance completion. Read the appropriate state and re-observe the work before continuing.

Continue with [Human assistance](https://docs.deepest.dev/desktop/human-assistance.md), [Developer Image](https://docs.deepest.dev/environment/developer-image.md), or the Desktop and Assistance sections of the [API reference](https://docs.deepest.dev/api-reference.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.