Skip to content

Commit 348ec71

Browse files
committed
Add channels configs
1 parent 5cc9a60 commit 348ec71

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ All images built for `linux/amd64` and `linux/arm64`
3939
| `OPENCLAW_GEMINI_MODEL` | `google/gemini-3-pro-preview` | Primary model for the `gemini` agent when `GEMINI_API_KEY` or `GOOGLE_API_KEY` is set |
4040
| `OPENCLAW_GEMINI_WORKSPACE` | `~/.openclaw/workspace-gemini` | Workspace override for the `gemini` agent |
4141
| `OPENCLAW_STATE_DIR` | `/data` | |
42+
| `TELEGRAM_BOT_TOKEN` | | Adds the `telegram` channel with `enabled: true` |
43+
| `DISCORD_BOT_TOKEN` | | Adds the `discord` channel with `enabled: true` |
44+
| `OPENAI_API_KEY` | | Adds OpenAI and OpenAI Code agents |
45+
| `ANTHROPIC_API_KEY` | | Adds Anthropic's Claude agent |
46+
| `GEMINI_API_KEY` | | Adds Google Gemini agent |
4247

4348
OpenClaw will now add agents automatically when the corresponding provider credentials are present:
4449

@@ -49,6 +54,11 @@ OpenClaw will now add agents automatically when the corresponding provider crede
4954

5055
The first available provider in that order becomes the default agent.
5156

57+
OpenClaw will also add channels automatically when the corresponding tokens are present:
58+
59+
- `TELEGRAM_BOT_TOKEN` adds the `telegram` channel
60+
- `DISCORD_BOT_TOKEN` adds the `discord` channel
61+
5262
## Orchestration Actions
5363

5464
Usage:

templates/openclaw.json.tmpl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,17 @@
5050
}
5151
{{- end }}
5252
]{{ end }}
53-
}
53+
}{{ if or (getenv "TELEGRAM_BOT_TOKEN") (getenv "DISCORD_BOT_TOKEN") }},
54+
channels: {
55+
{{- if getenv "TELEGRAM_BOT_TOKEN" }}
56+
telegram: {
57+
enabled: true
58+
}{{ if getenv "DISCORD_BOT_TOKEN" }},{{ end }}
59+
{{- end }}
60+
{{- if getenv "DISCORD_BOT_TOKEN" }}
61+
discord: {
62+
enabled: true
63+
}
64+
{{- end }}
65+
}{{ end }}
5466
}

0 commit comments

Comments
 (0)