0Pricing
OpenClaw Academy · レッスン

トークン、allowlist、requireMention

トークン、allowFromのallowlist、グループのrequireMentionを組み合わせ、アシスタントにアクセスできるユーザーを制御します。

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

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

Three Tools, One Goal

To control who reaches your assistant, you combine three things: tokens, allowlists, and required mentions. Together they form your front line. 🔐

What Tokens Do

A token is a secret that proves a channel or client is allowed to connect to your Gateway. Keep it private, like a house key.

The allowFrom Allowlist

The allowFrom key lists exactly which senders may message OpenClaw on a channel. Anyone not listed is simply ignored.

Allowlist In Config

You set allowFrom inside your channel block. Here a WhatsApp channel only accepts one number, shown in JSON5 config.

{
  channels: {
    whatsapp: {
      allowFrom: ["+15555550123"]
    }
  }
}

Where It Lives

That config sits in ~/.openclaw/openclaw.json. Edit it, and OpenClaw enforces your allowlist the next time it handles messages.

requireMention In Groups

For group chats, requireMention tells OpenClaw to stay quiet unless it is explicitly mentioned, so it never reacts to every message.

requireMention Example

Apply requireMention to all groups with a wildcard so the assistant only speaks when called by name.

{
  channels: {
    whatsapp: {
      groups: { "*": { requireMention: true } }
    }
  }
}

Mention Patterns

Define how to call it with mentionPatterns, like @openclaw. Only messages matching a pattern count as a real mention.

{
  messages: {
    groupChat: { mentionPatterns: ["@openclaw"] }
  }
}

Layer Them Together

Each control closes a different gap. Layering tokens, allowFrom, and requireMention is far safer than relying on any single one.

Tokens For Channels

Tokens authenticate the channel connection itself, while allowFrom decides which people behind that channel are trusted to send commands.

Start Strict

A safe habit is to start strict: empty allowlists, mentions required, then add only the senders you truly need over time.

Quick Check

Match each control to what it actually limits.

Recap

Use tokens to authenticate channels, allowFrom to allow senders, and requireMention plus mentionPatterns to stay quiet until called. ✅

よくある質問

「トークン、allowlist、requireMention」レッスンは無料ですか?

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

「トークン、allowlist、requireMention」で何を学びますか?

トークン、allowFromのallowlist、グループのrequireMentionを組み合わせ、アシスタントにアクセスできるユーザーを制御します。 ブラウザで直接実行するハンズオンコードでOpenClaw Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

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

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

「トークン、allowlist、requireMention」レッスンにはどのくらい時間がかかりますか?

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

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

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

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

  1. ガードレールが重要な理由
  2. トークン、allowlist、requireMention
  3. Gatewayのセキュリティドキュメント
  4. SSHとTailscaleによるリモートアクセス
← OpenClaw Academyに戻る