0Pricing
OpenClaw Academy · レッスン

allowFromで送信者を許可リストに登録する

channels. .allowFromを使って、アシスタントにメッセージを送信できるユーザーを制限します。

「allowFromで送信者を許可リストに登録する」はCoddyKit上の無料OpenClaw Academyレッスンです。 これはレッスン2/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはOpenClaw Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 OpenClaw Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

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. ✅

よくある質問

「allowFromで送信者を許可リストに登録する」レッスンは無料ですか?

はい。「allowFromで送信者を許可リストに登録する」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、OpenClaw Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 OpenClaw Academyコースには全4レッスンが含まれています。

「allowFromで送信者を許可リストに登録する」で何を学びますか?

channels. .allowFromを使って、アシスタントにメッセージを送信できるユーザーを制限します。 ブラウザで直接実行するハンズオンコードでOpenClaw Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

OpenClaw Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのOpenClaw Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン2/4です。

「allowFromで送信者を許可リストに登録する」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このOpenClaw Academyレッスンでコードを書いて実行できますか?

はい。すべてのOpenClaw Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. openclaw.json 設定ファイル
  2. allowFromで送信者を許可リストに登録する
  3. requireMentionとmentionPatternsでグループルールを設定する
  4. 何も設定しない場合のデフォルト
← OpenClaw Academyに戻る