Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

openclaw-launcherOpenClaw launcher 效率

Agent Skill

openclaw-launcher 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,584

周安装

145

GitHub Stars

公开资料未说明

下载量

1,125
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-launcher(OpenClaw launcher 效率)
来源仓库:https://github.com/kevinl1993/openclaw-launcher
安装命令:
openclaw skills install openclaw-launcher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-launcher

简介

OpenClaw launcher 创建 Windows 快捷方式一键启动 WSL 上的 OpenClaw。

  • 适用于简化跨平台启动流程与提升用户体验场景。openclaw-launcher 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 通过 clawhub 安装后生成桌面图标与批处理脚本。
  • 需确认 WSL 环境已正确配置并授予执行权限。
  • 建议定期检查脚本路径有效性以防快捷方式失效。

SKILL.md

name
openclaw-launcher
description
|

OpenClaw Launcher

Prerequisites

One-click startup for OpenClaw Gateway via Windows desktop shortcut.

Prerequisites

  • WSL2 with Ubuntu (or other distro)
  • OpenClaw Gateway installed in WSL as systemd user service
  • Windows PowerShell or PowerShell 7
  • Python with PIL/Pillow (for icon conversion)

Architecture

Desktop Shortcut (.lnk)
    ↓
<USER_SCRIPTS_DIR>\start-openclaw.bat
    ↓
start-openclaw.ps1 (hidden, auto-close)
    ↓
WSL: systemctl start openclaw-gateway + keep-alive sleep
    ↓
Dashboard opens in browser

Path Reference

Important: WSL and Windows paths are different:

SystemPath Example
WindowsC:\Users\<WINDOWS_USER>\openclaw-scripts\
WSL/mnt/c/Users/<WINDOWS_USER>/openclaw-scripts/
WSL home/home/<WSL_USER>/

When working in WSL, use /mnt/c/... prefix to access Windows files. When working in PowerShell on Windows, use C:\... paths.

Note on scripts/ directory: The scripts/ folder contains reference templates. When deploying, these are copied to C:\Users\<WINDOWS_USER>\openclaw-scripts\ with actual usernames substituted. Always use the Python method to generate scripts on the user's machine (see Step 3).

Step-by-Step Workflow

Step 1: Gather System Info

Auto-detect Windows username:

$WindowsUser = $env:USERNAME
Write-Host "Windows user: $WindowsUser"

Get WSL distro name (in Windows CMD or PowerShell):

wsl --list

Get WSL username (in WSL terminal):

whoami

Default shortcut name: Ask user or use "OpenClaw"

Step 2: Create Scripts Directory

In Windows PowerShell (as user, no admin needed):

New-Item -ItemType Directory -Path "C:\Users\<WINDOWS_USER>\openclaw-scripts" -Force

Replace <WINDOWS_USER> with actual Windows username, or use $env:USERNAME.

Or from WSL:

mkdir -p /mnt/c/Users/<WINDOWS_USER>/openclaw-scripts

Step 3: Write Core Script (start-openclaw.ps1)

⚠️ Important: Always write .ps1 files using Python (not bash heredocs) to avoid escaping issues.

Key variables to customize:

  • $WslDistro: WSL distro name (e.g., "Ubuntu")
  • $WslUser: WSL username (from whoami)

Step 3a: Write keep-alive.bat first (required for reliable backgrounding)

content = '@echo off\
start "" /b cmd /c wsl.exe --distribution Ubuntu --user <WSL_USER> -- bash -c "sleep 86400"\
'
with open('/mnt/c/Users/<WINDOWS_USER>/openclaw-scripts/keep-alive.bat', 'w', encoding='ascii') as f:
    f.write(content)

Step 3b: Write start-openclaw.ps1 using Python

