0Pricing
OpenClaw Academy · บทเรียน

ไฟล์การกำหนดค่า openclaw.json

เปิด ~/.openclaw/openclaw.json และเรียนรู้ว่ารูปแบบ JSON5 กำหนดพฤติกรรมของ OpenClaw อย่างไร

ไฟล์การกำหนดค่า openclaw.json เป็นบทเรียน OpenClaw Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน 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.json

It 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.json

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

คำถามที่พบบ่อย

บทเรียน “ไฟล์การกำหนดค่า openclaw.json” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “ไฟล์การกำหนดค่า openclaw.json” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส OpenClaw Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส OpenClaw Academy มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “ไฟล์การกำหนดค่า openclaw.json”

เปิด ~/.openclaw/openclaw.json และเรียนรู้ว่ารูปแบบ JSON5 กำหนดพฤติกรรมของ OpenClaw อย่างไร คุณปฏิบัติ OpenClaw Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน OpenClaw Academy หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน OpenClaw Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน

บทเรียน “ไฟล์การกำหนดค่า openclaw.json” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน OpenClaw Academy นี้ได้ไหม

ได้ บทเรียน OpenClaw Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. ไฟล์การกำหนดค่า openclaw.json
  2. อนุญาตผู้ส่งด้วย allowFrom
  3. กฎกลุ่มด้วย requireMention และ mentionPatterns
  4. ค่าเริ่มต้นเมื่อไม่ได้ตั้งค่าใด ๆ
← กลับไปที่ OpenClaw Academy