Feature • TutorialHeader.readTime
Group Chat
Deploy OpenClaw to your teams. Advanced isolation and security for group environments.
OpenClaw provides powerful group chat features with security controls, mention gating, and flexible activation modes. Each group gets its own isolated session, ensuring context separation and security.
Tutorial.step
Group Session Isolation
Each group chat runs in its own isolated session:
- Separate Context - Each group maintains its own conversation history
- Isolated Memory - Group memories don't mix with DMs or other groups
- Sandboxed Execution - Groups can run in Docker sandboxes for security
- Independent Configuration - Different settings per group
Tutorial.step
Group Allowlists
Control which groups OpenClaw can access:
- Allowlist Mode - Only specified groups are accessible
- Wildcard Support - Use "*" to allow all groups
- Per-Channel Configuration - Different allowlists per messaging platform
Example Configuration
Group Allowlist
{
"channels": {
"telegram": {
"groups": {
"123456789": {
"requireMention": true
},
"*": {
"requireMention": true,
"activation": "mention"
}
}
}
}
}Tutorial.step
Mention Gating
Mention gating requires @mentions for the bot to respond:
- Default Behavior - Bot only responds when mentioned (recommended)
- Reduces Noise - Prevents bot from responding to every message
- Better UX - Group members control when bot participates
- Configurable - Can be disabled per group
Mention Patterns
Configure mention patterns:
Mention Patterns
{
"messages": {
"groupChat": {
"mentionPatterns": ["@openclaw", "@molty", "@bot"]
}
}
}Activation Modes
mention- Only respond when mentioned (default, recommended)always- Respond to all messages (use with caution)manual- Only respond when explicitly activated
Changing Activation Mode
Group owners can change activation mode:
Activation Command
/activation mention /activation always /activation manual
Tutorial.step
Group Security
Groups have additional security features:
- Sandboxing - Groups can run in isolated Docker containers
- Tool Restrictions - Limited tool access by default
- Reply Tags - Proper threading and reply handling
- Per-Channel Routing - Route groups to different agents
Sandbox Configuration
Enable sandboxing for groups:
Group Sandbox
{
"agents": {
"defaults": {
"sandbox": {
"mode": "non-main"
}
}
}
}Tutorial.step
Group Messages
OpenClaw handles group messages with:
- Reply Threading - Proper reply handling and threading
- Media Support - Send and receive images, audio, documents
- Typing Indicators - Shows when bot is processing
- Mention Handling - Properly handles @mentions and replies
Tutorial.step
Per-Channel Configuration
Each messaging platform has its own group configuration:
Telegram Groups
Telegram Groups
{
"channels": {
"telegram": {
"groups": {
"*": {
"requireMention": true
}
}
}
}
}Discord Servers
Discord Groups
{
"channels": {
"discord": {
"guilds": {
"123456789": {
"channels": ["general", "support"]
}
}
}
}
}Tutorial.step
Best Practices
- 1Use Mention GatingKeep default mention-only mode.
- 2Configure AllowlistsExplicitly allow trusted groups.
- 3Enable SandboxingSandbox groups for security.
- 4Monitor ActivityReview group interactions regularly.
- 5Set Clear ExpectationsLet group members know how to interact with the bot.