lines = [
    '# OpenClaw Gateway Launcher Script (Hidden Mode)',
    '',
    '$wslConfig = cmd /c "wsl.exe --distribution Ubuntu --user <WSL_USER> -- cat ~/.openclaw/openclaw.json 2>&1"',
    '$tokenMatch = [regex]::Match($wslConfig, "[a-f0-9]{40}")',
    'if ($tokenMatch.Success) {',
    '    $TOKEN = $tokenMatch.Value',
    '} else {',
    '    Write-Host "[ERROR] Failed to read token from WSL config"',
    '    exit 1',
    '}',
    '$DASHBOARD_URL = "http://localhost:18789/#token=$TOKEN"',
    '',
    '# Get WSL IP',
    '$wslIpRaw = cmd /c "wsl.exe --distribution Ubuntu --user <WSL_USER> -- hostname -I 2>&1"',
    '$wslIp = ($wslIpRaw -split " ")[0]',
    '',
    '# Setup port proxy (requires admin)',
    'cmd /c "netsh interface portproxy delete v4tov4 listenport=18789 listenaddress=127.0.0.1 2>nul"',
    'cmd /c "netsh interface portproxy add v4tov4 listenport=18789 listenaddress=127.0.0.1 connectport=18789 connectaddress=$wslIp protocol=tcp 2>nul"',
    '',
    '# Check and start service if needed',
    '$status = cmd /c "wsl.exe --distribution Ubuntu --user <WSL_USER> -- systemctl --user is-active openclaw-gateway 2>&1"',
    'if ($status -ne "active") {',
    '    cmd /c "wsl.exe --distribution Ubuntu --user <WSL_USER> -- systemctl --user start openclaw-gateway 2>nul"',
    '    Start-Sleep -Seconds 3',
    '}',
    '',
    '# Start keep-alive via pre-created batch file (more reliable than inline Start-Process)',
    'Start-Process -FilePath "cmd.exe" -ArgumentList "/c","C:\\Users\\<WINDOWS_USER>\\openclaw-scripts\\keep-alive.bat" -WindowStyle Hidden',
    '',
    '# Open Dashboard',
    'start $DASHBOARD_URL',
]

content = '\
'.join(lines)
with open('/mnt/c/Users/<WINDOWS_USER>/openclaw-scripts/start-openclaw.ps1', 'wb') as f:
    f.write(b'\ï\»\¿')  # UTF-8 BOM for PowerShell
    f.write(content.encode('utf-8'))

Step 4: Write Bat Launcher

$batContent = '@echo off
chcp 65001 >nul
powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File "%~dp0start-openclaw.ps1"'

Set-Content -Path "C:\Users\<WINDOWS_USER>\openclaw-scripts\start-openclaw.bat" -Value $batContent -Encoding ASCII

Note: The .bat must use -ExecutionPolicy Bypass to allow the script to run without prompts.

Step 5: Prepare Icon (Optional)

  1. Get PNG image (256x256 or larger)
  2. Copy to Windows scripts folder or accessible location
  3. Convert to ICO using Python in WSL:
# If PNG is at Windows path (accessible from WSL):
python3 -c "
from PIL import Image
img = Image.open('/mnt/c/Users/<WINDOWS_USER>/Desktop/icon.png')
img = img.resize((256, 256), Image.Resampling.LANCZOS)
img.save('/mnt/c/Users/<WINDOWS_USER>/openclaw-scripts/icon.ico', format='ICO')
"

Step 6: Create Desktop Shortcut

$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("C:\Users\<WINDOWS_USER>\Desktop\<SHORTCUT_NAME>.lnk")
$Shortcut.TargetPath = "C:\Users\<WINDOWS_USER>\openclaw-scripts\start-openclaw.bat"
$Shortcut.WorkingDirectory = "C:\Users\<WINDOWS_USER>\openclaw-scripts"
$Shortcut.IconLocation = "C:\Users\<WINDOWS_USER>\openclaw-scripts\icon.ico"
$Shortcut.Save()

Step 7: Test

  1. Double-click shortcut
  2. Verify: No visible PowerShell window
  3. Verify: Browser opens dashboard URL
  4. Verify: Gateway is active:
   systemctl --user is-active openclaw-gateway
  1. Verify: Keep-alive process running (in WSL):
   ps aux | grep "sleep 86400"

