Vibeleaderboard
← All Intel
Intel / post

Cua Ships Python and TypeScript SDKs for In-Process Computer Use

Source
Cua
Date
Cua@trycua
Thread · 4 parts

1/ New SDKs for background computer use. Use Cua Driver from Python or TypeScript, directly inside your app. Get started: https://t.co/7XtTP4biy0

2/ Your app owns the runtime. CuaDriver.create() loads the Rust engine in the importing process. Python and TypeScript share the same typed contract. Keep one driver object alive across calls, from creation to shutdown.

3/ Click a button without bringing its window forward. Call getWindowState(), select its element token, then click() with InputDeliveryMode.Background. Background support varies by app and OS. Read fresh state to verify the effect.

4/ Install cua-driver for Python or @trycua/cua-driver for TypeScript. Your app owns desktop permissions and cleanup. Use a private worker when you need process isolation. Python and TypeScript examples: https://t.co/7XtTP4biy0

Key takeaways · AI-distilled
  • Cua Driver's new Python (cua-driver) and TypeScript (@trycua/cua-driver) SDKs load its Rust engine inside the importing process via CuaDriver.create(), with one typed contract shared across both languages.
  • Background clicks work by calling getWindowState(), selecting an element , then click() with InputDeliveryMode.Background, so the window is not brought forward; Cua says support varies by app and OS and to re-read state to verify.
  • Because the app owns the runtime, it also owns desktop permissions and cleanup; Cua advises keeping one driver alive from creation to shutdown and using a private worker when process isolation is needed.
Terms in this piece · Glossary
  • AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
  • tokenThe chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
Why it matters

Builders can now call Cua Driver from Python or TypeScript inside their own process instead of running it as a separate service, and can click UI elements in the background via InputDeliveryMode.Background.

More from Cua
Recommended reads
Comments

Checking sign-in…

Loading comments…