方法 1:每次安装时指定镜像(最简单)
bash
clawhub install 技能名 --registry https://cn.clawhub-mirror.com
例子:
bash
clawhub install opencode-controller --registry https://cn.clawhub-mirror.com
方法 2:永久设置环境变量(一劳永逸)
Mac / Linux
bash
echo 'export CLAWHUB_REGISTRY=https://cn.clawhub-mirror.com' >> ~/.zshrc
source ~/.zshrc
验证是否生效
bash
echo $CLAWHUB_REGISTRY
输出 https://cn.clawhub-mirror.com 就成功了。
之后所有命令自动走国内字节镜像,不限流、速度快:
bash
~ % clawhub install self-improving-agent
✔ OK. Installed self-improving-agent -> /Users/yuzhucu/.openclaw/workspace/skills/self-improving-agent
备用国内镜像(二选一即可)
bash
https://cn.clawhub-mirror.com
https://mirror-cn.clawhub.com