ملف الإعداد openclaw.json
افتح ~/.openclaw/openclaw.json وتعلّم كيف تصوغ صيغة JSON5 سلوك OpenClaw
ملف الإعداد openclaw.json درس مجاني في OpenClaw Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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.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. ✅
تعلم Bash مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 10
- الدروس
- 40
الأسئلة الشائعة
هل درس «ملف الإعداد openclaw.json» مجاني؟
نعم — نص درس «ملف الإعداد openclaw.json» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة OpenClaw Academy، انتقل إلى CoddyKit PRO. تتضمن دورة OpenClaw Academy 4 دروس في المجموع.
ماذا ستتعلم في «ملف الإعداد openclaw.json»؟
افتح ~/.openclaw/openclaw.json وتعلّم كيف تصوغ صيغة JSON5 سلوك OpenClaw تتمرن على OpenClaw Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ OpenClaw Academy؟
لا تُشترط خبرة سابقة. OpenClaw Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «ملف الإعداد openclaw.json»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس OpenClaw Academy هذا؟
نعم. كل درس في OpenClaw Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- ملف الإعداد openclaw.json
- السماح بالمرسلين باستخدام allowFrom
- قواعد المجموعات باستخدام requireMention وmentionPatterns
- الإعدادات الافتراضية عند عدم ضبط أي شيء