Install
openclaw skills install @lunrenyi/x-mirrorx-mirror is a comprehensive mirror source management tool for various package managers. Use this skill whenever users need to configure, switch, or query package manager download mirrors. This skill handles: setting up and switching mirrors for package managers (pip, npm, brew, apt, go, cargo, gem, etc.), viewing available mirror options, checking current mirror configuration, restoring default official sources, and optimizing download speeds in China regions. Triggered by queries like "set npm mirror", "change pip source", "npm mirror speed", "pip Tsinghua mirror", "brew Chinese mirror", "x mirror apt", "how to speed up npm download", "configure pip mirror", "switch npm registry", or any request related to package manager mirrors, registry settings, or download acceleration. This skill is essential for developers in China or anyone needing to optimize package download speeds.
openclaw skills install @lunrenyi/x-mirrorLoad x-cmd before use:
. ~/.x-cmd.root/X
x-cmd not installed? → data/install.md
x mirror <pkgmgr> lsx mirror <pkgmgr> set <mirror-name>x mirror <pkgmgr> currentx mirror <pkgmgr> unset| Command | Description |
|---|---|
| apt | Debian/Ubuntu |
| brew | Homebrew |
| pacman | Arch Linux |
| dnf | Fedora/RHEL |
| yum | CentOS/RHEL |
| apk | Alpine Linux |
| Command | Description |
|---|---|
| pip | Python |
| npm | Node.js |
| pnpm | Node.js |
| yarn | Node.js |
| go | Go modules |
| cargo | Rust |
| gem | Ruby |
| Command | Description |
|---|---|
| docker | Docker registry |
x mirror npm ls
x mirror pip ls
x mirror brew ls
x mirror npm set npmmirror # Set npm to use Alibaba Cloud mirror
x mirror pip set tuna # Set pip to use Tsinghua mirror
x mirror brew set tuna # Set brew to use Tsinghua mirror
x mirror npm current
x mirror pip current
x mirror npm unset
x mirror pip unset
x mirror npm lsx mirror pip set tunax mirror brew currentx mirror npm unsetRun x mirror --help or x mirror <subcmd> --help for full documentation.