# Computer Use and Browser Agents

> Agents that operate GUIs, browsers and terminals through screenshots and actions, plus the sandboxing they require. Free notes, key concepts, resources and a...

Canonical: https://www.internhack.in/roadmaps/tracks/ai-engineer/computer-use-agents
Last updated: 2026-11-28

Agents that operate GUIs, browsers and terminals through screenshots and actions, plus the sandboxing they require.

Advanced · about 4 hours · difficulty 4/5

Learn first: [Designing Tools for Agents](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-tool-design)

Some tasks have no API: legacy web apps, desktop software, forms behind logins. **Computer use** agents look at screenshots and issue mouse and keyboard actions, while **browser agents** drive a real browser through tools such as Playwright. **Coding agents** operate a terminal and file system.

### How it works

The model receives a screenshot (or an accessibility tree / DOM snapshot), decides an action such as click at coordinates, type text or scroll, your harness executes it, and a new screenshot comes back. It is the agent loop with very large observations.

### Practical realities

- **Slow and expensive**: each step carries an image. Prefer an API or DOM-level tool whenever one exists and use vision only as a fallback.
- **Brittle**: layouts change, pop-ups appear, pages load slowly. Build in waits, retries and verification after each action.
- **Structured alternatives**: DOM or accessibility snapshots are cheaper and more precise than raw pixels for web tasks.

### Safety is mandatory

- Run in an **isolated sandbox**: a container or VM with no access to your real accounts, files or network beyond what the task needs.
- Web pages can contain **prompt injection** aimed at the agent. Limit what a compromised agent could do.
- Require human confirmation for purchases, sending messages, or entering credentials.

### Good enough to move on

You can run a browser agent in a container that completes a multi-step task on a test site, logs screenshots per step, and refuses to proceed past a payment page without approval.

## Key concepts

- **Screenshot-action loops**
- **Browser automation with Playwright**
- **DOM and accessibility snapshots**
- **Coding agents and terminals**
- **Sandboxed containers and VMs**
- **Human confirmation gates**

## Mini project

Use a computer use or browser agent inside a Docker container to fill out a multi-page form on a local demo site, with a screenshot log and a hard stop before final submission.

## Check yourself

Why should a browser agent never run in the same browser profile you use for your bank?

## Free resources

- [Anthropic docs: computer use](https://docs.anthropic.com/en/docs/agents-and-tools/computer-use) (Anthropic)
- [OpenAI docs: computer use](https://platform.openai.com/docs/guides/tools-computer-use) (OpenAI)
- [Playwright documentation](https://playwright.dev/docs/intro) (Playwright)

Previous: [Multi-Agent Systems](https://www.internhack.in/roadmaps/tracks/ai-engineer/multi-agent-systems) · Next: [Why and How to Evaluate LLM Apps](https://www.internhack.in/roadmaps/tracks/ai-engineer/eval-fundamentals)

## More in Building AI Agents

- [The Agent Loop](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-loop)
- [Designing Tools for Agents](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-tool-design)
- [Planning, Reflection and Long Tasks](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-planning)
- [Memory and Context Engineering](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-memory)
- [Model Context Protocol (MCP)](https://www.internhack.in/roadmaps/tracks/ai-engineer/mcp)
- [Agent SDKs and Frameworks](https://www.internhack.in/roadmaps/tracks/ai-engineer/agent-frameworks)
- [Multi-Agent Systems](https://www.internhack.in/roadmaps/tracks/ai-engineer/multi-agent-systems)
- [Computer Use and Browser Agents](https://www.internhack.in/roadmaps/tracks/ai-engineer/computer-use-agents)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [AI Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/ai-engineer)
