Xpersona
S

Screen Vision

CLAWHUB · Unverified

AI screen vision and desktop computer control skill for OpenClaw. Let your AI agent see the screen, understand UI elements, and autonomously perform mouse an...

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1736fbzs7t2407ykqygjayg1n848897:ai-screen-vision
  1. Install using `clawhub skill install s1736fbzs7t2407ykqygjayg1n848897:ai-screen-vision` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/guitu917/ai-screen-vision before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-guitu917-ai-screen-vision/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

120,077 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: screen-vision
description: >
  AI screen vision and desktop computer control skill for OpenClaw.
  Let your AI agent see the screen, understand UI elements, and autonomously perform
  mouse and keyboard operations (click, type, scroll, drag) via a screenshot-analyze-action loop.
  Cross-platform: Linux (headless server with XFCE4+noVNC, or desktop), macOS (cliclick),
  Windows (pyautogui). Supports any OpenAI-compatible vision API (SiliconFlow, OpenAI,
  DashScope, Zhipu, Ollama, etc.). Smart diff detection saves tokens.
  Safety mechanisms block dangerous operations.
  Trigger: when user asks to operate/control computer, view/interact with screen,
  open applications, browse websites, fill forms, perform desktop GUI tasks, take screenshots,
  or any task requiring visual screen understanding and desktop automation.
  Keywords: computer use, screen control, desktop automation, GUI agent, visual agent,
  屏幕操控, 桌面控制, 视觉代理, 截屏, 自动化操作, 远程桌面, AI操控电脑,
  screen vision, desktop agent, mouse keyboard automation, UI automation,
  computer use agent, CUA, computer control, screen interaction.
  Examples: "打开Chrome搜索天气", "看看屏幕上有什么", "帮我操作电脑", "截个屏",
  "open browser and search weather", "click the submit button", "take a screenshot",
  "fill this form", "帮我打开微信", "操作电脑下载文件", "远程操作桌面".
---

# Screen Vision

Control the desktop visually: screenshot → AI vision analysis → execute actions → loop until done.

## Quick Start

### 1. Setup (one-time)

Detect platform and install dependencies:

```bash
bash scripts/setup/setup-linux.sh --headless   # Linux server (no desktop)
bash scripts/setup/setup-linux.sh --desktop     # Linux with desktop
bash scripts/setup/setup-mac.sh                 # macOS
python scripts/setup/setup-win.py          # Windows
```

### 2. Configure API

Copy `config.example.json` to `config.json` and fill in your vision API credentials.
You must set `baseUrl`, `apiKey`, and `model` — supports any OpenAI-compatible API.

```json
{
  "vision": {
    "baseUrl": "https://api.siliconflow.cn/v1",
    "apiKey": "sk-your-key",
    "model": "Qwen/Qwen3-VL-32B"
  }
}
```

Environment variables also work: `SV_VISION_API_KEY`, `SV_VISION_BASE_URL`, `SV_VISION_MODEL`.
See [references/API_CONFIG.md](references/API_CONFIG.md) for all supported providers and detailed setup.

### 3. Usage

The skill operates through a screenshot-analyze-action loop:

1. **Take screenshot** → `bash scripts/platform/screenshot.sh [output_path] [display]`
2. **Analyze with AI** → `python3 scripts/vision/analyze.py --image <path> --task "<task>"`
3. **Execute action** → `python3 scripts/platform/execute.py --action <type> [options]`
4. **Full task loop** → `python3 scripts/core/run_task.py --task "<task>"`

## Architecture

```
User task → run_task.py (orchestrator)
  ├── screenshot.sh (capture screen)
  ├── diff_check.py (detect changes, skip if unchanged → saves tokens)
  ├── analyze.py (send screenshot + task to vision API)
  ├── safety_check.py (block dangerous opera

README.md

# 🖥️ Screen Vision

**AI Screen Vision & Desktop Control Skill for OpenClaw**

让 AI 看到屏幕、理解界面、操控电脑——像人一样使用桌面。

[![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-blue)](https://clawhub.ai/guitu917/ai-screen-vision)
[![Platform](https://img.shields.io/badge/Platform-Linux%20%7C%20macOS%20%7C%20Windows-green)]()
[![Version](https://img.shields.io/badge/Version-1.1.0-orange)]()

---

## ✨ 功能特性

- 🖱️ **鼠标操控** — 点击、双击、右键、拖拽
- ⌨️ **键盘输入** — 打字、快捷键、功能键
- 📸 **屏幕理解** — AI 视觉分析屏幕内容
- 🔄 **自主循环** — 截图→分析→操作→循环直到完成
- 💡 **智能省 Token** — diff 检测,画面没变化不重复分析
- 🔒 **安全机制** — 拦截危险操作,敏感操作需确认
- 🖥️ **跨平台** — Linux / macOS / Windows 全支持
- 📱 **远程观看** — 无桌面服务器可用 noVNC 网页实时观看

## 🎬 工作原理

```
用户说 "帮我打开浏览器搜索天气"
           │
           ▼
    ┌─ 截屏(scrot/screencapture/pyautogui)
    ├─ AI 视觉分析(用户自选模型)
    │   ├─ 看到什么?
    │   ├─ 下一步做什么?
    │   └─ 操作坐标是什么?
    ├─ 执行操作(xdotool/cliclick/pyautogui)
    ├─ 等待 1 秒
    └─ 再次截屏 → 循环
        │
        ▼
    任务完成 → 截图汇报结果
