# nullclaw · Credential handling

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [nullclaw](https://ai-agents-review.com/runtime/nullclaw.md)
- Column: [Credential handling](https://ai-agents-review.com/column/credential-handling.md) (Execution controls)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/nullclaw/credential-handling

## Rationale

Shell env cleared plus allowlist, MCP fixed list; L4 unmet: secret key file on same disk, no broker

## Rubric criteria for this column

- 0: Full environment inherited, credentials stored in plaintext readable by agent code, no filtering
- 1: Some protection (keychain option, redaction of output, per-command secret injection), but the full environment is still inherited by default
- 2: Default denylist filtering of the environment, but known provider keys or credential files remain reachable by agent code
- 3: Default cleared environment plus allowlist for agent processes; credential stores may still be readable on the same filesystem
- 4: Level 3, plus provider credentials held outside the agent's reach (separate process or broker) **and** auxiliary processes (MCP stdio) also get an allowlisted environment

## Review finding

Built in. The shell tool clears the env and passes PATH/HOME/TERM/LANG/LC_*/USER/SHELL/TMPDIR plus path-validated vars; MCP stdio gets a fixed inherit list. Config secrets are ChaCha20-Poly1305-encrypted at rest, with the key in `<config_dir>/.secret_key` on the same disk. Tool output is secret-scrubbed before it reaches the LLM. [X69][X70][X71][X72]

## Evidence cited by the mark

- [X70] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/tools/shell.zig#L26-L55 — shell SAFE_ENV_VARS allowlist (env cleared) — [S]
- [X69] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/mcp.zig#L115-L137 — MCP stdio spawn: env inherit list plus overrides, no sandbox wrapper — [S]
- [X71] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/security/secrets.zig#L1-L50 — ChaCha20-Poly1305 config secret encryption, key file — [S]

## Evidence also cited by the review finding

- [X72] nullclaw — https://github.com/nullclaw/nullclaw/blob/5f1cade05c19b6ecdfb9565ae3305e892e484da9/src/agent/root.zig#L3241 — scrubToolOutput before results reach LLM — [S]

## Grading record

- Grader A (default / best): 3 / 3
- Grader B (default / best): 3 / 3
