Skip to content

Commit 8565275

Browse files
authored
Merge pull request #2077 from Websoft9/feat/erpnext-kafka-updates-20260312
feat: replace moltbot with openclaw app
2 parents d749cb4 + 89f8fc7 commit 8565275

9 files changed

Lines changed: 197 additions & 124 deletions

File tree

apps/moltbot/.env

Lines changed: 0 additions & 53 deletions
This file was deleted.

apps/moltbot/docker-compose.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

apps/moltbot/variables.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

apps/openclaw/.env

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
W9_REPO=websoft9dev/openclaw
2+
W9_DIST='community'
3+
W9_VERSION='2026.3.11-wecom'
4+
5+
# =========================================================
6+
# Authentication
7+
# W9_POWER_PASSWORD is used as OPENCLAW_GATEWAY_TOKEN
8+
# After startup, paste this token in the Control UI (Settings → Token)
9+
# =========================================================
10+
W9_POWER_PASSWORD=1PrMxExC45LsCT
11+
12+
# =========================================================
13+
# Ports
14+
# W9_HTTP_PORT_SET: host port for Gateway Control UI + WS API (internal: 18789)
15+
# W9_BRIDGE_PORT_SET: host port for browser/bridge control service (internal: 18790)
16+
# Access Control UI: http://localhost:$W9_HTTP_PORT_SET/
17+
# =========================================================
18+
W9_HTTP_PORT_SET='9001'
19+
W9_BRIDGE_PORT_SET='18790'
20+
21+
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
22+
23+
# =========================================================
24+
# System (managed by Websoft9, do not modify)
25+
# =========================================================
26+
W9_ID='openclaw'
27+
W9_HTTP_PORT=18789
28+
W9_BRIDGE_PORT=18790
29+
W9_URL='internet_ip:$W9_HTTP_PORT_SET'
30+
W9_NETWORK=websoft9
31+
32+
#### ---------------------------------------------------------------------------- ####
33+
34+
# =========================================================
35+
# Application-specific settings
36+
# =========================================================
37+
38+
# Gateway token (= W9_POWER_PASSWORD). Paste in Control UI → Settings → Token
39+
OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
40+
41+
# Gateway bind mode. 'lan' is required for Docker port mapping to work.
42+
OPENCLAW_GATEWAY_BIND=lan
43+
44+
# Allow insecure private WebSocket connections (leave empty unless needed)
45+
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=
46+
47+
# =========================================================
48+
# AI Providers (国内主流大模型 API 配置)
49+
# 填写任意一个模型的 API Key 即可启用,支持多个同时配置
50+
# W9_*_SET 变量会在应用商店 UI 中显示,用户可直接填写
51+
# =========================================================
52+
53+
# DeepSeek — 国产高性价比大模型
54+
# Get key: https://platform.deepseek.com/api_keys
55+
W9_DEEPSEEK_API_KEY_SET=
56+
57+
# 百度文心一言 (Baidu ERNIE)
58+
# Get key: https://console.bce.baidu.com/qianfan/ais/console/applicationConsole/application
59+
W9_BAIDU_API_KEY_SET=
60+
W9_BAIDU_SECRET_KEY_SET=
61+
62+
# 阿里通义千问 (Alibaba Qwen)
63+
# Get key: https://dashscope.console.aliyun.com/apiKey
64+
W9_ALIBABA_API_KEY_SET=
65+
66+
# Moonshot/Kimi — 长文本专家 (200K context)
67+
# Get key: https://platform.moonshot.cn/console/api-keys
68+
W9_MOONSHOT_API_KEY_SET=
69+
70+
# ─────────────────────────────────────────────────────────
71+
# 企业微信 (WeCom) — @sunnoy/wecom (社区增强插件)
72+
# ─────────────────────────────────────────────────────────
73+
# WebSocket 长连接模式,无需回调 URL 和 Token/AESKey
74+
# 创建位置: 企业微信管理后台 → 应用管理 → 智能机器人 → 创建机器人 → 长连接模式
75+
# 参考文档: https://open.work.weixin.qq.com/help2/pc/cat?doc_id=21657
76+
W9_WECOM_BOT_ID_SET=
77+
W9_WECOM_BOT_SECRET_SET=
78+
79+
# 私聊准入策略: open=所有成员免审批 | pairing=新用户需管理员approve | disabled=禁用私聊
80+
W9_WECOM_DM_POLICY_SET=open
81+
82+
# 自建应用 (Agent) — 可选,用于发送文件/图片/主动推送到部门/标签
83+
# 创建位置: 企业微信管理后台 → 应用管理 → 自建 → 创建应用
84+
# 注意: 需在「企业可信IP」中添加服务器 IP,无需配置接收消息回调
85+
W9_WECOM_AGENT_CORP_ID_SET=
86+
W9_WECOM_AGENT_SECRET_SET=
87+
W9_WECOM_AGENT_ID_SET=
File renamed without changes.
File renamed without changes.

