Overview
Run Anthropic's computer use reference setup in a container, point Claude at a browser game, and log what it does from screenshots and actions, including where it gets stuck and how hints change its approach.
Problem or Objective
More in Games and Simulations
AI Agents and Models
Tools and Integrations
- Tools
- Claude API · Docker
- Prerequisites
- An Anthropic API key, Docker, and Anthropic's computer use reference implementation.
How It Works
Start Anthropic's Docker-based computer use reference implementation, which gives Claude a virtual display it sees as screenshots and controls with mouse and keyboard. Open a free browser game in that environment, ideally one that needs many repeated clicks and some planning, such as an idle or clicker game. Give Claude a clear goal and a time or step budget, and save every screenshot and action the loop returns. Watch for stalls; when it repeats the same move without progress, add one short hint and note when and what you said. At the end, write down how far it got, how many steps it took, what broke, and any change in strategy, without rounding an unfinished run up to a win.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude computer use.
- Connect the toolsConnect the tools this workflow relies on: Claude API, Docker.
- Check the prerequisitesAn Anthropic API key, Docker, and Anthropic's computer use reference implementation.
- Gather your detailsCollect what the prompt asks for: Address of the game, What counts as success, Action budget.
- Run the starter promptPaste the starter prompt below into Claude computer use and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at platform.claude.com before you rely on it.
Practical Starter Prompt: Play the game toward a goal
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
A browser game is open at [Address of the game] on this virtual desktop. Your goal is [What counts as success]. You have at most [Action budget] actions. Before each burst of actions, say in one sentence what you are trying and why. If the same approach makes no progress three times in a row, stop and describe what is blocking you. Do not open other websites, sign in anywhere or accept any terms; if the game asks for any of these, stop and wait for my review. At the end, report how far you got and what you would try next.Run it only inside the isolated container, watch the screenshots, and log every hint you give.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's docs describe the computer use tool, a Docker reference implementation with a virtual display, and an agent loop that sends Claude's actions to the environment and returns screenshots. They also warn that Claude can make mistakes when choosing coordinates or tools and that it may be slower than a person. They say nothing about how well it plays any particular game.
Limitations and Considerations
Keep the run inside the container with no personal accounts signed in; Anthropic advises isolating the environment and having a person confirm actions with real-world consequences. Long sessions send many screenshots, so API costs climb with every step; set a step limit. All screenshots and actions are stored in your own environment, so tidy up logs you do not need. Pick a game whose terms allow automated play. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Computer use tool - Claude Platform Docs (opens in a new tab)
Project documentation · platform.claude.com · Undated · Source checked 25 Nov 2026, 12:00 UTC
What this source supports
- Virtual display: A virtual X11 display server (using Xvfb) that renders the desktop interface that Claude receives as screenshots and controls with mouse/keyboard actions.
- Agent loop: A program that handles communication between Claude and the environment, sending Claude's actions to the environment and returning the results (screenshots, command outputs) back to Claude.
- Computer vision accuracy and reliability: Claude might make mistakes or hallucinate when outputting specific coordinates while generating actions.
- All screenshots, mouse actions, keyboard inputs, and any files involved in a session are captured and stored in your environment, not by Anthropic.