@yyy9527/openclaw-manager 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -53,6 +53,8 @@ cd /path/to/docker-claw
|
|
|
53
53
|
cp config/openclaw.env.example config/openclaw.env
|
|
54
54
|
cp .env.example .env
|
|
55
55
|
# 编辑 .env 和 config/openclaw.env,填入 GIT_TOKEN、FEISHU_WEBHOOK_URL 等
|
|
56
|
+
# 如希望首次 deploy 自动切到 Qwen,设置:
|
|
57
|
+
# OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=true
|
|
56
58
|
|
|
57
59
|
# 方式 B:仅用包内自带默认配置(需先找到包路径)
|
|
58
60
|
# npm root -g 可查看全局 node_modules 路径,包名 @yyy9527/openclaw-manager
|
|
@@ -158,6 +160,7 @@ npm run ctl -- --config ./config/openclaw.prod.env --env-file ./.env.prod apply-
|
|
|
158
160
|
> 若出现 `Rate limit exceeded`,请先执行 `clawhub login` 再重试 `clawctl sync-skills`。
|
|
159
161
|
> 如果 TUI 报 `No API key found for provider "anthropic"`,先执行 `clawctl apply-config`。
|
|
160
162
|
> 如果 TUI 报 `not connected to gateway`,通常是网关刚重启尚未就绪;`chat-claw` 内置等待逻辑,超时可执行 `clawctl apply-config` 后重试。
|
|
163
|
+
> 若希望首次部署自动避免 anthropic 缺 key 问题,可在配置中开启 `OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=true`。
|
|
161
164
|
|
|
162
165
|
### 非交互切换到厂商 Qwen
|
|
163
166
|
|
package/config/openclaw.env
CHANGED
|
@@ -9,6 +9,7 @@ OPENCLAW_HOME_ROOT=${HOME}/openclaws
|
|
|
9
9
|
OPENCLAW_SHARED_SKILLS_DIR=${OPENCLAW_HOME_ROOT}/shared/skills
|
|
10
10
|
OPENCLAW_ENABLE_CLAWHUB_SKILLS=true
|
|
11
11
|
OPENCLAW_CLAWHUB_INSTALL_RETRIES=8
|
|
12
|
+
OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=false
|
|
12
13
|
OPENCLAW_FORCE_OLLAMA_AFTER_APPLY=false
|
|
13
14
|
OPENCLAW_ALLOW_OLLAMA_OVERRIDE=false
|
|
14
15
|
OLLAMA_BASE_URL=http://host.docker.internal:11434
|
|
@@ -27,6 +27,8 @@ OPENCLAW_SHARED_SKILLS_DIR=${OPENCLAW_HOME_ROOT}/shared/skills
|
|
|
27
27
|
OPENCLAW_ENABLE_CLAWHUB_SKILLS=true
|
|
28
28
|
# clawhub 安装重试次数(网络超时时自动重试)
|
|
29
29
|
OPENCLAW_CLAWHUB_INSTALL_RETRIES=8
|
|
30
|
+
# 是否在 deploy 后自动执行 set-qwen + apply-config(默认 false)
|
|
31
|
+
OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=false
|
|
30
32
|
# 是否在 apply-config 后强制回写 Ollama 模型(默认 false)
|
|
31
33
|
OPENCLAW_FORCE_OLLAMA_AFTER_APPLY=false
|
|
32
34
|
# 是否允许执行 bootstrap-models 覆盖当前主模型(默认 false)
|
package/config/openclaw.test.env
CHANGED
|
@@ -9,6 +9,7 @@ OPENCLAW_HOME_ROOT=${HOME}/openclaws
|
|
|
9
9
|
OPENCLAW_SHARED_SKILLS_DIR=${OPENCLAW_HOME_ROOT}/shared/skills
|
|
10
10
|
OPENCLAW_ENABLE_CLAWHUB_SKILLS=false
|
|
11
11
|
OPENCLAW_CLAWHUB_INSTALL_RETRIES=8
|
|
12
|
+
OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=false
|
|
12
13
|
OPENCLAW_FORCE_OLLAMA_AFTER_APPLY=false
|
|
13
14
|
OPENCLAW_ALLOW_OLLAMA_OVERRIDE=false
|
|
14
15
|
OLLAMA_BASE_URL=http://host.docker.internal:11434
|
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@ check_required_vars() {
|
|
|
53
53
|
fi
|
|
54
54
|
: "${OPENCLAW_HOME_ROOT:?OPENCLAW_HOME_ROOT 未配置}"
|
|
55
55
|
OPENCLAW_SHARED_SKILLS_DIR="${OPENCLAW_SHARED_SKILLS_DIR:-${OPENCLAW_HOME_ROOT}/shared/skills}"
|
|
56
|
+
OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY="${OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY:-false}"
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
split_instances() {
|
|
@@ -109,6 +110,14 @@ main() {
|
|
|
109
110
|
i=$((i + 1))
|
|
110
111
|
done
|
|
111
112
|
|
|
113
|
+
if [ "${OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY}" = "true" ]; then
|
|
114
|
+
log "检测到 OPENCLAW_AUTO_SET_QWEN_ON_DEPLOY=true,自动切换到 Qwen 并应用配置"
|
|
115
|
+
OPENCLAW_CONFIG_FILE="${CONFIG_FILE}" OPENCLAW_DOTENV_FILE="${ENV_FILE}" \
|
|
116
|
+
"${PROJECT_ROOT}/scripts/set_qwen_vendor_model.sh"
|
|
117
|
+
OPENCLAW_CONFIG_FILE="${CONFIG_FILE}" OPENCLAW_DOTENV_FILE="${ENV_FILE}" \
|
|
118
|
+
"${PROJECT_ROOT}/scripts/apply_config.sh"
|
|
119
|
+
fi
|
|
120
|
+
|
|
112
121
|
if ! "${PROJECT_ROOT}/scripts/bootstrap_models.sh"; then
|
|
113
122
|
log "模型引导未完全成功,可稍后手动执行:npm run bootstrap-models"
|
|
114
123
|
fi
|