Permitir remitentes con allowFrom
Use channels. .allowFrom para restringir quién puede enviar mensajes a su asistente.
Permitir remitentes con allowFrom es una lección gratuita de OpenClaw Academy en CoddyKit. Esta es la lección 2 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de OpenClaw Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de OpenClaw Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en 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. ✅
Preguntas frecuentes
¿La lección «Permitir remitentes con allowFrom» es gratis?
Sí — el texto completo de «Permitir remitentes con allowFrom» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de OpenClaw Academy, actualiza a CoddyKit PRO. El curso de OpenClaw Academy incluye 4 lecciones en total.
¿Qué aprenderé en «Permitir remitentes con allowFrom»?
Use channels. .allowFrom para restringir quién puede enviar mensajes a su asistente. Practicas OpenClaw Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar OpenClaw Academy?
No se requiere experiencia previa. OpenClaw Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 2 de 4.
¿Cuánto tiempo toma la lección «Permitir remitentes con allowFrom»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de OpenClaw Academy?
Sí. Cada lección de OpenClaw Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- El archivo de configuración openclaw.json
- Permitir remitentes con allowFrom
- Reglas de grupo con requireMention y mentionPatterns
- Valores predeterminados sin configuración