Skip to content

Browser and computer use

Disposable desktops

Lease a throwaway Linux desktop for a Code thread, set the Project's desktop recipe and spending cap, and share one local dev server with it.

  • 9 min read
  • 8 sections

Disposable desktops ​

A Code thread can lease a throwaway desktop to run what it built, on this Linux host or on a provider account you own.

Use a paired Mac’s desktop ​

On your laptop, open an active Code thread on the paired Mac. In the paired Code view, open Desktop and select Show Mac desktop to watch its primary display. The Mac must be unlocked, with Computer use enabled and macOS screen recording and accessibility permissions granted to Octant.

Select Take control to click, drag, scroll, type, and switch apps on the Mac. Press Shift+Esc to move keyboard focus out of the display. Select Hand back to agent when you finish. The agent resumes under its existing application permissions. Close host display ends the view and leaves the apps running.

On a headless Linux devbox, use Start desktop below to open the graphical environment supplied by the Project’s desktop recipe.

Start a desktop ​

Open Desktop from the More tools button in the title band (under Devices). A host-local desktop runs on this host without a checkout or access to host folders. It has no general network access, and other files reach it only when the agent sends them.

Sending a file into a desktop on this computer does not ask at Full access, even after the thread has read outside content. Below Full access the thread asks you once, and your answer covers the files the agent sends to it for the rest of that thread, also after a restart. Choose Remember for this Project instead to cover the files sent from every thread in that Project; forget it under Settings → Computer use → Remembered desktop files. With Strict on, an answer stops covering a thread once the thread has read outside content, and the ask comes back; with Strict off it keeps covering it. A file sent to a cloud desktop asks every time.

  • Start desktop creates one. Octant does not ask again, because you started it. Plan mode refuses. A thread holds at most two, and the host runs at most two at once, unless you change the desktop limits.
  • Until the Project has a desktop recipe, the pane says so instead of offering Start desktop.

Use and release it ​

  • While it is live, click the screen to use it. Clicks, the wheel and typing go to the desktop, and Ctrl+Esc (⌘Esc on a Mac) moves focus back out.
  • The agent can use the same desktop at the same time. What either of you does is recorded as yours or the agent's.
  • A desktop lasts 30 minutes. Add 30 minutes extends it up to four hours. It is released after 15 minutes with no open tab and nobody using it. Release destroys it after you confirm.
  • Closing the tab leaves the desktop running. A tab that comes back after a reload shows Show desktop instead of reconnecting by itself, and a desktop ended by a host restart shows as ended.
  • Still running means Octant could not confirm the desktop is gone. It keeps trying, starts no new desktop on that provider meanwhile, and Retry tries again now.

A paired phone or browser that can open the thread can watch and use its desktop too.

  • The agent can extend a desktop on this host for its own thread, up to the longest the recipe allows: without asking at Full access, after asking below it, and never in Plan. It cannot extend a desktop that bills you or runs on another computer.

Desktop limits and confirmation ​

Settings → Computer use → Disposable desktops holds what every thread on this host follows. Only you change these, at a window on this computer or through the server from a device you paired yourself, each change recorded as that device. The paired phone and browser do not show these settings yet, and a device a hub introduced cannot change them:

  • Confirm each billed desktop (on by default). On, you confirm every desktop that bills you or runs off this computer before it starts, and every file sent to one. Off, they start and send without asking where the thread's access mode allows it, inside your monthly cap. The cap is always checked first, and a thread in Plan still starts none.
  • Desktops per thread: how many desktops one thread may hold at once, from 1 to 8 (2 unless you change it). Lowering it ends none that are running.
  • Desktops on this host: how many desktops may run on this host itself at once, across every thread, from 1 to 8 (2 unless you change it). Desktops in a cloud account do not count.

Desktops on another account or computer ​

A desktop on a cloud provider such as E2B runs on your own account and bills it, so Octant asks you to confirm each one before it starts, even at Full access, unless you turned off Confirm each billed desktop. The key stays on this host.

A desktop on another of your computers, such as a Cua Space on Your other computer, also asks each time and names the computer it runs on. If this computer stops, Octant cannot end it, and it may keep running there until you delete it. The pane's title names the computer while the desktop runs.

