trycua/cua

TypeScript SDK "useHostComputerServer" example in documentation not present in NPM releases

Open

#916 ouverte le 26 janv. 2026

Voir sur GitHub
 (3 commentaires) (1 réaction) (1 assigné)HTML (1 051 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (16 722 stars)
Métriques de merge PR
 (Merge moyen 1j 9h) (119 PRs mergées en 30 j)

Description

Hi CUA team,

I am trying to follow the official guide for using the Computer SDK in TypeScript: https://cua.ai/docs/cua/guide/get-started/using-computer-sdk

The documentation shows the following example:

import { Computer } from '@trycua/computer';

const computer = new Computer({ useHostComputerServer: true });
await computer.run(); // Connect to the host desktop

However, I encountered several issues:

  1. I installed the latest NPM release (@trycua/computer v0.1.6) and earlier versions (0.1.2, 0.1.3, 0.1.5). In all cases, useHostComputerServer is not recognized as a valid parameter in the Computer constructor.

  2. Reviewing the TypeScript source code, I can only find CloudComputer and CloudComputerConfig. There is no apparent way to construct a Computer instance that connects to the local host desktop, as described in the documentation.

  3. The Python SDK works correctly with a local computer_server, so this seems to be specific to the TypeScript SDK.

My questions:

  • Which TypeScript SDK version supports the useHostComputerServer option shown in the guide?
  • If no release exists yet, is there an official way to connect to a local host desktop from TypeScript?
  • Is there a recommended channel to get the TypeScript usage examples that match the Python functionality?

Thank you for your guidance!

Guide contributeur