#12388: docs: improve .env.example with comprehensive configuration examples
stale
Cluster:
OpenClaw Plugin Enhancements
This PR significantly improves the `.env.example` file by adding comprehensive configuration examples for all supported environment variables.
## Changes
- **Channel Tokens**: Added examples for Telegram, Discord, Slack, WhatsApp (Twilio), Signal, and Google Chat
- **Model API Keys**: Added sections for OpenAI, Anthropic, and Gemini
- **Optional Configuration**: Documented gateway port, profile, state directory, and log level options
- **Development/Testing**: Added commonly used development environment variables
- **Documentation**: Added inline comments describing each variable and where to obtain tokens/keys
- **Security Notice**: Added warning about keeping API keys secure and never committing .env files
## Impact
This helps new developers set up OpenClaw faster by providing a complete reference for all environment variables in one place, rather than hunting through documentation.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Updates `.env.example` from a Twilio-only stub into a comprehensive environment-variable reference, adding commented examples for multiple chat channels (Telegram/Discord/Slack/Twilio WhatsApp/Signal/Google Chat), model provider API keys (OpenAI/Anthropic/Gemini), and optional runtime/dev toggles (port/profile/state dir/log level/skip channels/live test), plus a security warning about not committing secrets.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge after a small formatting fix.
- Changes are documentation-only and limited to `.env.example`; the only concrete issue found is the missing trailing newline at EOF, which should be fixed to avoid persistent diff noise and tooling inconsistencies.
- .env.example (add trailing newline)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
81.3%
#7497: chore: remove deprecated TWILIO_WHATSAPP_FROM from .env.example
by abramcho · 2026-02-02
78.1%
#7133: feat: Automated Docker setup with environment-based configuration
by synetalsolutions · 2026-02-02
75.8%
#13953: feat(docker): add .env template and improve Dockerfile
by n24q02m · 2026-02-11
74.6%
#5036: docs: improve Slack setup and troubleshooting guide
by DanBatten · 2026-01-31
73.3%
#7145: chore: update package description to reflect multi-channel capabili...
by Protocol-zero-0 · 2026-02-02
73.2%
#11915: Docs: Docker + reverse proxy deployment notes and pairing pitfalls
by walshd1 · 2026-02-08
73.1%
#7487: docs: add code review for recent security commits (b796f6e..411d5fd)
by INTEGRITY2077 · 2026-02-02
72.9%
#7083: 说明文档
by 1213718318 · 2026-02-02
72.3%
#8203: fix clawdbot references
by anton-roos · 2026-02-03
72.3%