0Pricing
OpenClaw Academy · Lezione

Il file di configurazione openclaw.json

Apra ~/.openclaw/openclaw.json e scopra come il suo formato JSON5 definisce il comportamento di OpenClaw.

Il file di configurazione openclaw.json è una lezione OpenClaw Academy gratuita su CoddyKit. Questa è la lezione 1 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento OpenClaw Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso OpenClaw Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

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

Domande Frequenti

La lezione «Il file di configurazione openclaw.json» è gratuita?

Sì — il testo completo di «Il file di configurazione openclaw.json» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso OpenClaw Academy, passa a CoddyKit PRO. Il corso OpenClaw Academy include 4 lezioni in totale.

Cosa imparerò in «Il file di configurazione openclaw.json»?

Apra ~/.openclaw/openclaw.json e scopra come il suo formato JSON5 definisce il comportamento di OpenClaw. Eserciti OpenClaw Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare OpenClaw Academy?

Non è richiesta alcuna esperienza precedente. OpenClaw Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 1 di 4.

Quanto tempo richiede la lezione «Il file di configurazione openclaw.json»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione OpenClaw Academy?

Sì. Ogni lezione OpenClaw Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Il file di configurazione openclaw.json
  2. Inserire i mittenti nella allowlist con allowFrom
  3. Regole dei gruppi con requireMention e mentionPatterns
  4. Impostazioni predefinite senza configurazione
← Torna a OpenClaw Academy