zai-org/CogAgent

An open-sourced end-to-end VLM-based GUI Agent

What it solves

CogAgent is designed to automate interactions with graphical user interfaces (GUIs) across different operating systems. It solves the challenge of enabling an AI agent to perceive a screen, reason about the necessary steps to complete a task, and execute precise actions (like clicking or typing) on specific UI elements.

How it works

Based on the GLM-4V-9B bilingual vision-language model, CogAgent processes screenshots and natural language instructions to generate actionable commands. It uses a strict input-output format where the user provides the task, the current platform (Windows, macOS, or Android), and a history of previous steps. The model then outputs a "Grounded Operation" containing the exact coordinates (bounding boxes) and the type of action (e.g., CLICK, TYPE, SCROLL_DOWN) required to interact with the UI.

Who it’s for

It is primarily for researchers and developers building GUI agents or automation tools that need to operate across multiple platforms (Windows, Mac, and Mobile) using vision-based perception.

Highlights

  • Multi-platform Support: Works across Windows 10/11, macOS 14/15, and Android 13/14/15.
  • Bilingual Interaction: Supports both English and Chinese for task instructions and interaction.
  • High Precision Grounding: Capable of precise GUI localization and single/multi-step operations, outperforming several open-source and some commercial models in specific benchmarks.
  • LVM-based: Leverages a 9B parameter vision-language model to bridge the gap between visual perception and action execution.

Related

  • Project
  • Project
  • Project
  • Project