Open History to see the last commit
1# Computer Use
2
3You want the model to do a task on a web page for you. This app opens tanstack.com in Chromium, and the model finds the TanStack AI computer use docs. It reads each screenshot, then clicks, types, and scrolls. Each screenshot shows in the chat.
4
5## Run it
6
71. From the repo root, run `pnpm install`.
82. Download Chromium one time: `pnpm --filter computer-use exec playwright-core install chromium`.
93. Copy `.env.example` to `.env.local`, then set `OPENAI_API_KEY`. Get a key at https://platform.openai.com/api-keys.
104. Run `pnpm --filter computer-use dev`.
115. Open http://localhost:3100 and click Send.
12
13A Chromium window opens on your machine. Watch the model use it.
14
15If OpenAI marks an action as risky, an approval card shows. Click Approve to run the action, or Decline to skip it.
16
17The server route is `src/routes/api.chat.ts`. The chat UI is `src/routes/index.tsx`.
18
19CAUTION: The browser can open every address that your server can reach. Run this app only on your own machine.