#6262nd of 95 in Agent and MCP starters
openai-cua-sample-app
Reference computer-use agents using Playwright (JS) and PyAutoGUI (Python)
- Stars
- 1.9k
- License
- MIT
- Last commit
- Oct 2026
- Language
- TypeScript
1,645 on 28 Mar 20261,936 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
OpenAI is hiring: 876 open roles
Overview
Two sample computer-use agents built on the OpenAI Responses API. The JavaScript agent writes code against Playwright to drive a browser; the Python agent uses PyAutoGUI to control a real desktop through screenshots, mouse and keystrokes. Both share a web console and three fake labs (kanban, paint, booking) for testing, plus SDK examples using ComputerToolset.
Who it is for: Engineers learning to build computer-use agents on the OpenAI Responses API
Strengths
- Two implementations of the same loop, in TypeScript and Python, for direct comparison
- Bundled labs (kanban, paint, booking) with Replay JSON and a screenshot timeline per run
- SDK examples run in a headless Chromium context with outbound page requests blocked
- Persistent worker keeps state between model calls, reducing round trips
Weaknesses
- No OS sandbox: generated code runs with your user permissions
- Python agent controls your real mouse and keyboard; crashes can leave input held
- Requires an OpenAI API key and paid calls; no other model providers documented
- Sample code, not a production runtime; lacks OpenAI's action-review controls
What it needs
- TypeScript, OpenAI models via Responses API
- Needs OpenAI API key, Node.js 22.20.0, pnpm 10.26.0, Playwright, uv (Python app), Python 3.10+ (Python app)
- env example file
Also in Agent and MCP starters
See all 95| Rank | Project | Score |
|---|---|---|
| #60 | shepherdPython runtime that records agent runs as reviewable, reversible traces | 54 out of 100 |
| #61 | tinyfish-cookbookExample apps and n8n workflows built on the TinyFish web agent API | 54 out of 100 |
| #63 | echo-agentSelf-hosted Python agent runtime with layered memory and a Tauri desktop app | 54 out of 100 |
| #64 | golfPython framework that compiles tool, resource and prompt files into an MCP server | 54 out of 100 |
| #65 | OpenTagSlack and Teams knowledge agent on LangGraph and CopilotKit Channels | 53 out of 100 |