Xpersona
O

OpenClaw PC Control

CLAWHUB · Unverified

PC控制工具,远程操控Windows电脑。当需要操作主人电脑时使用,如截屏、键鼠控制、文件操作、进程管理、浏览器自动化、Shell命令执行等。触发词:控制电脑、操作PC、截图、键盘、鼠标、文件管理、浏览器。 Skill: OpenClaw PC Control Owner: lukenccode Summary: PC控制工具,远程操控Windows电脑。当需要操作主人电脑时使用,如截屏、键鼠控制、文件操作、进程管理、浏览器自动化、Shell命令执行等。触发词:控制电脑、操作PC、截图、键盘、鼠标、文件管理、浏览器。 Tags: latest:2.0.0 Version history: v2.0.0 | 2026-03-30T09:39:20.997Z | user 2.0.0: 完整安全防护版 - API Key认证、Shell黑名单、文件沙箱、进程保护、操作日志 Archive index: Archive v2.0.0: 21 files, 27150 bytes Files: references/api-doc.md (4483b), scripts/api.py (14785b), scripts/generate_k

62
Rank
84
Safety
980
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 980 downloads reported by the source. Last updated 10/11/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: medium.

clawhub skill install s1716ckq57y9jya572xqf6dgjx83t9c3:openclaw-pc-control
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-lukenccode-openclaw-pc-control/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

11,477 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: pc-control
description: PC控制工具,远程操控Windows电脑。当需要操作主人电脑时使用,如截屏、键鼠控制、文件操作、进程管理、浏览器自动化、Shell命令执行等。触发词:控制电脑、操作PC、截图、键盘、鼠标、文件管理、浏览器。
---

# PC Control

Windows电脑控制工具,开箱即用,带完整安全防护。

## 快速安装

```bash
# 1. 安装 skill
clawhub install pc-control-luken

# 2. 安装依赖(Windows环境)
pip install -r skills/pc-control/scripts/requirements.txt

# 3. 配置 API Key(可选,推荐)
cd skills/pc-control/scripts
python generate_key.py   # 生成新的 API Key
# 或直接编辑 security_config.json 设置你自己的 key

# 4. 启动 API 服务
python api.py
```

## 安全认证

API 默认需要认证。调用时需要在 Header 中携带:
```
Authorization: Bearer <your_api_key>
```

未携带 key 或 key 错误将返回 `401/403`。

## 代码文件

| 文件 | 说明 |
|------|------|
| `scripts/pc.py` | CLI 命令行入口 |
| `scripts/api.py` | HTTP API 服务 |
| `scripts/generate_key.py` | API Key 生成器 |
| `scripts/security_config.json` | 安全配置文件 |
| `scripts/modules/` | 功能模块(含安全沙箱) |
| `scripts/requirements.txt` | Python 依赖 |

## 安全功能

- **API Key 认证** — 全局 token 验证
- **Shell 黑名单** — 拦截危险命令(del/shutdown/reg add等)
- **文件沙箱** — 禁止访问系统目录和危险文件类型
- **进程保护** — 系统关键进程无法被操作
- **操作日志** — 每次操作详细记录到 `security.log`

## 常用功能速查

| 功能 | 命令 |
|------|------|
| 截图 | `GET /screenshot` |
| 键盘按键 | `POST /key/press {"key":"enter"}` |
| 输入文本 | `POST /key/type {"text":"..."}` |
| 鼠标移动 | `POST /mouse/move {"x":100,"y":200}` |
| 鼠标点击 | `POST /mouse/click {"x":100,"y":200}` |
| 剪贴板读/写 | `GET /clipboard/read` / `POST /clipboard/write` |
| 进程列表 | `GET /process/list` |
| 结束进程 | `POST /process/kill {"name":"notepad"}` |
| 窗口列表 | `GET /window/list` |
| 关闭窗口 | `POST /window/close {"title":"..."}` |
| Shell执行 | `POST /shell/run {"command":"...","shell":"powershell"}` |
| 浏览器导航 | `POST /browser/navigate {"url":"..."}` |
| 浏览器点击 | `POST /browser/click {"text":"按钮文字"}` |

## 详细文档

- [完整API文档](references/api-doc.md)

_meta.json

{
  "ownerId": "kn79jmgtyrzj7rz4tzpq047afn82jcz2",
  "slug": "openclaw-pc-control",
  "version": "2.0.0",
  "publishedAt": 1774863560997
}

references/api-doc.md

# PC Control API 完整文档

## 环境信息
- 工具路径:`/mnt/d/openclawTool/`(WSL访问Windows D盘)
- 入口文件:`pc.py`(CLI)、`api.py`(HTTP服务)

## 启动API服务

```bash
cd /mnt/d/openclawTool && python api.py
```

服务运行在 `http://localhost:8080`,文档:`http://localhost:8080/docs`

---

## 屏幕

### 截图
```bash
python pc.py screenshot [--path 保存路径]
```
```bash
curl "http://localhost:8080/screenshot?path=my.png"
```

