fix: load global .env fallback

This commit is contained in:
Peter Steinberger
2026-01-05 00:41:36 +01:00
parent aa45f512f4
commit 77b19643e2
6 changed files with 107 additions and 4 deletions

View File

@@ -214,6 +214,8 @@ Minimal `~/.clawdbot/clawdbot.json`:
}
```
Env vars: loaded from `.env` in the current working directory, plus a global fallback at `~/.clawdbot/.env` (aka `$CLAWDBOT_STATE_DIR/.env`) without overriding existing values.
### WhatsApp
- Link the device: `pnpm clawdbot login` (stores creds in `~/.clawdbot/credentials`).