Clawdos
Overview
This skill exposes a CLI wrapper around the Clawdos REST API, allowing you to operate a Windows machine securely from OpenClaw via shell commands.
Instead of loading tools, use exec to call the standalone python script scripts/clawdos.py.
⚠️ SECURITY & SANDBOX MECHANISM
File System Sandbox Protection:
- All file system operations (
fs_list, fs_read, fs_write, fs_delete, fs_move) are restricted to a sandboxed root directory on the Windows host.
- The sandbox root is configured via the
CLAWDOS_FS_ROOT_ID environment variable and enforced server-side.
- The Clawdos service prevents access to files outside the designated sandbox directory. Path traversal attempts (e.g.,
../../../) are blocked.
- This isolation ensures that skill operations cannot accidentally or intentionally access sensitive system files, user documents, or configuration outside the permitted scope.
Network Isolation:
- The Clawdos service only communicates with the configured
CLAWDOS_BASE_URL and does not establish unauthorized external connections.
- All API calls are authenticated via
CLAWDOS_API_KEY and encrypted over HTTPS when applicable.
⚠️ AUTHORIZATION & CAPABILITY WARNINGS
This skill grants access to powerful Windows automation capabilities. Users must explicitly understand and authorize the following operations:
Shell Command Execution (shell_exec)
- Can execute arbitrary PowerShell or cmd commands on the Windows host.
- Even within the sandbox, commands can potentially modify system state, install software, or alter configurations.
- Only use with trusted sources and explicit user approval.
File Deletion (fs_delete)
- Permanently removes files and directories within the sandbox.
- No recovery mechanism exists once deleted.
- Exercise extreme caution; confirm deletion intent before execution.
File Upload/Download (--file, --out)
- The CLI script can read local files and upload them to the Windows host (within sandbox).
- The script can download remote files from the Windows host to the agent system.
- Do not use with sensitive files or untrusted remote systems.
Persistent Screen/Window Monitoring
- Visual actions (
screen_capture, window_list, window_focus) can observe active GUI content.
- If sensitive information is visible on screen, it may be captured.
⚠️ Requirements
This skill requires a corresponding server running on your Windows host.
Ensure the Windows host is running danzig233/clawdos. The connection parameters (CLAWDOS_BASE_URL and CLAWDOS_API_KEY) must be configured via OpenClaw's skill configuration UI or environment variables, as specified in this file's metadata.
Usage
You interact with Clawdos by running the scripts/clawdos.py CLI using the exec tool. The script will automatically pick up the CLAWDOS_BASE_URL and CLAWDOS_API_KEY environment variables injected by OpenClaw.
Basic Syntax:
python3 ~/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/skills/clawdos/scripts/clawdos.py <action> --args '{"key":"value"}'
Available Actions
1. Visual Navigation & System Check
health: Check service status.
get_env: Get screen resolution, DPI scale, and active window.
window_list: List all open windows.
window_focus: Focus a window. Args: {"titleContains": "..."} or {"processName": "..."}
screen_capture: Take a screenshot. Use --out path/to/save.png to save binary. Args: {"format": "png", "quality": 80}
2. Precise Input (Mouse & Keyboard)
(Prioritize keyboard/shell when possible to avoid visual estimation errors)
click: Click the mouse. Args: {"x": 100, "y": 200, "button": "left"}
move: Move cursor. Args: {"x": 100, "y": 200}
drag: Drag mouse. Args: {"fromX": 100, "fromY": 200, "toX": 300, "toY": 400}
keys: Press key combos. Args: {"combo": ["ctrl", "c"]}
type_text: Type text. Args: {"text": "hello"}
scroll: Scroll wheel. Args: {"amount": -500}
batch: Execute multiple input actions sequentially. Args: {"actions": [...]}
3. File & System Operations
fs_list: List directory contents. Args: {"path": "/"}
fs_read: Read a file (prints raw contents to stdout). Use --out path/to/save.bin to save binary files. Args: {"path": "/hello.txt"}
fs_write: Write to a file. Args: {"path": "/hello.txt", "content": "hello world"}. Or use --file path/to/local.bin to upload a local binary file.
fs_mkdir: Create a directory. Args: {"path": "/newdir"}
fs_delete: Delete a file or directory. Args: {"path": "/newdir", "recursive": true}
fs_move: Move or rename. Args: {"from": "/src", "to": "/dst"}
shell_exec: Run a shell command on the Windows host. Args: {"command": "dir", "args": ["/w"], "workingDir": ""}
Operation Strategy
Operational Best Practices
- Prefer Keyboard & Shell: To minimize errors from visual coordinate estimation, prioritize using keyboard shortcuts (
key_combo, type_text) or shell commands (shell_exec) over mouse operations whenever possible.
- Targeted Mouse Usage: Reserve precise mouse operations (
mouse_click, mouse_move, mouse_drag) strictly for necessary UI interactions (e.g., clicking a specific button on a web page, navigating a software interface, or focusing an input field).
- Scrolling: Using
mouse_scroll is safe and recommended for navigating long pages or documents.
Security Best Practices
- Verify File Paths: Always confirm the target path is within the intended sandbox directory. The server enforces isolation, but double-check paths in scripts.
- Audit Shell Commands: Review
shell_exec commands before execution. Avoid running commands from untrusted sources.
- File Transfer Restrictions: Only upload/download files you trust. Do not use
--file with sensitive credentials or system files.
- Minimize Screen Captures: Avoid capturing screens if sensitive information (passwords, tokens, personal data) may be visible.
- Explicit Deletion Confirmation: Review the target path carefully before executing
fs_delete. Deleted files cannot be recovered.
Examples
Focus MS Edge and type:
python3 scripts/clawdos.py window_focus --args '{"processName": "msedge"}'
python3 scripts/clawdos.py type_text --args '{"text": "https://openclaw.ai\n"}'
Take a screenshot and save it locally:
python3 scripts/clawdos.py screen_capture --out /tmp/windows_screen.png --args '{"format":"png"}'
Read a file from Windows:
python3 scripts/clawdos.py fs_read --args '{"path": "logs/app.log"}'
Execute PowerShell on Windows:
python3 scripts/clawdos.py shell_exec --args '{"command": "powershell", "args": ["-Command", "Get-Process"]}'
1---2name: clawdos3description: Windows automation via Clawdos API: screen capture, mouse/keyboard input, window management, file-system operations, and shell command execution. Standalone CLI execution via Python script. Use when the user wants to control or inspect a Windows host remotely.4---56# Clawdos78## Overview910This skill exposes a CLI wrapper around the Clawdos REST API, allowing you to operate a Windows machine securely from OpenClaw via shell commands.11Instead of loading tools, use `exec` to call the standalone python script `scripts/clawdos.py`.1213### ⚠️ SECURITY & SANDBOX MECHANISM1415**File System Sandbox Protection:**16- All file system operations (`fs_list`, `fs_read`, `fs_write`, `fs_delete`, `fs_move`) are **restricted to a sandboxed root directory** on the Windows host.17- The sandbox root is configured via the `CLAWDOS_FS_ROOT_ID` environment variable and enforced server-side.18- **The Clawdos service prevents access to files outside the designated sandbox directory.** Path traversal attempts (e.g., `../../../`) are blocked.19- This isolation ensures that skill operations cannot accidentally or intentionally access sensitive system files, user documents, or configuration outside the permitted scope.2021**Network Isolation:**22- The Clawdos service only communicates with the configured `CLAWDOS_BASE_URL` and does not establish unauthorized external connections.23- All API calls are authenticated via `CLAWDOS_API_KEY` and encrypted over HTTPS when applicable.2425### ⚠️ AUTHORIZATION & CAPABILITY WARNINGS2627This skill grants access to **powerful Windows automation capabilities**. Users must explicitly understand and authorize the following operations:28291. **Shell Command Execution** (`shell_exec`)30 - Can execute arbitrary PowerShell or cmd commands on the Windows host.31 - Even within the sandbox, commands can potentially modify system state, install software, or alter configurations.32 - **Only use with trusted sources and explicit user approval.**33342. **File Deletion** (`fs_delete`)35 - Permanently removes files and directories within the sandbox.36 - No recovery mechanism exists once deleted.37 - **Exercise extreme caution; confirm deletion intent before execution.**38393. **File Upload/Download** (`--file`, `--out`)40 - The CLI script can read local files and upload them to the Windows host (within sandbox).41 - The script can download remote files from the Windows host to the agent system.42 - **Do not use with sensitive files or untrusted remote systems.**43444. **Persistent Screen/Window Monitoring**45 - Visual actions (`screen_capture`, `window_list`, `window_focus`) can observe active GUI content.46 - If sensitive information is visible on screen, it may be captured.4748### ⚠️ Requirements49**This skill requires a corresponding server running on your Windows host.**50Ensure the Windows host is running `danzig233/clawdos`. The connection parameters (`CLAWDOS_BASE_URL` and `CLAWDOS_API_KEY`) must be configured via OpenClaw's skill configuration UI or environment variables, as specified in this file's metadata.5152## Usage5354You interact with Clawdos by running the `scripts/clawdos.py` CLI using the `exec` tool. The script will automatically pick up the `CLAWDOS_BASE_URL` and `CLAWDOS_API_KEY` environment variables injected by OpenClaw.5556**Basic Syntax:**57```bash58python3 ~/.nvm/versions/node/v22.22.1/lib/node_modules/openclaw/skills/clawdos/scripts/clawdos.py <action> --args '{"key":"value"}'59```6061### Available Actions6263#### 1. Visual Navigation & System Check64- `health`: Check service status.65- `get_env`: Get screen resolution, DPI scale, and active window.66- `window_list`: List all open windows.67- `window_focus`: Focus a window. Args: `{"titleContains": "..."}` or `{"processName": "..."}`68- `screen_capture`: Take a screenshot. Use `--out path/to/save.png` to save binary. Args: `{"format": "png", "quality": 80}`6970#### 2. Precise Input (Mouse & Keyboard)71*(Prioritize keyboard/shell when possible to avoid visual estimation errors)*72- `click`: Click the mouse. Args: `{"x": 100, "y": 200, "button": "left"}`73- `move`: Move cursor. Args: `{"x": 100, "y": 200}`74- `drag`: Drag mouse. Args: `{"fromX": 100, "fromY": 200, "toX": 300, "toY": 400}`75- `keys`: Press key combos. Args: `{"combo": ["ctrl", "c"]}`76- `type_text`: Type text. Args: `{"text": "hello"}`77- `scroll`: Scroll wheel. Args: `{"amount": -500}`78- `batch`: Execute multiple input actions sequentially. Args: `{"actions": [...]}`7980#### 3. File & System Operations81- `fs_list`: List directory contents. Args: `{"path": "/"}`82- `fs_read`: Read a file (prints raw contents to stdout). Use `--out path/to/save.bin` to save binary files. Args: `{"path": "/hello.txt"}`83- `fs_write`: Write to a file. Args: `{"path": "/hello.txt", "content": "hello world"}`. Or use `--file path/to/local.bin` to upload a local binary file.84- `fs_mkdir`: Create a directory. Args: `{"path": "/newdir"}`85- `fs_delete`: Delete a file or directory. Args: `{"path": "/newdir", "recursive": true}`86- `fs_move`: Move or rename. Args: `{"from": "/src", "to": "/dst"}`87- `shell_exec`: Run a shell command on the Windows host. Args: `{"command": "dir", "args": ["/w"], "workingDir": ""}`8889### Operation Strategy9091### Operational Best Practices92- **Prefer Keyboard & Shell**: To minimize errors from visual coordinate estimation, prioritize using keyboard shortcuts (`key_combo`, `type_text`) or shell commands (`shell_exec`) over mouse operations whenever possible.93- **Targeted Mouse Usage**: Reserve precise mouse operations (`mouse_click`, `mouse_move`, `mouse_drag`) strictly for necessary UI interactions (e.g., clicking a specific button on a web page, navigating a software interface, or focusing an input field). 94- **Scrolling**: Using `mouse_scroll` is safe and recommended for navigating long pages or documents.9596### Security Best Practices97- **Verify File Paths**: Always confirm the target path is within the intended sandbox directory. The server enforces isolation, but double-check paths in scripts.98- **Audit Shell Commands**: Review `shell_exec` commands before execution. Avoid running commands from untrusted sources.99- **File Transfer Restrictions**: Only upload/download files you trust. Do not use `--file` with sensitive credentials or system files.100- **Minimize Screen Captures**: Avoid capturing screens if sensitive information (passwords, tokens, personal data) may be visible.101- **Explicit Deletion Confirmation**: Review the target path carefully before executing `fs_delete`. Deleted files cannot be recovered.102103## Examples104105**Focus MS Edge and type:**106```bash107python3 scripts/clawdos.py window_focus --args '{"processName": "msedge"}'108python3 scripts/clawdos.py type_text --args '{"text": "https://openclaw.ai\n"}'109```110111**Take a screenshot and save it locally:**112```bash113python3 scripts/clawdos.py screen_capture --out /tmp/windows_screen.png --args '{"format":"png"}'114```115116**Read a file from Windows:**117```bash118python3 scripts/clawdos.py fs_read --args '{"path": "logs/app.log"}'119```120121**Execute PowerShell on Windows:**122```bash123python3 scripts/clawdos.py shell_exec --args '{"command": "powershell", "args": ["-Command", "Get-Process"]}'124```