whatisgithub

What is toolcua?

x-plug/toolcua — explained in plain English

Analysis updated 2026-05-18

19PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

ToolCUA is a research AI agent that operates a desktop like a human, choosing between clicking through a GUI and calling higher-level tools, trained in three staged steps to pick the right path efficiently.

Mindmap

mindmap
  root((ToolCUA))
    What it does
      GUI and tool action agent
      Path selection between modes
      Desktop task automation
    Tech stack
      Python
      vLLM
      Qwen3VL
      Hugging Face
    Use cases
      Computer use agent research
      Benchmark evaluation
      Model deployment
    Audience
      Researchers
      Agent developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study or benchmark how an AI agent decides between GUI clicks and API tool calls on desktop tasks.

USE CASE 2

Deploy the released ToolCUA-8B model with vLLM to experiment with computer-use agent behavior.

USE CASE 3

Evaluate a computer-use agent against the OSWorld-MCP benchmark for accuracy and efficiency.

What is it built with?

PythonvLLMQwen3VLHugging Face

How does it compare?

x-plug/toolcua16nic/comfyui-agnes-ai6c696e68/gpt_signup_hybrid
Stars191919
LanguagePythonPythonPython
Setup difficultyhardmoderatehard
Complexity5/52/54/5
Audienceresearchervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1day+

Requires a GPU, vLLM serving setup, and a separately configured OSWorld or OSWorld-MCP evaluation environment.

No license information given in the README.

So what is it?

ToolCUA is a research project that builds an AI agent designed to operate a computer the way a person would, by clicking, typing, and scrolling on a screen, while also knowing when to call higher-level tools such as file or application APIs instead of clicking through a GUI step by step. The project's core problem is that giving an agent both options at once tends to confuse it. Some models stick to clicking through everything, never using the faster tool calls, while others overuse tools and end up failing the task anyway. ToolCUA's goal is to teach a model to pick the right path at each step. The team trains the agent in three stages. First they build a large set of example task recordings that mix GUI actions with tool calls, generated from existing GUI-only data. Second, they run a fine-tuning stage that teaches the model tool-calling knowledge and when to switch between the two modes. Third, they apply an online reinforcement learning stage inside a simulated desktop environment, using a reward that favors completing tasks in fewer, more efficient steps. The repository ships a released model called ToolCUA-8B, built on top of the Qwen3VL-8B-Instruct model, along with evaluation code and results on a benchmark called OSWorld-MCP. Setup involves installing Python dependencies from a requirements file, downloading the model weights from Hugging Face, and serving the model using vLLM, a tool for running large language models efficiently. Running the evaluations requires setting up the OSWorld or OSWorld-MCP desktop simulation environments separately. According to the results table in the README, ToolCUA-8B outperforms its base model, Qwen3-VL-8B-Instruct, on accuracy, on how often it correctly chooses to invoke a tool, and on completing tasks in fewer steps. This is a research codebase aimed at people building or studying computer-use agents rather than a general-purpose tool for typical end users.

Copy-paste prompts

Prompt 1
Explain how ToolCUA decides when to use a GUI click versus a tool call in a desktop automation task.
Prompt 2
Walk me through setting up vLLM to serve the ToolCUA-8B model on a single GPU.
Prompt 3
What does the Tool-Efficient Path Reward in ToolCUA's reinforcement learning stage actually optimize for?
Prompt 4
Help me set up the OSWorld-MCP evaluation environment to test a computer-use agent.

Frequently asked questions

What is toolcua?

ToolCUA is a research AI agent that operates a desktop like a human, choosing between clicking through a GUI and calling higher-level tools, trained in three staged steps to pick the right path efficiently.

What language is toolcua written in?

Mainly Python. The stack also includes Python, vLLM, Qwen3VL.

What license does toolcua use?

No license information given in the README.

How hard is toolcua to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is toolcua for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.