openclaw.json 設定ファイル
~/.openclaw/openclaw.json を開き、その JSON5 形式が OpenClaw の動作を形作る仕組みを学びます。
「openclaw.json 設定ファイル」はCoddyKit上の無料OpenClaw Academyレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはOpenClaw Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 OpenClaw Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Where Config Lives
OpenClaw reads its settings from a single config file. Edit it and you change how your assistant behaves, all in one place. 🛠️
The Exact Path
The file lives at ~/.openclaw/openclaw.json in your home folder. That hidden folder is where OpenClaw keeps its setup.
cat ~/.openclaw/openclaw.jsonIt Is JSON5
The file uses JSON5, a friendlier flavor of JSON. It allows comments and trailing commas, so the config is easier to read and edit.
Why JSON5 Helps
Because it is JSON5, you can leave yourself notes with comments. That keeps a growing config clear about why each setting is there.
{
// who can message me
channels: {}
}What the File Shapes
This one file shapes your assistant's behavior: which channels connect, who is allowed in, and when it should reply.
The Top-Level Shape
At the root you will mostly see a channels object plus a messages object. Each holds settings grouped by what they control.
{
channels: { },
messages: { }
}Channels Object
The channels object groups settings per platform, like WhatsApp or Telegram. Each platform gets its own block of options.
channels: {
whatsapp: { },
telegram: { }
}Editing Safely
Open the config in any text editor you like. Save your change, then restart OpenClaw so it picks up the new settings.
nano ~/.openclaw/openclaw.jsonKeep It Valid
Even with JSON5, structure matters. A misplaced brace can stop the file from loading, so keep your braces and quotes balanced.
Small Edits Win
Change one setting at a time, then test. Small steps make it easy to see what each option actually does to your assistant.
Your Control Panel
Think of openclaw.json as your control panel. Everything you tune in this course flows from edits to this single file.
Quick Check
Let us confirm where and what the config file is.
Recap
You found OpenClaw's brain: ~/.openclaw/openclaw.json, a JSON5 file. One place to shape channels, access, and replies. Next, who gets in. ✅
AI チューターと学ぶ Bash — 無料
ブラウザでリアルコードを書いて実行し、24/7 の AI チューターから瞬時にサポートを受け、ウェブまたはアプリで続きから学習できます。
- コース
- 10
- レッスン
- 40
よくある質問
「openclaw.json 設定ファイル」レッスンは無料ですか?
はい。「openclaw.json 設定ファイル」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、OpenClaw Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 OpenClaw Academyコースには全4レッスンが含まれています。
「openclaw.json 設定ファイル」で何を学びますか?
~/.openclaw/openclaw.json を開き、その JSON5 形式が OpenClaw の動作を形作る仕組みを学びます。 ブラウザで直接実行するハンズオンコードでOpenClaw Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
OpenClaw Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのOpenClaw Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。
「openclaw.json 設定ファイル」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このOpenClaw Academyレッスンでコードを書いて実行できますか?
はい。すべてのOpenClaw Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- openclaw.json 設定ファイル
- allowFromで送信者を許可リストに登録する
- requireMentionとmentionPatternsでグループルールを設定する
- 何も設定しない場合のデフォルト