Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
291 lines (270 loc) · 14.1 KB
/
Copy path.env.example
File metadata and controls
291 lines (270 loc) · 14.1 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# ── AI Provider (at least one required) ───────────────────────────────────────
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
OPENROUTER_API_KEY=
GEMINI_API_KEY=
# Bundled DeepSeek plugin. Auto primary is deepseek/deepseek-v4-pro.
# deepseek-chat and deepseek-reasoner were retired and will not connect.
DEEPSEEK_API_KEY=
XAI_API_KEY=
GROQ_API_KEY=
MISTRAL_API_KEY=
CEREBRAS_API_KEY=
VENICE_API_KEY=
MOONSHOT_API_KEY=
KIMI_API_KEY=
MINIMAX_API_KEY=
ZAI_API_KEY=
AI_GATEWAY_API_KEY=
# OPENCODE_ZEN_API_KEY is an alias for OPENCODE_API_KEY.
OPENCODE_API_KEY=
SYNTHETIC_API_KEY=
COPILOT_GITHUB_TOKEN=
XIAOMI_API_KEY=
# ── Deepgram (audio transcription, optional) ─────────────────────────────────
DEEPGRAM_API_KEY=
# ── Amazon Bedrock (uses AWS credential chain) ───────────────────────────────
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=us-east-1
# Used when AWS_REGION is unset. Not written on its own.
# AWS_DEFAULT_REGION=
# Process environment only. configure.js does not copy this into openclaw.json.
# AWS_SESSION_TOKEN=
# BEDROCK_PROVIDER_FILTER=anthropic
# ── Ollama (local models, no API key needed) ─────────────────────────────────
# Set to your Ollama server URL to enable, e.g. http://host.docker.internal:11434
OLLAMA_BASE_URL=
# ── OpenAI-compatible endpoint (LiteLLM, vLLM, LM Studio, LocalAI) ──────────
# BASE_URL and MODEL are both required. There is no default URL or model, so a
# key alone is ignored and is never sent to https://api.openai.com/v1.
# API_KEY is optional. Omit it for LM Studio or vLLM on loopback, private LAN,
# *.local, or host.docker.internal: OpenClaw synthesizes a local credential.
# A bare Docker name (vllm, litellm) is not in that set. Omitting the key there
# writes the non-secret placeholder local-no-auth so the gateway will call the
# server. vLLM ignores it unless started with --api-key. LiteLLM needs its
# master key. Public endpoints need a real key. The key is never logged.
# OPENAI_COMPATIBLE_API_KEY=
# OPENAI_COMPATIBLE_BASE_URL=http://host.docker.internal:4000/v1
# OPENAI_COMPATIBLE_MODEL=my-model
# Positive integer context window for OPENAI_COMPATIBLE_MODEL. Unset keeps
# 128000 on a new model and leaves an existing model's contextWindow alone.
# vLLM: set this to --max-model-len. LiteLLM: set it for model_name.
# OPENAI_COMPATIBLE_CONTEXT_WINDOW=
#
# vLLM, no API key, on a compose network:
# OPENAI_COMPATIBLE_BASE_URL=http://vllm:8000/v1
# OPENAI_COMPATIBLE_MODEL=Qwen/Qwen2.5-7B-Instruct
# OPENAI_COMPATIBLE_CONTEXT_WINDOW=32768
#
# LiteLLM proxy (model_name + master key). Other model_name rows belong in
# the mounted JSON models list.
# OPENAI_COMPATIBLE_BASE_URL=http://litellm:4000/v1
# OPENAI_COMPATIBLE_API_KEY=sk-litellm-master-key
# OPENAI_COMPATIBLE_MODEL=gpt-4o-mini
# OPENAI_COMPATIBLE_CONTEXT_WINDOW=128000
# ── Memory backend (optional) ────────────────────────────────────────────────
# OpenClaw v2026.10.5 retired memory.backend and the QMD engine. This sets
# plugins.slots.memory. Unset leaves the existing value / builtin default.
# memory-core (alias: builtin), memory-lancedb, openclaw-honcho, or none.
# qmd is rejected and does not change the config.
# OPENCLAW_MEMORY_BACKEND=memory-core
# ── HTTP Basic Auth (recommended) ────────────────────────────────────────────
# If set, nginx enforces basic auth except /healthz, the hooks path (when hooks
# are enabled), and Authorization: Bearer requests to the exact Control UI
# routes the gateway token-checks. / and the WebSocket stay on basic auth.
AUTH_PASSWORD=
AUTH_USERNAME=admin
# ── Gateway ──────────────────────────────────────────────────────────────────
# Required. Allowed characters: A-Z, a-z, 0-9, and . _ ~ -
# The container exits if this is empty or contains any other character
# (quote, backslash, $, semicolon, braces, whitespace, and so on).
# Generate one with: openssl rand -hex 32
# Written to gateway.auth.token in openclaw.json. It is not auto-generated.
OPENCLAW_GATEWAY_TOKEN=
OPENCLAW_GATEWAY_PORT=18789
# Applied only when gateway.bind is not already in the config.
# loopback (default), lan (0.0.0.0), tailnet, auto, or custom.
# "lan" listens on 18789 and bypasses nginx auth; publish that port yourself.
# Traffic through nginx on port 8080 stays on loopback.
# OPENCLAW_GATEWAY_BIND=loopback
# ── Model selection ─────────────────────────────────────────────────────────
# Override the default primary model. Format: provider/model-id
# Examples: opencode/claude-opus-4-5, anthropic/claude-opus-4-5-20251101,
# openrouter/anthropic/claude-opus-4-5, google/gemini-3-pro
# If unset, and no primary is already saved, auto-selects by provider priority.
# OPENCLAW_PRIMARY_MODEL=
# ── Custom config (optional) ─────────────────────────────────────────────────
# Mount a full or partial openclaw.json for advanced settings. Env vars override
# on top, so API keys and common settings still work as env vars.
# Persisted openclaw.json is merged over the mount; env vars then win for the
# keys they set. gateway.bind and an existing trustedProxies array are kept.
# Example: docker run -v ./my-openclaw.json:/app/config/openclaw.json ...
# OPENCLAW_CUSTOM_CONFIG=/app/config/openclaw.json
# OPENCLAW_CONFIG_PATH=/data/.openclaw/openclaw.json
# OPENCLAW_CONFIG_JSON={"gateway":{"port":18789}}
# ── CORS / allowed origins (optional) ────────────────────────────────────────
# Browser origins for the Control UI. Coolify adds COOLIFY_URL (or COOLIFY_FQDN
# when URL is unset) on its own. Set this for any other origin.
# OPENCLAW_ALLOWED_ORIGINS=http://localhost:5173,https://app.example.com
# ── Storage ──────────────────────────────────────────────────────────────────
# Mount a persistent volume at /data. Chat history is stored at
# /data/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite (OpenClaw 2026.10.5).
# HOME and OPENCLAW_HOME must be /data so ~/.openclaw is that directory.
# /root/.openclaw is not on the volume and is discarded on container recreate.
HOME=/data
OPENCLAW_HOME=/data
OPENCLAW_STATE_DIR=/data/.openclaw
OPENCLAW_WORKSPACE_DIR=/data/workspace
# ── Channels (optional) ──────────────────────────────────────────────────────
TELEGRAM_BOT_TOKEN=
TELEGRAM_DM_POLICY=pairing
# Comma-separated allowlist of user IDs/usernames.
# Required when dmPolicy=allowlist (e.g. TELEGRAM_ALLOW_FROM=@username,12345)
# Required when dmPolicy=open (must include "*", e.g. TELEGRAM_ALLOW_FROM=*)
# TELEGRAM_ALLOW_FROM=
# TELEGRAM_GROUP_POLICY=allowlist
# TELEGRAM_GROUP_ALLOW_FROM=
# TELEGRAM_REPLY_TO_MODE=first
# TELEGRAM_CHUNK_MODE=length
# TELEGRAM_TEXT_CHUNK_LIMIT=4000
# TELEGRAM_STREAM_MODE=partial
# TELEGRAM_LINK_PREVIEW=true
# TELEGRAM_MEDIA_MAX_MB=5
# TELEGRAM_REACTION_NOTIFICATIONS=own
# TELEGRAM_REACTION_LEVEL=minimal
# TELEGRAM_INLINE_BUTTONS=allowlist
# TELEGRAM_ACTIONS_REACTIONS=true
# TELEGRAM_ACTIONS_STICKER=false
# TELEGRAM_PROXY=
# TELEGRAM_WEBHOOK_URL=
# TELEGRAM_WEBHOOK_SECRET=
# TELEGRAM_WEBHOOK_PATH=/telegram-webhook
# TELEGRAM_MESSAGE_PREFIX=
DISCORD_BOT_TOKEN=
DISCORD_DM_POLICY=pairing
# DISCORD_DM_ALLOW_FROM=
# DISCORD_GROUP_POLICY=allowlist
# DISCORD_REPLY_TO_MODE=off
# DISCORD_CHUNK_MODE=length
# DISCORD_TEXT_CHUNK_LIMIT=2000
# DISCORD_MAX_LINES_PER_MESSAGE=17
# DISCORD_MEDIA_MAX_MB=8
# DISCORD_HISTORY_LIMIT=20
# DISCORD_DM_HISTORY_LIMIT=
# DISCORD_REACTION_NOTIFICATIONS=own
# DISCORD_ALLOW_BOTS=false
# DISCORD_MESSAGE_PREFIX=
# DISCORD_ACTIONS_REACTIONS=true
# DISCORD_ACTIONS_STICKERS=true
# DISCORD_ACTIONS_EMOJI_UPLOADS=true
# DISCORD_ACTIONS_STICKER_UPLOADS=true
# DISCORD_ACTIONS_POLLS=true
# DISCORD_ACTIONS_PERMISSIONS=true
# DISCORD_ACTIONS_MESSAGES=true
# DISCORD_ACTIONS_THREADS=true
# DISCORD_ACTIONS_PINS=true
# DISCORD_ACTIONS_SEARCH=true
# DISCORD_ACTIONS_MEMBER_INFO=true
# DISCORD_ACTIONS_ROLE_INFO=true
# DISCORD_ACTIONS_CHANNEL_INFO=true
# DISCORD_ACTIONS_CHANNELS=true
# DISCORD_ACTIONS_VOICE_STATUS=true
# DISCORD_ACTIONS_EVENTS=true
# DISCORD_ACTIONS_ROLES=false
# DISCORD_ACTIONS_MODERATION=false
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
# SLACK_USER_TOKEN=
# SLACK_SIGNING_SECRET=
# SLACK_MODE=socket
# SLACK_WEBHOOK_PATH=/slack/events
# SLACK_DM_POLICY=pairing
# SLACK_DM_ALLOW_FROM=
# SLACK_GROUP_POLICY=open
# SLACK_REPLY_TO_MODE=off
# SLACK_REACTION_NOTIFICATIONS=own
# SLACK_CHUNK_MODE=newline
# SLACK_TEXT_CHUNK_LIMIT=4000
# SLACK_MEDIA_MAX_MB=20
# SLACK_HISTORY_LIMIT=50
# SLACK_ALLOW_BOTS=false
# SLACK_MESSAGE_PREFIX=
# SLACK_ACTIONS_REACTIONS=true
# SLACK_ACTIONS_MESSAGES=true
# SLACK_ACTIONS_PINS=true
# SLACK_ACTIONS_MEMBER_INFO=true
# SLACK_ACTIONS_EMOJI_LIST=true
WHATSAPP_ENABLED=
WHATSAPP_DM_POLICY=pairing
# WHATSAPP_SELF_CHAT_MODE=false
# Comma-separated E.164 phone numbers.
# Required when dmPolicy=allowlist (e.g. WHATSAPP_ALLOW_FROM=+1234567890,+0987654321)
# Required when dmPolicy=open (must include "*", e.g. WHATSAPP_ALLOW_FROM=*)
# WHATSAPP_ALLOW_FROM=
# WHATSAPP_GROUP_POLICY=allowlist
# WHATSAPP_GROUP_ALLOW_FROM=
# WHATSAPP_MEDIA_MAX_MB=50
# WHATSAPP_HISTORY_LIMIT=50
# WHATSAPP_DM_HISTORY_LIMIT=
# WHATSAPP_SEND_READ_RECEIPTS=true
# WHATSAPP_ACK_REACTION_EMOJI=
# WHATSAPP_ACK_REACTION_DIRECT=true
# WHATSAPP_ACK_REACTION_GROUP=mentions
# WHATSAPP_MESSAGE_PREFIX=
# WHATSAPP_ACTIONS_REACTIONS=true
# ── Hooks (webhook automation, optional) ──────────────────────────────────────
# Enables the /hooks endpoint for external webhook triggers (wake, agent, custom).
# When enabled with AUTH_PASSWORD, the hooks path bypasses HTTP basic auth —
# openclaw validates requests using the shared hook token instead.
# Docs: https://docs.openclaw.ai/automation/webhook
# HOOKS_ENABLED=true
# HOOKS_TOKEN=your-shared-secret
# HOOKS_PATH=/hooks
# ── Browser tool (remote CDP sidecar, optional) ──────────────────────────────
# Connect to a Chrome sidecar via Chrome DevTools Protocol.
# docker-compose.yml uses coollabsio/openclaw-browser.
# CDP is http://browser:9223 (Chromium itself stays on 127.0.0.1:9222).
# Desktop UI is /browser/ → container port 3000.
# When the CDP hostname is exactly "browser", configure.js adds it to
# browser.ssrfPolicy.allowedHostnames. Other private hosts stay blocked.
# Docs: https://docs.openclaw.ai/tools/browser
# BROWSER_CDP_URL=http://browser:9223
# BROWSER_EVALUATE_ENABLED=false
# BROWSER_SNAPSHOT_MODE=
# Legacy BROWSER_REMOTE_TIMEOUT_MS and BROWSER_REMOTE_HANDSHAKE_TIMEOUT_MS
# are ignored; OpenClaw uses built-in timeouts.
# BROWSER_DEFAULT_PROFILE=
# Set to false or 0 to skip the automatic "browser" hostname allowance.
# BROWSER_SSRF_ALLOW_COMPOSE_SIDECAR=
# One other private hostname (array suffix required). Does not allow the whole LAN.
# OPENCLAW__browser__ssrfPolicy__allowedHostnames[]=my-browser
# Broad opt-in. Allows every private address, not just the sidecar. Leave unset.
# OPENCLAW__browser__ssrfPolicy__dangerouslyAllowPrivateNetwork=true
# ── Provider base URL overrides (optional) ───────────────────────────────────
# configure.js does not read AI_GATEWAY_BASE_URL or ANTHROPIC_BASE_URL.
# Built-in Anthropic, OpenAI, and Vercel AI Gateway endpoints stay on
# OpenClaw's defaults. These variables are written into openclaw.json:
MOONSHOT_BASE_URL=
KIMI_BASE_URL=
# MiniMax chat API (Anthropic-compatible). China: https://api.minimaxi.com/anthropic
# Image generation and TTS use MINIMAX_API_HOST (China: https://api.minimaxi.com), not this URL.
MINIMAX_BASE_URL=
# ── ClawHub skills (optional) ─────────────────────────────────────────────────
# Anonymous ClawHub downloads can return 429. A token raises that limit.
# Also read from $HOME/.config/clawhub/config.json (HOME=/data, so it persists).
# CLAWHUB_TOKEN=
# ── Extra system packages (optional) ──────────────────────────────────────────
# Space-separated list of apt packages to install at container startup.
# Example: OPENCLAW_DOCKER_APT_PACKAGES=ffmpeg build-essential
# OPENCLAW_DOCKER_APT_PACKAGES=
# ── Custom init script (optional) ─────────────────────────────────────────────
# Script that runs on every container start before openclaw starts.
# Must be executable (chmod +x) and idempotent. Useful for extra runtime setup.
# WARNING: Runs with container privileges. Review scripts from untrusted sources.
# OPENCLAW_DOCKER_INIT_SCRIPT=/data/init.d/init.sh
# ── Port ─────────────────────────────────────────────────────────────────────
PORT=8080
# ── Coolify-specific (auto-set by Coolify) ───────────────────────────────────
# COOLIFY_URL — application URL(s), scheme included. Preferred allowed-origin source.
# COOLIFY_FQDN — hostname(s), usually without a scheme. Used only when COOLIFY_URL is unset.