```

## 📦 安装

### 方式一:ClawHub 一键安装(推荐)

```bash
clawhub install ai-screen-vision
```

### 方式二:手动安装

```bash
# 克隆到 OpenClaw skills 目录
git clone https://github.com/guitu917/screen-vision.git ~/.openclaw/workspace/skills/screen-vision

# 进入目录运行安装脚本
cd ~/.openclaw/workspace/skills/screen-vision
bash install.sh
```

### 方式三:发送给 OpenClaw

直接把压缩包发给 OpenClaw,AI 会自动解压安装!

### 一键安装脚本参数

```bash
bash install.sh                              # 自动检测平台
bash install.sh --api-key YOUR_API_KEY       # 带 API Key 安装
bash install.sh --headless                   # Linux 无桌面服务器模式
bash install.sh --desktop                    # Linux 有桌面环境
```

## ⚙️ 配置

### API Key(必须)

复制配置模板并填入你的视觉 API Key:

```bash
cp config.example.json config.json
```

编辑 `config.json`:

```json
{
  "vision": {
    "baseUrl": "https://api.siliconflow.cn/v1",
    "apiKey": "YOUR_API_KEY",
    "model": "Qwen/Qwen3-VL-32B"
  }
}
```

或使用环境变量:

```bash
export SV_VISION_API_KEY=your_api_key
export SV_VISION_BASE_URL=https://api.siliconflow.cn/v1
export SV_VISION_MODEL=Qwen/Qwen3-VL-32B
```

### 支持的视觉模型

本技能支持**所有 OpenAI 兼容的视觉 API**,不限厂商,用户自由选择。

| 模型 | 平台 | 费用/任务 | 准确度 |
|------|------|----------|--------|
| Qwen3-VL-32B | 硅基流动 | 低 | ⭐⭐⭐⭐ |
| GLM-4V-Plus | 智谱 BigModel | 低 | ⭐⭐⭐⭐ |
| GPT-5.4-Mini | OpenAI / 中转站 | 中 | ⭐⭐⭐⭐⭐ |
| GPT-5.4 CUA | OpenAI | 高 | ⭐⭐⭐⭐⭐ |
| Llama 3.2 Vision | Ollama 本地 | 免费 | ⭐⭐ |

详细配置见 [references/API_CONFIG.md](references/API_CONFIG.md),包含各平台注册地址和配置示例。

## 🖥️ 平台支持

### Linux

**有桌面环境(Ubuntu Desktop 等):**
```bash
bash scripts/setup/setup-linux.sh --desktop
```
工具:`scrot` + `xdotool`,直接操控现有桌面

**无桌面服务器(Headless):**
```bash
bash scripts/setup/setup-linux.sh --headless
```
自动安装:XFCE4 桌面 + VNC 服务器 + noVNC 网页端
- 启动:`sv-start`
- 停止:`sv-stop`
- 浏览器访问:`http://<IP>:6080/vnc.html`

### macOS

```bash
bash scripts/setup/setup-mac.sh
```
工具:`screencapture` + `cliclick`

⚠️ 需要授权:系统设置 → 隐私与安全 → 辅助功能 → 添加终端/OpenClaw

### Windows

```powershell
powershell -ExecutionPolicy Bypass -File scripts/setup/setup-win.ps1
```
工具:`pyautogui`(Python),无需额外配置

_meta.json

{
  "ownerId": "kn76t7s9e6d2k0t307fcagzwms849drn",
  "slug": "ai-screen-vision",
  "version": "1.1.0",
  "publishedAt": 1776096473922
}

references/API_CONFIG.md

# Vision API Configuration

## 必填项

本技能支持**所有 OpenAI 兼容的视觉 API**,你需要自行配置以下三项:

| 字段 | 说明 | 示例 |
|------|------|------|
| `baseUrl` | API 地址 | `https://api.siliconflow.cn/v1` |
| `apiKey` | API 密钥 | `sk-xxx...` |
| `model` | 视觉模型名称 | `Qwen/Qwen3-VL-32B` |

`provider` 字段为可选标识,仅用于日志记录。

## 配置方式

### 方式一:config.json(推荐)

复制 `config.example.json` 为 `config.json`,填入你的 API 信息:

```json
{
  "vision": {
    "provider": "siliconflow",
    "baseUrl": "https://api.siliconflow.cn/v1",
    "apiKey": "sk-your-api-key",
    "model": "Qwen/Qwen3-VL-32B"
  }
}
```

### 方式二:环境变量

```bash
export SV_VISION_API_KEY=sk-your-api-key
export SV_VISION_BASE_URL=https://api.siliconflow.cn/v1
export SV_VISION_MODEL=Qwen/Qwen3-VL-32B
export SV_VISION_PROVIDER=siliconflow   # 可选
```

