computer-use:基于 openJiuwen 生态的跨平台桌面操作智能体项目

openJiuwen跨平台的桌面操控助手,让智能体像人一样读屏幕、点鼠标、填表单。通过统一元素接口和目标校验、多路径执行、编译缓存等技术,打造高可靠、高效率和长程任务稳定的电脑操控智能体。 支持SDK独立部署,提供A2A、MCP等多种接入方式; 支持macOS、Windows、Linux等多操作系统。

Branch4Tags1
FilesLast commitLast update
1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 hour ago
1 month ago
18 days ago
26 days ago
1 month ago
20 days ago
1 month ago
1 hour ago
18 days ago
1 hour ago
15 days ago
15 days ago
5 days ago
15 days ago
1 hour ago

Computer Use

openJiuwen's computer-operation engine and agent: agents that read the screen, act on controls and fill forms the way people do

English | 简体中文

License Python Platform

Introduction

Computer Use is the desktop-operation component of the openJiuwen Agent System Service layer. It reads the accessibility tree and screenshots of desktop applications, operates controls through mouse and keyboard input, and returns operation receipts. It supports macOS, Windows and Linux.

Developers can adopt it in two ways:

Option 1: integrate the computer_use engine. Connect an agent through MCP or call the Python SDK directly. The MCP tool computer_use(title, code) runs Python against the Computer → App → Element interface, with variables retained across calls. Agents use accessibility trees and screenshots to locate controls and verify operation results.

Option 2: integrate the Computer Use DeepAgent. Use the agent assembled on openJiuwen DeepAgent through its standard invoke(), stream() and Runner interfaces. Applications pass natural-language tasks to the agent, which observes the desktop, performs operations and checks their results.

Quick Start

Runtime requirements

Run Computer Use on the computer you want to control, in a logged-in and unlocked graphical desktop session.

Platform OS version and runtime requirements
macOS macOS 14.0 (Sonoma) or later on Apple silicon or Intel Macs. Grant Accessibility permission to read the accessibility tree and control apps, and Screen Recording permission to take screenshots.
Windows Windows 10 version 1903 (build 18362) or later, or Windows 11, on x64. The driver requires .NET Framework 4.8 or 4.8.1.
Linux A glibc-based distribution on x86_64 or ARM64. The driver needs PyGObject, AT-SPI 2, the graphical session's D-Bus, and the X11 and xkbcommon libraries. Debian 13's AT-SPI passed verification. The version shipped with Debian 12 can time out when listing apps. Screenshots and simulated mouse and keyboard input require an X11 session. On Wayland, Computer Use can read the accessibility tree and perform the accessibility actions exposed by the app. The minimum glibc version for a prebuilt wheel depends on the artifact.

The SDK and MCP use standard CPython 3.11–3.15. DeepAgent uses CPython 3.11–3.13. Choose a prebuilt wheel that matches your Python minor version and system architecture. The Linux driver also needs a system Python 3.11 or later that can load PyGObject. See the source build guide for dependency installation and build steps.

Connect your existing agent with one prompt

Send the appropriate prompt to a coding agent that can edit your project and run commands:

Integrate DeepAgent:

Read https://gitcode.com/openJiuwen/computer-use/blob/main/docs/deepagent.en.md, follow its instructions to build and install Computer Use from source, integrate Computer Use DeepAgent into this project, and verify the integration.

Connect over MCP:

Read https://gitcode.com/openJiuwen/computer-use/blob/main/docs/mcp.en.md, follow its instructions to build and install Computer Use from source, connect it to the agent I am using over MCP, and verify the integration.

Architecture

The project has four layers: interfaces, agent assembly, the execution engine and OS adapters. Applications can integrate DeepAgent, connect an external agent over MCP, or call the SDK directly:

flowchart TD
    App["Agent application"] --> Agent["computer_use_agent · DeepAgent"]
    CLI["computer_use_agent/cli"] --> Agent
    Agent --> MCP["interface_adapter/mcp"]
    External["External agent"] --> MCP
    MCP --> Engine["computer_use_engine · Python SDK"]
    Python["Python application"] --> Engine
    Engine --> OS["os_adapter · macOS / Windows / Linux"]
    OS --> Desktop["Desktop applications"]

DeepAgent manages model calls, conversation context and the tool loop. The engine manages target identity, observations and operation routing. OS adapters prepare input receivers and dispatch operations.

Features

  • DeepAgent integration: standard openJiuwen invocation, streaming and Runner integration, with computer-operation tools reusable in existing DeepAgent applications.
  • Single-tool code execution: the model writes Python, variables persist across calls, one call can complete a multi-step workflow.
  • Accessibility-tree first: elements are numbered by decimal refs; element(path) queries, paged text reads and menu reads are supported.
  • Verifiable receipts: dispatch and post-action observation are reported separately. Observations show diffs by default. Request screenshots explicitly.
  • Background-first input: App methods accept an optional window= scope. On macOS, direct Computer methods send global input.
  • Cross-platform native drivers: one each for macOS, Windows and Linux behind the same protocol.
  • Observable: every execution is journaled as JSONL under ~/.computer-use/logs, including code, observations and receipts.

Project Structure

The four layers and supporting files are organized as follows:

computer-use/
├── interface_adapter/       # access layer: MCP integration
│   └── mcp/                 # stdio MCP host and persistent Python execution
├── computer_use_agent/      # agent assembly: DeepAgent, context and tool integration
│   └── cli/                 # direct conversation and configuration
├── computer_use_engine/     # engine: public SDK, observation and operation pipelines
├── os_adapter/              # OS adaptation: native platform backends and resources
│   ├── macos/
│   ├── windows/
│   └── linux/
├── docs/                    # build, installation and integration guides
├── scripts/                 # native build, permissions and resource generation
├── tests/                   # unit tests
├── pyproject.toml           # package metadata, dependencies and CLI entry points
├── LICENSE                  # Apache License 2.0
└── OPEN_SOURCE_SOFTWARE_NOTICE.md

Documentation

Contributing

Issues and pull requests are welcome. Before submitting, please make sure that:

  1. native driver changes come with instructions that build cleanly on a local machine;
  2. engine-layer changes introduce no dependency on any agent framework;
  3. new behavior is covered by unit tests or a reproducible probe script.

License

This project is licensed under Apache License 2.0.

This product serves solely as a workflow orchestration tool and does not embed any AI model capabilities. When users integrate AI models for specific business scenarios, they shall bear full responsibility for compliance obligations under the EU AI Act and other relevant regulatory frameworks.

Introduction

openJiuwen跨平台的桌面操控助手,让智能体像人一样读屏幕、点鼠标、填表单。通过统一元素接口和目标校验、多路径执行、编译缓存等技术,打造高可靠、高效率和长程任务稳定的电脑操控智能体。 支持SDK独立部署,提供A2A、MCP等多种接入方式; 支持macOS、Windows、Linux等多操作系统。

https://gitcode.com/openJiuwen/computer-useCustomize your domain