openclaw config

Các lệnh hỗ trợ config: đọc/ghi/xóa giá trị theo đường dẫn. Chạy không có lệnh con sẽ mở wizard cấu hình (giống với openclaw configure).

Ví dụ

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

Đường dẫn (Paths)

Đường dẫn sử dụng ký hiệu dấu chấm hoặc ngoặc vuông:

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

Dùng chỉ số trong danh sách agent để trỏ đến một agent cụ thể:

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

Giá trị (Values)

Giá trị sẽ được parse theo định dạng JSON5 nếu có thể; nếu không thì sẽ được xử lý như chuỗi ký tự. Dùng --json để bắt buộc parse theo JSON5.

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

Khởi động lại Gateway sau khi chỉnh sửa.