Skip to main content

Konfiguratsiya misollari

Examples below are aligned with the current config schema. For the exhaustive reference and per-field notes, see Configuration.

Tezkor boshlash

Eng minimal variant

~/.openclaw/openclaw.json fayliga saqlang va shu raqamdan botga DM yuborishingiz mumkin.

Tavsiya etilgan boshlang‘ich sozlama

Kengaytirilgan misol (asosiy variantlar)

JSON5 lets you use comments and trailing commas. Regular JSON works too.

Common patterns

Multi-platform setup

Secure DM mode (shared inbox / multi-user DMs)

If more than one person can DM your bot (multiple entries in allowFrom, pairing approvals for multiple people, or dmPolicy: "open"), enable secure DM mode so DMs from different senders don’t share one context by default:

OAuth with API key failover

Anthropic subscription + API key, MiniMax fallback

Work bot (restricted access)

Faqat lokal modellar

Maslahatlar

  • Agar siz dmPolicy: "open" ni o‘rnatsangiz, mos keluvchi allowFrom ro‘yxati ichida "*" bo‘lishi shart.
  • Provayder IDlari farq qiladi (telefon raqamlari, foydalanuvchi IDlari, kanal IDlari). Formatni tasdiqlash uchun provayder hujjatlaridan foydalaning.
  • Keyinroq qo‘shish mumkin bo‘lgan ixtiyoriy bo‘limlar: web, browser, ui, discovery, canvasHost, talk, signal, imessage.
  • Batafsil sozlash eslatmalari uchun Providers va Troubleshooting bo‘limlariga qarang.