apps/openclaw/docker-compose.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# image: https://github.com/openclaw/openclaw/pkgs/container/openclaw
2+
# docs: https://docs.openclaw.ai/install/docker
3+
4+
services:
5+
openclaw:
6+
image: $W9_REPO:$W9_VERSION
7+
container_name: $W9_ID
8+
restart: unless-stopped
9+
init: true
10+
user: root
11+
entrypoint: [ "/docker-entrypoint.sh" ]
12+
command: [ "node", "dist/index.js", "gateway", "--bind", "${OPENCLAW_GATEWAY_BIND:-lan}", "--port", "18789" ]
13+
ports:
14+
- $W9_HTTP_PORT_SET:18789
15+
- $W9_BRIDGE_PORT_SET:18790
16+
env_file: .env
17+
environment:
18+
- HOME=/home/node
19+
- TERM=xterm-256color
20+
- OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
21+
- OPENCLAW_GATEWAY_BIND=${OPENCLAW_GATEWAY_BIND}
22+
- OPENCLAW_GATEWAY_PORT=18789
23+
- OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
24+
volumes:
25+
- openclaw_agents:/home/node/.openclaw/agents
26+
- openclaw_workspace:/home/node/.openclaw/workspace
27+
- openclaw_canvas:/home/node/.openclaw/canvas
28+
- openclaw_cron:/home/node/.openclaw/cron
29+
- openclaw_queue:/home/node/.openclaw/delivery-queue
30+
- ./src/init.js:/init.js:ro
31+
healthcheck:
32+
test:
33+
- "CMD"
34+
- "node"
35+
- "-e"
36+
- "fetch('http://127.0.0.1:18789/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
37+
interval: 30s
38+
timeout: 10s
39+
retries: 3
40+
start_period: 30s
41+
42+
# Optional CLI service for channel setup and management commands.
43+
# Not started by default. Usage:
44+
# docker compose --profile cli run --rm openclaw-cli channels login
45+
# docker compose --profile cli run --rm openclaw-cli config set <key> <value>
46+
# docker compose --profile cli run --rm openclaw-cli devices list
47+
openclaw-cli:
48+
image: $W9_REPO:$W9_VERSION
49+
container_name: ${W9_ID}-cli
50+
network_mode: "service:openclaw"
51+
profiles:
52+
- cli
53+
cap_drop:
54+
- NET_RAW
55+
- NET_ADMIN
56+
security_opt:
57+
- no-new-privileges:true
58+
environment:
59+
- HOME=/home/node
60+
- TERM=xterm-256color
61+
- OPENCLAW_GATEWAY_TOKEN=$W9_POWER_PASSWORD
62+
- OPENCLAW_GATEWAY_BIND=${OPENCLAW_GATEWAY_BIND}
63+
- OPENCLAW_ALLOW_INSECURE_PRIVATE_WS=${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
64+
- BROWSER=echo
65+
volumes:
66+
- openclaw_agents:/home/node/.openclaw/agents
67+
- openclaw_workspace:/home/node/.openclaw/workspace
68+
- openclaw_canvas:/home/node/.openclaw/canvas
69+
- openclaw_cron:/home/node/.openclaw/cron
70+
- openclaw_queue:/home/node/.openclaw/delivery-queue
71+
stdin_open: true
72+
tty: true
73+
init: true
74+
entrypoint: [ "node", "dist/index.js" ]
75+
depends_on:
76+
- openclaw
77+
78+
volumes:
79+
openclaw_agents:
80+
openclaw_workspace:
81+
openclaw_canvas:
82+
openclaw_cron:
83+
openclaw_queue:
84+
85+
86+
networks:
87+
default:
88+
name: ${W9_NETWORK}
89+
external: true
File renamed without changes.

apps/openclaw/variables.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "openclaw",
3+
"trademark": "OpenClaw",
4+
"release": true,
5+
"fork_url": "https://github.com/openclaw/openclaw",
6+
"version_from": "https://github.com/openclaw/openclaw/releases",
7+
"edition": [
8+
{
9+
"dist": "community",
10+
"version": [
11+
"2026.3.11-wecom"
12+
]
13+
}
14+
],
15+
"requirements": {
16+
"cpu": "2",
17+
"memory": "2",
18+
"disk": "10",
19+
"url": "https://openclaw.ai"
20+
}
21+
}

0 commit comments

Comments
 (0)