Skip to main content

OpenClaw Config

Config lives at ~/.openclaw/openclaw.json:
{
  "channels": {
    "whatsapp": {
      "allowFrom": ["+91XXXXXXXXXX"],
      "groups": { "*": { "requireMention": true } }
    }
  },
  "messages": {
    "groupChat": {
      "mentionPatterns": ["@openclaw"]
    }
  }
}
Edit with:
nano ~/.openclaw/openclaw.json

Environment Variables

VariableDefaultDescription
OCA_DIR~/.ocaRoot directory for OCA files
GLIBC_NODE_DIR~/.oca/nodeNode.js installation path
PATHPrepends ~/.oca/node/binEnsures glibc Node.js takes priority
TMPDIR$PREFIX/tmpRequired for glibc compatibility
OCA_GLIBC1Signals that glibc Node is active
NODE_OPTIONS-r ~/.oca/patches/glibc-compat.jsLoads the Android polyfill
To reload:
source ~/.bashrc

Node.js Version

The installer defaults to Node.js v24.14.0. To change:
# Edit install script
nano ~/.oca/scripts/install-nodejs.sh
# Change: NODE_VERSION="24.14.0"

# Reinstall
bash ~/.oca/scripts/install-nodejs.sh

npm Config

# Disable audit prompts
npm config set audit false

# Disable fund messages
npm config set fund false

# Increase network timeout (slow connections)
npm config set fetch-timeout 120000

glibc DNS Config

nano $PREFIX/glibc/etc/resolv.conf
Default:
nameserver 8.8.8.8
nameserver 1.1.1.1