CoolFace
Apppublic

Nethunter001/computer-use-agent

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes
App README

๐Ÿ–ฅ๏ธ AI Virtual Computer โ€” HotBot ร— Bytebot

An AI agent that controls a real Linux computer. The HotBot multi-brain "racer" engine (GPT-5 / Gemini / Pollinations, fused for quality) is wired to a Bytebot virtual desktop (XFCE + Firefox + VS Code + terminal) so the agent can see the screen and operate the mouse, keyboard, apps and files โ€” exactly like a human.

What's inside

LayerRole
Bytebot desktop (bytebotd)A full virtual computer + a /computer-use control API (mouse, keyboard, screenshot, apps, files), plus noVNC for a live view.
HotBot brains (services/hotbot.js)The "racers" โ€” several AI models run in parallel; the strongest reply wins.
Bridge (services/bytebot.js)Thin client that lets the brains call the desktop's /computer-use API.
Agent loop (services/agent.js)ReAct loop: the brain looks at a screenshot โ†’ emits one JSON action โ†’ it runs on the desktop โ†’ repeat until finish.
Web UI (public/index.html)Chat to give the computer a task and watch it work on a live desktop.

How to use

  1. 1.Open the Space โ€” you'll see the live desktop on the left and a control panel on the right.
  2. 2.In the ๐Ÿค– Agent tab, type a task in plain English, e.g.
  3. 3.open firefox and go to wikipedia.org
  4. 4.open the terminal and run "uname -a"
  5. 5.create a text file on the desktop with my notes
  6. 6.Watch the agent operate the computer step by step.

API

  • โ€”GET /api/health โ€” desktop + brain status
  • โ€”GET /api/screenshot โ€” current desktop PNG
  • โ€”POST /api/agent โ€” {"task":"open firefox and search openai"} โ†’ runs the agent loop
  • โ€”POST /api/computer-action โ€” {"action":"click","x":640,"y":400} or {"steps":[...]}
  • โ€”POST /api/chat โ€” {"message":"..."} โ†’ plain HotBot chat (no computer)

Configuration (Space โ†’ Settings โ†’ Variables)

VariableDefaultPurpose
HOTBOT_MODELgpt-5Primary brain model.
BYTEBOT_DESKTOP_URLhttp://localhost:9990Desktop daemon URL.
AGENT_MAX_STEPS25Max actions per task.
HOTBOT_SOLO(unset)Force a single brain (hotbot or gemini).

Built on Bytebot + the HotBot engine.