FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openclaw/.env.example at main · tta-lab/openclaw · GitHub
tta-lab
openclaw
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
openclaw
/
.env.example
Copy path
More file actions
More file actions
Latest commit
History
History
History
95 lines (84 loc) · 3.7 KB
Breadcrumbs
openclaw
/
.env.example
Copy path
File metadata and controls
95 lines (84 loc) · 3.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
OpenClaw .env example
#
#
Quick start:
#
1) Copy this file to `.env` (for local runs from this repo), OR to `~/.openclaw/.env` (for launchd/systemd daemons).
#
2) Fill only the values you use.
#
3) Keep real secrets out of git.
#
#
Env-source precedence for environment variables (highest -> lowest):
#
process env, ./.env, ~/.openclaw/.env, then openclaw.json `env` block.
#
Existing non-empty process env vars are not overridden by dotenv/config env loading.
#
Note: direct config keys (for example `gateway.auth.token` or channel tokens in openclaw.json)
#
are resolved separately from env loading and often take precedence over env fallbacks.
#
-----------------------------------------------------------------------------
#
Gateway auth + paths
#
-----------------------------------------------------------------------------
#
Required if the gateway binds beyond loopback. Leave blank to have OpenClaw
#
auto-generate a token on first start, or provide your own using
#
`openssl rand -hex 32`. The gateway will refuse to start if this is set to
#
the documented example placeholder, so never copy-paste an example value
#
from docs or tutorials into this file verbatim.
OPENCLAW_GATEWAY_TOKEN
=
#
Optional alternative auth mode (use token OR password).
#
OPENCLAW_GATEWAY_PASSWORD=
#
Optional path overrides (defaults shown for reference).
#
OPENCLAW_STATE_DIR=~/.openclaw
#
OPENCLAW_CONFIG_PATH=~/.openclaw/openclaw.json
#
OPENCLAW_HOME=~
#
Docker setup stores auth profile encryption key material outside the mounted
#
OpenClaw state dir and mounts this host directory into the container.
#
OPENCLAW_AUTH_PROFILE_SECRET_DIR=/absolute/path/to/.openclaw-auth-profile-secrets
#
Allowlist of extra directories that `$include` directives in openclaw.json may
#
resolve files from. Path-list separated (':' on POSIX, ';' on Windows). Each
#
entry is tilde-expanded. Without this, `$include` is confined to the directory
#
containing openclaw.json.
#
OPENCLAW_INCLUDE_ROOTS=/etc/openclaw/shared:~/.openclaw/shared
#
Optional: import missing keys from your login shell profile.
#
OPENCLAW_LOAD_SHELL_ENV=1
#
OPENCLAW_SHELL_ENV_TIMEOUT_MS=15000
#
-----------------------------------------------------------------------------
#
Model provider API keys (set at least one)
#
-----------------------------------------------------------------------------
#
OPENAI_API_KEY=sk-...
#
ANTHROPIC_API_KEY=sk-ant-...
#
GEMINI_API_KEY=...
#
OPENROUTER_API_KEY=sk-or-...
#
OPENCLAW_LIVE_OPENAI_KEY=sk-...
#
OPENCLAW_LIVE_ANTHROPIC_KEY=sk-ant-...
#
OPENCLAW_LIVE_GEMINI_KEY=...
#
OPENAI_API_KEY_1=...
#
ANTHROPIC_API_KEY_1=...
#
GEMINI_API_KEY_1=...
#
GOOGLE_API_KEY=...
#
OPENAI_API_KEYS=sk-1,sk-2
#
ANTHROPIC_API_KEYS=sk-ant-1,sk-ant-2
#
GEMINI_API_KEYS=key-1,key-2
#
Optional additional providers
#
ZAI_API_KEY=...
#
AI_GATEWAY_API_KEY=...
#
TOKENHUB_API_KEY=...
#
LKEAP_API_KEY=...
#
MINIMAX_API_KEY=...
#
SYNTHETIC_API_KEY=...
#
-----------------------------------------------------------------------------
#
Channels (only set what you enable)
#
-----------------------------------------------------------------------------
#
TELEGRAM_BOT_TOKEN=123456:ABCDEF...
#
DISCORD_BOT_TOKEN=...
#
SLACK_BOT_TOKEN=xoxb-...
#
SLACK_APP_TOKEN=xapp-...
#
Optional channel env fallbacks
#
MATTERMOST_BOT_TOKEN=...
#
MATTERMOST_URL=https://chat.example.com
#
ZALO_BOT_TOKEN=...
#
OPENCLAW_TWITCH_ACCESS_TOKEN=oauth:...
#
-----------------------------------------------------------------------------
#
Tools + voice/media (optional)
#
-----------------------------------------------------------------------------
#
BRAVE_API_KEY=...
#
PERPLEXITY_API_KEY=pplx-...
#
FIRECRAWL_API_KEY=...
#
ELEVENLABS_API_KEY=...
#
XI_API_KEY=... # alias for ElevenLabs
#
INWORLD_API_KEY=...
#
DEEPGRAM_API_KEY=...
Back
|
FazBrowse Home
|
New Git URL