Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Challenge a Computer-Using Agent to Play a Browser Game

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.

  1. Choose the agentSet up Claude computer use.
  2. Connect the toolsConnect the tools this workflow relies on: Claude API, Docker.
  3. Check the prerequisitesAn Anthropic API key, Docker, and Anthropic's computer use reference implementation.
  4. Gather your detailsCollect what the prompt asks for: Address of the game, What counts as success, Action budget.
  5. Run the starter promptPaste the starter prompt below into Claude computer use and adapt it to your case.
  6. 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].

Preview
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

  1. 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.
Report a problem

More with Claude computer use

Planned, not done

Complete a Sample Tax Form With Computer Use

Have Claude's computer use tool fill a blank practice copy of a tax form inside an isolated virtual machine, using figures from a local file, then check every line yourself before anything is filed.

platform.claude.com
Planned, not done

Test Visual Computer Use on a Domestic Flight Search

Try Claude's computer use tool in Anthropic's reference container on a real task: have it search a travel site for a one-way domestic flight and report the options it found, stopping before any booking step.

platform.claude.com
Planned, not done

Assemble a Complex Multi-Node Workflow through Computer Use

Run Claude's computer use tool in an isolated container and have it build a large n8n workflow node by node in the n8n editor from your written spec, with no real credentials, then test every branch yourself before publishing.

platform.claude.comn8n-io/n8n

View all: Claude computer use