Commandes CLI

config

Aides de configuration : obtenir/définir/supprimer/valider des valeurs par chemin et afficher le fichier de configuration actif. Exécutez sans sous-commande pour ouvrir l'assistant de configuration (identique à openclaw configure).

Exemples

openclaw config file
openclaw config get browser.executablePath
openclaw config set browser.executablePath "/usr/bin/google-chrome"
openclaw config set agents.defaults.heartbeat.every "2h"
openclaw config set agents.list[0].tools.exec.node "node-id-or-name"
openclaw config unset tools.web.search.apiKey
openclaw config validate
openclaw config validate --json

Chemins

Les chemins utilisent la notation point ou crochet :

openclaw config get agents.defaults.workspace
openclaw config get agents.list[0].id

Utilisez l'index de la liste des agents pour cibler un agent spécifique :

openclaw config get agents.list
openclaw config set agents.list[1].tools.exec.node "node-id-or-name"

Valeurs

Les valeurs sont analysées en JSON5 lorsque c'est possible ; sinon, elles sont traitées comme des chaînes de caractères. Utilisez --strict-json pour exiger l'analyse JSON5. --json reste pris en charge comme alias historique.

openclaw config set agents.defaults.heartbeat.every "0m"
openclaw config set gateway.port 19001 --strict-json
openclaw config set channels.whatsapp.groups '["*"]' --strict-json

Sous-commandes

  • config file : Affiche le chemin du fichier de configuration actif (résolu à partir de OPENCLAW_CONFIG_PATH ou de l'emplacement par défaut).

Redémarrez la passerelle après les modifications.

Valider

Validez la configuration actuelle par rapport au schéma actif sans démarrer la passerelle.

openclaw config validate
openclaw config validate --json

completionconfigure