wsl-windows-bridge

WSL ↔ Windows cross-system bridge for OpenClaw agents. Provides win-python / win-ps / win-cmd / win-copy / win-run-py / win-path to invoke Windows Python (Anaconda), execute PowerShell/CMD commands, and read/write Windows files from WSL2. Ideal for quantitative trading (QMT/xtquant), cross-system file operations, and Windows environment scripting.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "wsl-windows-bridge" with this command: npx skills add deaconhan/wsl-windows-bridge

WSL ↔ Windows Cross-System Bridge

Seamless access to Windows Python, PowerShell, CMD, and filesystem from WSL2.

Features

CommandPurpose
win-pythonInvoke Windows Python (Anaconda or any)
win-psExecute PowerShell commands
win-cmdExecute CMD commands
win-copyCopy files between WSL and Windows
win-run-pyRun .py scripts with logging
win-pathConvert paths WSL /mnt/* ↔ Windows D:\*

Requirements

  • WSL2 (Ubuntu 20.04+)
  • Windows 10 or Windows 11
  • Windows Python (Anaconda recommended)
  • PowerShell

First-Time Setup

cd ~/.openclaw/workspace/skillpublish/wsl-windows-bridge/scripts/
bash setup.sh

The setup script will:

  1. Auto-detect your Windows Python location (supports /mnt/d, /mnt/c, /mnt/e)
  2. Copy all wrappers to ~/.openclaw/bin/
  3. Generate ~/.openclaw/env.windows.sh with correct paths
  4. Set permissions and run verification

Manual setup (without setup.sh):

cp -r scripts/* ~/.openclaw/bin/
chmod +x ~/.openclaw/bin/win-*
# Then manually edit env.windows.sh to set correct paths

Quick Start

Basic Usage

⚠️ exec non-interactive shell note:

# Recommended for exec environment
source ~/.bashrc && source ~/.openclaw/env.windows.sh && win-python ...

# Or directly (wrappers handle .bashrc internally)
~/.openclaw/bin/win-python ...

Common Scenarios

Invoke Windows Python to run a script:

source ~/.bashrc && source ~/.openclaw/env.windows.sh

# Single-line command
win-python -c "import xtquant; print(xtquant.__version__)"

# Run a script file
win-python "$WIN_SCRIPTS/my_task.py" --arg value

Execute PowerShell:

win-ps "Get-Process python | Select-Object Name,Id | Format-Table"
win-ps "Get-Service | Where-Object {\$_.DisplayName -like '*QMT*'}"

File copy:

win-copy /tmp/result.csv /mnt/d/app/output/result.csv

Path conversion:

win-path /mnt/d/app
# → D:\app

win-path --to-wsl D:\app
# → /mnt/d/app

Quantitative Trading Example (QMT/xtquant)

source ~/.bashrc && source ~/.openclaw/env.windows.sh

# Get HS300 constituent stocks
win-python -c "
from xtquant import xtdata
stocks = xtdata.get_stock_list_in_sector('沪深300')
print(f'HS300: {len(stocks)} stocks')
print(stocks[:5])
"

# Download historical data
win-python -c "
from xtquant import xtdata
xtdata.download_history_data('600000.SH', start_time='20260101', end_time='20260405')
print('Download complete')
"

Environment Variables

VariableDefaultDescription
WIN_ROOT/mnt/dWindows root directory
WIN_ANACONDA/mnt/d/app/anacondaAnaconda installation path
WIN_PYTHON$WIN_ANACONDA/python.exePython executable
WIN_PS.../powershell.exePowerShell path
WIN_SCRIPTS/mnt/d/app/scriptsCommon scripts directory

Troubleshooting

ErrorCauseFix
command not found: win-pythonenv.windows.sh not sourcedsource ~/.bashrc && source ~/.openclaw/env.windows.sh
Permission deniedUAC permissionUse D:\app\ or user directory as target
Chinese garbled logsQMT log encodingIgnore; actual data is correct

File Structure

~/.openclaw/workspace/skillpublish/wsl-windows-bridge/
├── SKILL.md
├── _meta.json
├── README.md
└── scripts/
    ├── setup.sh          ← Auto-install (auto-detects Python path)
    ├── env.windows.sh   ← Template (setup.sh generates actual config)
    ├── win-python
    ├── win-ps
    ├── win-cmd
    ├── win-copy
    ├── win-run-py
    └── win-path

Maintenance

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Claude Chrome

Use Claude Code with Chrome browser extension for web browsing and automation tasks. Alternative to OpenClaw's built-in browser tools.

Registry SourceRecently Updated
Coding

App Builder

Build, edit, and deploy Instant-backed apps using npx instant-cli, create-instant-app (Next.js + Codex), GitHub (gh), and Vercel (vercel). Use when asked to create a new app, modify an existing app, fix bugs, add features, or deploy/update an app. Projects live under ~/apps; always work inside the relevant app folder.

Registry SourceRecently Updated
Coding

Opengraph Io

Extract web data, capture screenshots, scrape content, and generate AI images via OpenGraph.io. Use when working with URLs (unfurling, previews, metadata), capturing webpage screenshots, scraping HTML content, asking questions about webpages, or generating images (diagrams, icons, social cards, QR codes). Triggers: 'get the OG tags', 'screenshot this page', 'scrape this URL', 'generate a diagram', 'create a social card', 'what does this page say about'.

Registry SourceRecently Updated
Coding

Xlsx Pro

Compétence pour manipuler les fichiers Excel (.xlsx, .xlsm, .csv, .tsv). Utiliser quand l'utilisateur veut : ouvrir, lire, éditer ou créer un fichier tableur ; ajouter des colonnes, calculer des formules, formater, créer des graphiques, nettoyer des données ; convertir entre formats tabulaires. Le livrable doit être un fichier tableur. NE PAS utiliser si le livrable est un document Word, HTML, script Python standalone, ou intégration Google Sheets.

Registry SourceRecently Updated
2.1K0Profile unavailable