Zen Open Source

AgentArmor field guide

How to check your OpenClaw setup with AgentArmor

Who else can read your agent’s configuration? A local scan can answer that question. Here’s how to run one, read a finding, and confirm that a permissions change worked.

Run a local scan

Use a terminal on the Mac or Linux machine where OpenClaw runs, signed in as the account that owns its files. AgentArmor reads ~/.openclaw/ for that account. If you already have the scanner installed, skip to the scan command.

With Rust, Cargo, and Git installed, build the scanner from its repository. Cargo places the executable in its bin directory, normally ~/.cargo/bin.

git clone https://github.com/Zen-Open-Source/AgentArmor.git
cd AgentArmor
cargo install --locked --path .

Run the scan with passing checks visible. The scan reads your setup and prints its findings. You decide which changes to make.

agent-armor scan --agent openclaw --verbose

Read a finding

In a disposable Linux environment, we gave AgentArmor an empty OpenClaw configuration file with mode 644. Under File Permissions, the scanner reported:

✗ Config file permissions                0/3
  Config mode: 644 (expected: 600)
  Fix: chmod 600 ~/.openclaw/openclaw.json

The file owner could read and write the file. Its group and other local users also had read permission on the file itself. The parent directory’s permissions affect whether those users can reach it. The 0/3 is the score for this single check.

Make the change and check again

If OpenClaw runs as the file owner and your scan shows this finding, restrict the file to that account. Mode 600 gives the owner read and write access and removes group and other access.

chmod 600 ~/.openclaw/openclaw.json
agent-armor scan --agent openclaw --verbose

On the second scan, the same line read:

✓ Config file permissions                3/3

That confirms the permission change. Read the other findings individually, starting with any critical failures. For a report you can process with a script, use --json.

Example tested with AgentArmor 0.1.0. Read the file-permissions check on GitHub.