GitHub

@@ -5,9 +5,9 @@ read_when:

55

---

66

# Configuration đź”§

778-

CLAWDBOT reads an optional **JSON5** config from `~/.clawdbot/clawdbot.json` (comments + trailing commas allowed).

8+

Clawdbot reads an optional **JSON5** config from `~/.clawdbot/clawdbot.json` (comments + trailing commas allowed).

9910-

If the file is missing, CLAWDBOT uses safe-ish defaults (embedded Pi agent + per-sender sessions + workspace `~/clawd`). You usually only need a config to:

10+

If the file is missing, Clawdbot uses safe-ish defaults (embedded Pi agent + per-sender sessions + workspace `~/clawd`). You usually only need a config to:

1111

- restrict who can trigger the bot (`whatsapp.allowFrom`, `telegram.allowFrom`, etc.)

1212

- control group allowlists + mention behavior (`whatsapp.groups`, `telegram.groups`, `discord.guilds`, `agents.list[].groupChat`)

1313

- customize message prefixes (`messages`)

@@ -86,7 +86,7 @@ To prevent the bot from responding to WhatsApp @-mentions in groups (only respon

86868787

### Env vars + `.env`

888889-

CLAWDBOT reads env vars from the parent process (shell, launchd/systemd, CI, etc.).

89+

Clawdbot reads env vars from the parent process (shell, launchd/systemd, CI, etc.).

90909191

Additionally, it loads:

9292

- `.env` from the current working directory (if present)

@@ -112,7 +112,7 @@ See [/environment](/environment) for full precedence and sources.

112112113113

### `env.shellEnv` (optional)

114114115-

Opt-in convenience: if enabled and none of the expected keys are set yet, CLAWDBOT runs your login shell and imports only the missing expected keys (never overrides).

115+

Opt-in convenience: if enabled and none of the expected keys are set yet, Clawdbot runs your login shell and imports only the missing expected keys (never overrides).

116116

This effectively sources your shell profile.

117117118118

```json5

@@ -182,7 +182,7 @@ rotation order used for failover.

182182183183

Optional per-agent identity used for defaults and UX. This is written by the macOS onboarding assistant.

184184185-

If set, CLAWDBOT derives defaults (only when you haven’t set them explicitly):

185+

If set, Clawdbot derives defaults (only when you haven’t set them explicitly):

186186

- `messages.ackReaction` from the **active agent**’s `identity.emoji` (falls back to 👀)

187187

- `agents.list[].groupChat.mentionPatterns` from the agent’s `identity.name`/`identity.emoji` (so “@Samantha” works in groups across Telegram/Slack/Discord/iMessage/WhatsApp)

188188

@@ -1198,7 +1198,7 @@ See [/concepts/typing-indicators](/concepts/typing-indicators) for behavior deta

1198119811991199

`agents.defaults.model.primary` should be set as `provider/model` (e.g. `anthropic/claude-opus-4-5`).

12001200

Aliases come from `agents.defaults.models.*.alias` (e.g. `Opus`).

1201-

If you omit the provider, CLAWDBOT currently assumes `anthropic` as a temporary

1201+

If you omit the provider, Clawdbot currently assumes `anthropic` as a temporary

12021202

deprecation fallback.

12031203

Z.AI models are available as `zai/<model>` (e.g. `zai/glm-4.7`) and require

12041204

`ZAI_API_KEY` (or legacy `Z_AI_API_KEY`) in the environment.

Read the original on github.com ↗