### 屏幕信息
```bash
python pc.py screen-info
```
```bash
curl "http://localhost:8080/screen-info"
```

---

## 剪贴板

### 读取
```bash
python pc.py clipboard read
```
```bash
curl "http://localhost:8080/clipboard/read"
```

### 写入
```bash
python pc.py clipboard write --text "内容"
```
```bash
curl -X POST "http://localhost:8080/clipboard/write" -H "Content-Type: application/json" -d '{"text":"内容"}'
```

---

## 键盘

### 按键
```bash
python pc.py key press enter
```
```bash
curl -X POST "http://localhost:8080/key/press" -H "Content-Type: application/json" -d '{"key":"enter"}'
```

### 输入文本
```bash
python pc.py key type --text "Hello World"
```
```bash
curl -X POST "http://localhost:8080/key/type" -H "Content-Type: application/json" -d '{"text":"Hello","interval":0.05}'
```

### 快捷键
```bash
python pc.py key hotkey --keys ctrl c
```
```bash
curl -X POST "http://localhost:8080/key/hotkey" -H "Content-Type: application/json" -d '{"keys":["ctrl","c"]}'
```

### 按下/松开
```bash
python pc.py key down ctrl
python pc.py key up ctrl
```

---

## 鼠标

### 移动
```bash
python pc.py mouse move 100 200 [--duration 0.5]
```
```bash
curl -X POST "http://localhost:8080/mouse/move" -H "Content-Type: application/json" -d '{"x":100,"y":200,"duration":0}'
```

### 点击/双击/右键
```bash
python pc.py mouse click 100 200
python pc.py mouse double 100 200
python pc.py mouse right 100 200
```
```bash
curl -X POST "http://localhost:8080/mouse/click" -H "Content-Type: application/json" -d '{"x":100,"y":200}'
```

### 拖拽
```bash
python pc.py mouse drag 300 400
```

### 滚轮
```bash
python pc.py mouse scroll 3
```
```bash
curl -X POST "http://localhost:8080/mouse/scroll" -H "Content-Type: application/json" -d '{"clicks":3}'
```

### 获取位置
```bash
python pc.py mouse position
```

---

## 进程

### 列表
```bash
python pc.py process list
```
```bash
curl "http://localhost:8080/process/list"
```

### 结束进程
```bash
python pc.py process kill notepad
```
```bash
curl -X POST "http://localhost:8080/process/kill" -H "Content-Type: application/json" -d '{"name":"notepad"}'
```

### 获取进程信息
```bash
python pc.py process get python
```

---

## 窗口

### 列表
```bash
python pc.py window list
```
```bash
curl "http://localhost:8080/window/list"
```

### 聚焦/最小化/最大化/关闭
```bash
python pc.py window focus "Notepad"
python pc.py window minimize "Notepad"
python pc.py window maximize "Notepad"
python pc.py window close "Notepad"
```

---

## 系统

```bash
python pc.py system info
python pc.py system displays
```

---

## 文件

```bash
python pc.py file read C:/test.txt
python pc.py file write C:/test.txt --content "内容"
python pc.py file list C:/
python pc.py file e

scripts/requirements.txt

pyautogui
mss
pyperclip
psutil
pywin32
fastapi
uvicorn
selenium

scripts/security_config.json

{
  "mode": "strict",
  "api_key": "EDAY1yl12c9asMRkeejs6KtF4SDlBPkR",
  "custom": {
    "shell": {
      "whitelist_mode": true,
      "allowed_commands": [],
      "blocked_commands": [
        "del",
        "rm",
        "rmdir",
        "format",
        "shutdown",
        "restart",
        "net user",
        "net localgroup",
        "reg add",
        "reg delete",
        "taskkill",
        "kill -9",
        "curl -o",
        "wget",
        "invoke-webrequest",
        "invoke-restmethod",
        "iex",
        "iwr",
        "downloadstring"
      ],
      "blocked_patterns": [
        "rm\\s+-rf",
        "del\\s+/[fq]",
        "format\\s+",
        "\\|.*iex",
        "powershell.*-enc"
      ]
    },
    "file": {
      "enabled": true,
      "allowed_dirs": [],
      "blocked_dirs": [
        "/Windows",
        "/Program Files",
        "/Program Files (x86)",
        "/$Recycle.Bin",
        "/System Volume Information",
        "/Users/Public",
        "/PerfLogs"
      ],
      "blocked_patterns": [
        "\\.\\./",
        "\\.exe$",
        "\\.dll$",
        "\\.bat$",
        "\\.cmd$",
        "\\.ps1$",
        "\\.sh$",
        "\\.vbs$",
        "\\.js$",
        "\\.msi$"
      ]
    },
    "process": {
      "enabled": true
    }
  },
  "log": {
    "enabled": true,
    "file": "security.log",
    "sensitive": false
  }
}

Sponsored

Ads related to OpenClaw PC Control and adjacent AI workflows.