Should show a sleep 86400 process owned by your user.

Step 8: Verify No "Gateway Stopping" Issues

If gateway stops immediately after script runs, check:

  1. Is keep-alive process running? (ps aux | grep sleep)
  2. If not, the batch file path in Start-Process may be wrong
  3. Try running the script with admin privileges for portproxy

Troubleshooting

"Gateway disconnected" / "Gateway stopping" immediately

Cause: Keep-alive process dies when PowerShell exits Fix: Use a pre-created batch file for keep-alive, not inline Start-Process. See Step 3 script template.

Keep-alive process not running after script exits

Cause: Start-Process -WindowStyle Hidden creates a process that dies when PowerShell exits Fix: The keep-alive must be a separate .bat file started via cmd /c:

# In start-openclaw.ps1:
Start-Process -FilePath "cmd.exe" -ArgumentList "/c","C:\Users\<WINDOWS_USER>\openclaw-scripts\keep-alive.bat" -WindowStyle Hidden

And pre-create keep-alive.bat:

@echo off
start "" /b cmd /c wsl.exe --distribution Ubuntu --user <WSL_USER> -- bash -c "sleep 86400"

Token extraction fails / $Matches is empty

Cause: Two issues:

  1. Regex matches "mode": "token" before actual token field
  2. $Matches doesn't populate correctly after cmd /c calls

Fix: Use [regex]::Match() with 40-char hex pattern:

$wslConfig = cmd /c "wsl.exe --distribution Ubuntu --user <WSL_USER> -- cat ~/.openclaw/openclaw.json 2>&1"
$tokenMatch = [regex]::Match($wslConfig, "[a-f0-9]{40}")
if ($tokenMatch.Success) {
    $TOKEN = $tokenMatch.Value
}

PowerShell script parsing errors after editing

Cause: Bash/WSL heredoc escaping corrupts PowerShell syntax (especially backticks \s, $, etc.) Fix: Write PowerShell files using Python, not bash heredocs:

content = '''# PowerShell content here
$var = "value"
'''
with open('/mnt/c/Users/.../script.ps1', 'wb') as f:
    f.write(b'\ï\»\¿')  # UTF-8 BOM
    f.write(content.encode('utf-8'))

PowerShell shows "unexpected token" errors

Cause: File encoding issues or special characters not handled Fix: Always write PowerShell scripts with UTF-8 BOM encoding (-Encoding UTF8 in PowerShell, or b'\ï\»\¿' in Python)

"Script moved or changed" when clicking shortcut

Cause: Shortcut points to WSL UNC path (\\wsl$\...) Fix: Scripts must be in Windows-native path (C:\Users\...\openclaw-scripts\)

Icon not displaying correctly

Cause: Shortcut references .png instead of .ico, or wrong path Fix: Convert PNG to ICO, verify IconLocation path exists

Portproxy connection refused

Cause: Gateway only listens on 127.0.0.1, or portproxy not set up Fix:

  1. Run script as Administrator (portproxy requires admin)
  2. Or manually verify:
netsh interface portproxy show all

WSL commands fail silently

Cause: PowerShell & operator doesn't handle spaces well Fix: Always use cmd /c "wsl.exe ..." pattern

WSL distro not found

Cause: Distro name spelling is wrong Fix: List all distros:

wsl --list --verbose

Debugging script issues from WSL

When troubleshooting PowerShell scripts, run directly via:

/mnt/c/Windows/System32/cmd.exe /c "cd /d C:\\Users\\<WINDOWS_USER>\\openclaw-scripts && powershell -ExecutionPolicy Bypass -File start-openclaw.ps1"

Security Notes

  • Token is read dynamically from WSL config at runtime
  • Never hardcode tokens or credentials
  • Keep scripts in user-private directory
  • Portproxy only exposes local loopback

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.56%
按下载量换算816

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills