forked from baibairui/WoClaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (69 loc) · 3.21 KB
/
.env.example
File metadata and controls
74 lines (69 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
PORT=3000
# WeCom integration (optional, enabled by default)
WECOM_ENABLED=true
# WeCom app credentials
WEWORK_CORP_ID=wwxxxxxxxxxxxxxxxx
WEWORK_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
WEWORK_AGENT_ID=1000002
WEWORK_TOKEN=your_callback_token
WEWORK_ENCODING_AES_KEY=your_43_char_encoding_aes_key
# Codex runtime
CODEX_BIN=codex
# 默认模型(可选),例如:gpt-5-codex
# CODEX_MODEL=gpt-5-codex
# 是否默认开启联网搜索(可被 /search on|off 按用户覆盖)
CODEX_SEARCH=false
CODEX_WORKDIR=/absolute/path/to/your/project
# 可选:workspace 发布命令的运行根目录(默认当前进程工作目录)
# GATEWAY_ROOT_DIR=/absolute/path/to/gateway/root
# 可选:当飞书长连接模式下需要生成公网可访问回调链接时,设置网关对外访问地址
# GATEWAY_PUBLIC_BASE_URL=https://your-domain.example.com
# full-auto (sandbox) | none (dangerous)
CODEX_SANDBOX=full-auto
# off | bwrap。bwrap 会把 Codex 进程限制在当前 agent 工作目录可见视图内。
CODEX_WORKDIR_ISOLATION=off
# 系统后台记忆管家,默认开启,每 1 小时运行一次
MEMORY_STEWARD_ENABLED=true
MEMORY_STEWARD_INTERVAL_HOURS=1
# Gateway 内置浏览器 MCP 默认开启;只有你明确不需要浏览器自动化时再设为 false
# BROWSER_MCP_ENABLED=false
# 可选:gateway 内置 browser MCP 监听端口,默认 8931
# BROWSER_MCP_PORT=8931
# 可选:共享浏览器 profile 目录;留空时默认使用 .data/browser/profile
# BROWSER_MCP_PROFILE_DIR=/absolute/path/to/shared-browser-profile
RUNNER_ENABLED=true
# 固定超时(毫秒)。留空则启用自适应超时
# COMMAND_TIMEOUT_MS=300000
# 自适应超时参数:min + prompt长度*per_char,最终限制在 [min, max]
COMMAND_TIMEOUT_MIN_MS=180000
COMMAND_TIMEOUT_MAX_MS=900000
COMMAND_TIMEOUT_PER_CHAR_MS=80
# Security/traffic control
# * means allow all. or comma-separated user ids like: zhangsan,lisi
ALLOW_FROM=*
DEDUP_WINDOW_SECONDS=60
RATE_LIMIT_MAX_MESSAGES=20
RATE_LIMIT_WINDOW_SECONDS=60
# WeCom API timeout
API_TIMEOUT_MS=15000
# 本地超时(AbortError)是否继续重试发送;默认 false,避免首请求已成功时重复发送
API_RETRY_ON_TIMEOUT=false
# Feishu integration (optional)
FEISHU_ENABLED=false
FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxx
# 可选:覆盖默认的 DocX 返回链接前缀;留空时系统默认使用 https://feishu.cn/docx
# FEISHU_DOC_BASE_URL=https://your-domain.feishu.cn/docx
# 可选:固定的项目迭代 DocX 文档引用(支持 document_id / token / url),用于每轮自动追加迭代记录
# FEISHU_ITERATION_DOCX_REF=https://feishu.cn/docx/EChBdybp4oCAf2x6VqqcXQhmnvh
# 兼容旧配置:仅填 document_id 也可继续使用
# FEISHU_ITERATION_DOCX_ID=EChBdybp4oCAf2x6VqqcXQhmnvh
# Enable Feishu long connection (WSClient + EventDispatcher).
# When true, webhook endpoint /feishu/callback will be disabled.
FEISHU_LONG_CONNECTION=false
# Recommended: set Event Subscription verification token
# Required for webhook mode; long connection mode can leave it empty
FEISHU_VERIFICATION_TOKEN=your_feishu_verification_token
# Whether group chats require @ bot to trigger handling. Default true.
FEISHU_GROUP_REQUIRE_MENTION=true
FEISHU_API_TIMEOUT_MS=15000