---

## 推荐视觉模型

以下是经过测试的视觉模型,按性价比排序:

| 模型 | 厂商/平台 | 视觉能力 | 价格 | 推荐场景 |
|------|-----------|---------|------|---------|
| Qwen3-VL-32B | 硅基流动 / 阿里百炼 | ⭐⭐⭐⭐ | 低 | 日常桌面操控(推荐) |
| GLM-4V-Plus | 智谱 BigModel | ⭐⭐⭐⭐ | 低 | 备选方案 |
| GPT-5.4-Mini | OpenAI / V-API 等中转 | ⭐⭐⭐⭐⭐ | 中 | 高精度任务 |
| GPT-5.4 CUA | OpenAI | ⭐⭐⭐⭐⭐ | 高 | 专业 Computer Use |
| Qwen3-VL-8B | 硅基流动(免费额度) | ⭐⭐⭐ | 极低 | 预算有限 |
| Llama 3.2 Vision | Ollama 本地 | ⭐⭐ | 免费 | 有 GPU、隐私优先 |

> **提示**:选择模型时,视觉理解能力比通用对话能力更重要。模型需要能准确识别屏幕上的按钮、输入框、文字等 UI 元素并给出精确坐标。

## 各平台配置示例

### 硅基流动(SiliconFlow)

国内访问快,价格低,推荐首选。

```json
{
  "vision": {
    "provider": "siliconflow",
    "baseUrl": "https://api.siliconflow.cn/v1",
    "apiKey": "sk-your-siliconflow-key",
    "model": "Qwen/Qwen3-VL-32B"
  }
}
```

注册地址:https://siliconflow.cn

### 阿里百炼

阿里云旗下,模型质量高。

```json
{
  "vision": {
    "provider": "dashscope",
    "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
    "apiKey": "sk-your-dashscope-key",
    "model": "qwen-vl-max"
  }
}
```

注册地址:https://dashscope.console.aliyun.com

### 智谱 BigModel

```json
{
  "vision": {
    "provider": "zhipu",
    "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
    "apiKey": "your-zhipu-key",
    "model": "glm-4v-plus"
  }
}
```

注册地址:https://open.bigmodel.cn

### OpenAI / V-API 等中转

支持所有 OpenAI 兼容的中转站。

```json
{
  "vision": {
    "provider": "openai",
    "baseUrl": "https://api.openai.com/v1",
    "apiKey": "sk-your-key",
    "model": "gpt-5.4-mini"  // 替换为你使用的模型
  }
}
```

### Ollama 本地模型(免费)

需要有 GPU 的机器。

```json
{
  "vision": {
    "provider": "ollama",
    "baseUrl": "http://localhost:11434/v1",
    "apiKey": "ollama",
    "model": "llama3.2-vision"
  }
}
```

---

## API 调用格式

所有 provider 统一使用 OpenAI Chat Completions 格式:

```json
{
  "model": "<your-model>",
  "messages": [{
    "role": "user",
    "content": [
      {"type": "text", "text": "<analysis_prompt>"},
      {"type": "image_url", "image_url": {"url": "data:image/png;base64,<screenshot>"}}
    ]
  }],
  "max_tokens": 1500
}
```

如果你的 API 不兼容此格式,可能无法正常使用。

## 常见问题

**Q: 配置后提示 "Vision API not configured"**
A: 检查 `baseUrl`、`apiKey`、`model` 三项是否都已填写。环境变量优先于 config.json。

**Q: API 返回 401/403 错误**
A: API Key 不正确或已过期,请到对应平台重新生成。

**Q: 分析结果不准确,坐标偏移**

references/EXAMPLES.md

# Usage Examples

## Basic Screen Understanding

```
User: "看看屏幕上有什么"
→ Screenshot → AI describes what's on screen → Report to user
```

## Open Application

```
User: "帮我打开Chrome浏览器"
→ Screenshot → AI finds desktop/taskbar → Click Chrome icon → Wait → Verify opened
```

## Web Search

```
User: "帮我百度搜索北京天气"
→ Screenshot → Find browser → Open/type baidu.com → Type "北京天气" → Press Enter → Screenshot result
```

## File Operation

```
User: "把桌面上的report.txt复制到Documents文件夹"
→ Screenshot → Find file → Right click → Copy → Navigate to Documents → Paste
```

## Form Filling

```
User: "帮我在XXX网站注册账号,邮箱用test@example.com"
→ Screenshot → Navigate to site → Fill form fields → Submit
```

## Terminal Operation

```
User: "打开终端执行 df -h"
→ Screenshot → Find terminal → Open → Type "df -h" → Press Enter → Screenshot result
```

## Screenshot Capture

```
User: "截个屏给我看看"
→ Screenshot → Send image to user
```

## Complex Multi-step Task

```
User: "帮我下载这个PDF并保存到Downloads文件夹"
→ Screenshot → Find link → Click → Handle download dialog → Verify in Downloads
```

Sponsored

Ads related to Screen Vision and adjacent AI workflows.