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 中携带:
text
Authorization: Bearer <your_api_key>
未携带 key 或 key 错误将返回 401/403。
文件说明scripts/pc.pyCLI 命令行入口scripts/api.pyHTTP API 服务scripts/generate_key.pyAPI Key 生成器scripts/security_config.json安全配置文件scripts/modules/功能模块(含安全沙箱)scripts/requirements.txtPython 依赖
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":"按钮文字"}