China Mirror Accelerator for Openclaw

A performance-focused skill that automatically injects trusted Chinese mirror parameters into installation and download commands.

xiaomiba0904
v3.0.0
Apr 1, 2026
0
738
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install china-mirror

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install china-mirror using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is China Mirror Accelerator?

The China Mirror skill is a specialized utility designed to eliminate the latency and connectivity issues often encountered by developers in mainland China. By integrating with Openclaw Skills, it provides an automated layer that detects commands likely to trigger network downloads and appends the most reliable regional mirror parameters. This ensures that whether you are installing a single library or provisioning an entire server, your connection remains stable and fast.

This skill prioritizes security and reliability by exclusively utilizing mirror sources backed by major technology corporations and top-tier academic institutions. By using Openclaw Skills to manage these configurations, developers can focus on writing code rather than troubleshooting network timeouts or manually searching for valid registry URLs.

China Mirror Accelerator Use Cases

  • Accelerating npm, pnpm, and yarn package installations for web development.
  • Speeding up Python dependency management with pip, uv, or poetry using Tsinghua mirrors.
  • Optimizing Docker image pulls and system-level updates for Ubuntu, Debian, and CentOS.
  • Configuring high-speed downloads for version managers like nvm, pyenv, and rustup.
  • Automating the setup of localized registries for Go, Rust, Flutter, and .NET projects.

How China Mirror Accelerator Works

  1. The AI agent monitors user-initiated commands to identify those that trigger network downloads, such as install, pull, or clone.
  2. The skill cross-references the detected tool against a curated database of verified mirrors within the Openclaw Skills ecosystem.
  3. It intelligently selects the most appropriate mirror based on the tool type (e.g., Alibaba for npm, Tsinghua for Python).
  4. The command is dynamically modified to include the necessary registry flags or environment variables before execution.
  5. The agent presents the optimized command to the user, ensuring the download proceeds via the fastest available path.

China Mirror Accelerator Setup

To utilize this skill, ensure it is enabled in your AI agent configuration. The skill operates automatically on command generation. For users wanting to set persistent environment variables recommended by Openclaw Skills, you can use the following commands:

# Set Node.js mirror via environment variable
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/

# Set Python mirror for pip globally
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

China Mirror Accelerator Data Schema & Taxonomy

The skill organizes mirror data by tool category and provider reliability. Below is the primary mapping schema:

Tool Category Primary Mirror Provider Registry / Source URL
JavaScript (npm/pnpm) Alibaba (npmmirror) https://registry.npmmirror.com
Python (pip/uv) Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple
Linux (apt/yum) Alibaba Cloud mirrors.aliyun.com
Containers (Docker) Tencent Cloud mirror.ccs.tencentyun.com
Rust (Cargo) ByteDance (rsproxy) https://rsproxy.cn/

China Mirror Accelerator Advanced Features

  • Context-aware detection for indirect download triggers like build and run scripts.
  • Security-hardened source selection that strictly excludes unverified or anonymous mirrors.
  • Support for temporary environment variable injection (e.g., prefixing commands with GOPROXY).
  • Automatic fallback logic to alternative mirrors if a primary source is unreachable.
  • Deep integration with Openclaw Skills to maintain up-to-date registry URLs for dozens of package managers.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*