Permitir remetentes com allowFrom
Use channels. .allowFrom para restringir quem pode enviar mensagens ao seu assistente.
Permitir remetentes com allowFrom é uma aula grátis de OpenClaw Academy no CoddyKit. Esta é a aula 2 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de OpenClaw Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de OpenClaw Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em inglês.
Who Can Reach You
OpenClaw has full system access, so you decide who may message it. The allowlist is your front door, and only listed people get in. 🔐
Meet allowFrom
The key for this is allowFrom. It lives inside a channel block and holds the senders you trust to talk to your assistant.
channels: {
whatsapp: {
allowFrom: []
}
}Where It Sits
The full path is channels.platform.allowFrom. Swap platform for whatsapp, telegram, or any channel you have connected.
It Is a List
allowFrom takes a list of senders. For WhatsApp that means phone numbers, so each entry is one trusted contact.
allowFrom: ["+15555550123"]Adding More Senders
Need more people? Just add more entries to the list. Every number you include can message and command your assistant.
allowFrom: [
"+15555550123",
"+15555550199"
]A Full WhatsApp Block
Here is allowFrom inside a real whatsapp block. This is the shape you edit in openclaw.json to gate the channel.
channels: {
whatsapp: {
allowFrom: ["+15555550123"]
}
}Why Allowlisting First
Allowlisting is the simplest guardrail. Before any clever rules, deciding who is on the list keeps strangers from driving your machine.
Per Channel
Each channel keeps its own allowFrom. Your WhatsApp list and your Telegram list are separate, so you tune access per platform.
Use the Right Format
Match the sender format the platform expects. For WhatsApp use full international numbers, including the country code, so they match correctly.
Apply Your Changes
After editing allowFrom, save the file and restart OpenClaw. The new list takes effect once the assistant reloads its config.
Trust by Design
Keep the list tight. Add only people you truly trust, because everyone on it can ask your assistant to act on your system.
Quick Check
Test your grip on the allowlist key.
Recap
You set the guest list: allowFrom names the senders allowed per channel. Tight lists keep you safe. Next, group mention rules. ✅
Perguntas Frequentes
A aula “Permitir remetentes com allowFrom” é grátis?
Sim — o texto completo de “Permitir remetentes com allowFrom” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de OpenClaw Academy, atualize para CoddyKit PRO. O curso de OpenClaw Academy inclui 4 aulas no total.
O que vou aprender em “Permitir remetentes com allowFrom”?
Use channels. .allowFrom para restringir quem pode enviar mensagens ao seu assistente. Você pratica OpenClaw Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar OpenClaw Academy?
Nenhuma experiência prévia é necessária. OpenClaw Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 2 de 4.
Quanto tempo leva a aula “Permitir remetentes com allowFrom”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de OpenClaw Academy?
Sim. Cada aula de OpenClaw Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- O arquivo de configuração openclaw.json
- Permitir remetentes com allowFrom
- Regras de grupo com requireMention e mentionPatterns
- Padrões quando nada é configurado