-
Notifications
You must be signed in to change notification settings - Fork 0
WSL
On Windows, spin up a throwaway Linux distro on demand to run Linux software, then tear it down. By default a tiny Alpine minirootfs (a few MB) is downloaded and imported in seconds — your existing distros are never touched.
All wsl.exe calls run with WSL_UTF8=1 for clean output.
wsl_list_distros {}Download the latest Alpine minirootfs and import it:
wsl_create_temp {}Returns {name, install_dir, source: "alpine", version}. The auto name looks like
llcu-tmp-1782754365-53b8.
Alternatives:
Clone an existing distro (export + import):
wsl_create_temp { "clone_from": "Ubuntu-24.04" }Import a specific rootfs:
wsl_create_temp { "rootfs_url": "https://.../rootfs.tar.gz" }wsl_create_temp { "base_tar": "C:\\path\\to\\rootfs.tar" }wsl_run { "distro": "llcu-tmp-1782754365-53b8", "command": "cat /etc/os-release; uname -a" }Install packages and run something (Alpine uses apk):
wsl_run { "distro": "llcu-tmp-1782754365-53b8", "command": "apk add --no-cache curl && curl --version" }Optional user, cwd, timeout parameters are supported.
List throwaway distros from this session:
wsl_list_temp {}Destroy one (irreversible — terminates and unregisters the distro, deletes files):
wsl_destroy { "name": "llcu-tmp-1782754365-53b8" }Destroy everything this session created:
wsl_destroy_all_temp {}- Requires WSL installed on the Windows host (
wsl --install).wsl_statusreports the version and availability. - Throwaway distros live under
%LOCALAPPDATA%\lowlevel-cu-wsl\<name>. - Always destroy when done to reclaim disk.
lowlevel-computer-use-mcp · MIT License ·
Getting started
Reference
Features
More
wsl_status {}