GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mazamaka/ai_desktop_agent: AI Desktop Agent — screen automation with Claude Computer Use API

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
agent_loop.py
agent_loop.py
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 
supervisord.conf
supervisord.conf
 
 

Repository files navigation

AI Desktop Agent

Python 3.10+ Anthropic API Docker License: MIT

An AI-powered desktop automation agent that uses Claude's Computer Use capabilities to interact with a virtual desktop environment. The agent can execute bash commands, control the mouse/keyboard, edit files, and perform multi-step tasks autonomously inside a Docker container with a virtual display.

Features

  • Claude Computer Use -- leverages Anthropic's computer use API (tools: computer, bash, text_editor)
  • Virtual Desktop -- runs a full GUI environment (Xvfb + Fluxbox) inside Docker
  • VNC Access -- monitor the agent's actions in real-time via noVNC (browser) or VNC client
  • Agentic Loop -- iterative tool-use loop with up to 10 reasoning steps
  • Extended Thinking -- uses Claude's thinking mode for better planning

Architecture

Docker Container
+------------------------------------------+
|  Xvfb (virtual display :1)               |
|  +-- Fluxbox (window manager)            |
|  +-- Firefox / Chromium                  |
|  +-- x11vnc --> noVNC (:6080)            |
|                                          |
|  agent_loop.py                           |
|    --> Anthropic API (Claude)            |
|    --> bash tool (subprocess)            |
|    --> computer tool (screenshots, etc.) |
+------------------------------------------+

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Anthropic API key with Computer Use access

1. Clone the repository

git clone https://github.com/mazamaka/ai_desktop_agent.git
cd ai_desktop_agent

2. Configure environment

cp .env.example .env
# Edit .env and set your Anthropic API key

3. Build and run

docker compose up --build -d

4. Access the virtual desktop

Open your browser and navigate to http://localhost:8080 to view the agent's desktop via noVNC.

You can also connect directly via VNC on port 5900.

Environment Variables

Variable Description Required
ANTHROPIC_API_KEY Your Anthropic API key Yes

Project Structure

ai_desktop_agent/
  agent_loop.py        # Main agent loop (Claude Computer Use)
  scripts/
    runner.py          # GUI automation helper (pyautogui)
  Dockerfile           # Ubuntu 22.04 + Xvfb + VNC + Python
  docker-compose.yml   # Service configuration
  run.sh               # Entrypoint script
  supervisord.conf     # Process manager config
  requirements.txt     # Python dependencies

How It Works

  1. The Docker container starts a virtual display (Xvfb) with a window manager
  2. agent_loop.py sends a task to Claude via the Anthropic API
  3. Claude responds with tool calls (bash, computer, text_editor)
  4. The agent executes the tool calls and returns results to Claude
  5. This loop continues until the task is completed (or max iterations reached)

Customization

To change the task the agent performs, edit the initial message in agent_loop.py:

messages = [
    {"role": "user", "content": "Your task description here"}
]

Author

Maksym Babenko

  • GitHub: @mazamaka
  • Telegram: @Mazamaka

License

This project is licensed under the MIT License.

About

AI Desktop Agent — screen automation with Claude Computer Use API

Resources

Readme
Activity

Stars

5 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.