Octant shows and drives a Cua desktop only while Cua reaches it end to end, never through the relay's HTTPS path, where Cua's relay could read it. While that is the only way through, the pane says Not shown: the connection could be read, the desktop keeps running, and Try again looks once more.

Set a monthly spending cap ​

A desktop that bills you starts only under a monthly cap you set in Settings → Computer use → Desktops that bill you. Until you set one, none starts.

Before each one starts, Octant estimates the most it could cost from the recipe's Cost per hour, over its longest run or, for a Cua Space in your AWS, Google Cloud or Modal account, over the time that cloud keeps it running if this computer stops (8 hours for AWS and Google Cloud by default, up to a day for Modal), whichever is longer. If this month's spending plus that estimate would pass the cap, the desktop does not start and the pane says why. Desktops already running keep running.

The confirmation shows the estimate and what this month has counted. A month is a calendar month in UTC. Only a window on the host can see or change the cap; an agent never can.

Set the desktop recipe ​

Desktop starts a desktop from the Project's desktop recipe. To set one, open the Code Project, then Disposable desktop → Manage in its settings:

  • Provider lists the desktop providers this host offers. On Linux that includes this host itself, once Bubblewrap, Xvfb, xdotool and ImageMagick are installed and Octant has restarted, and Cua Spaces. E2B is listed on every host. A line under the list says where the provider runs, whose account it uses, and whether it bills you. A provider that is not set up shows (needs setup) and cannot be chosen, with what it needs listed below: E2B needs a credential store on this computer for your API key, and Cua Spaces needs its app running and signed in here. Nothing starts on a provider until you save a recipe that names it, and a desktop that bills you still asks first.
  • Runs on appears for a provider that names where its desktops run.
  • Computer appears when they run on one of your other computers. It lists the computers the provider knows, marking any that is not answering. Pick one; Octant never picks for you.
  • Screen sets the desktop's size.
  • Lasts, Longest and Idle set how long a desktop lasts at first, the most it can be extended to, and how long it may sit unused. They start at 30 minutes, four hours and 15 minutes.
  • API key appears for a cloud provider that bills your own account, such as E2B. A cloud recipe cannot be saved without one. Octant keeps it only in this computer's credential store (Keychain on a Mac, Secret Service on Linux) and sends it only to that provider. The recipe holds a reference to it, and the key never appears in the Project, its history, logs, diagnostics or an export. The line under the field says whether a key is saved, whether it is missing from the credential store, and whether the provider refused it last time. To replace it, type a new key and choose Save recipe. Remove key asks first, then keeps the recipe but ends its running desktops; none starts until you enter a key again. A replaced or removed key is deleted from the credential store once every desktop started with it is gone, because Octant needs it to end them.
  • Cost per hour appears for a desktop that bills you. Enter what an hour costs on your account, in US dollars. Octant knows no provider's price.

Set recipe saves it, and the next desktop uses it. Remove recipe asks first. Removing the recipe, or changing its provider, where it runs, its computer or its key, ends the Project's running desktops.

Only a window on the host can set or remove a recipe or enter its key, so Disposable desktop appears only there. A paired phone or browser does not show a Project's settings, and the host refuses a recipe change from either.

Share one local dev server with a desktop ​

A local host window can share one dev-server port with a ready host-local Linux desktop in the same Code task, outside Plan. The host needs Node, and Octant must see a healthy dev-server process it owns in that task's own worktree. E2B and Cua desktops do not offer this.

  1. In Desktop, enter the Dev-server port (1024–65535).
  2. Choose Review preview and check the process, exact port and expiry. Reviewing alone starts no access.
  3. Choose Share preview.
  4. Open the address shown inside this desktop in the guest's browser. Its http://127.0.0.1:…/ address belongs to that desktop; it is shown as text, not a link to open on your computer.

The grant carries only HTTP and WebSocket traffic to that server. It grants no other host port, host folder or other desktop. It expires at the lease expiry shown on the card; Add 30 minutes does not extend an existing preview grant.

Choose Stop sharing to close access. A changed checkout, binding or access level, loss of the local window, a disabled provider or computer use, the lease ending, or a host restart also ends the grant, and a restart restores none. A request already sent may have taken effect; Octant never replays it.

If Octant cannot confirm the guest proxy stopped, it refuses another grant and asks you to release that desktop before trying again.

Next steps ​

Octant documentation · local-first by design