|
| 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= |
0 commit comments