# openclaw · 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: [openclaw](https://ai-agents-review.com/runtime/openclaw.md)
- Column: [Credential handling](https://ai-agents-review.com/column/credential-handling.md) (Execution controls)
- Mark: 2→3 [opt: sandbox docker (env LANG only)] s
- Default deployment: 2
- Best supported configuration: 3 (opt: sandbox docker (env LANG only))
- Page: https://ai-agents-review.com/cell/openclaw/credential-handling

## Rationale

Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking

## 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

Host exec inherits the Gateway env minus a denylist (AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL, gateway credentials). Provider `*_API_KEY` names are not on that list, so they pass. Docker sandbox env defaults to `LANG` only and blocks forwarding of `*_API_KEY/TOKEN/PASSWORD/SECRET`. Log redaction is on by default; tool output sent to the model is not redacted. [opt: egress-proxy secret substitution]. [X85][X86][X87][X88][X89]

## Evidence cited by the mark

- [X85] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/infra/host-env-security.ts#L277-L308 — host exec env: copy all keys except blocked ones — [S]
- [X86] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/infra/host-env-security-policy.json#L256-L263 — blocked: AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL (no *_API_KEY) — [S]
- [X87] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/sandbox/sanitize-env-vars.ts#L15-L19 — sandbox/SSH forwarding blocks *_API_KEY/TOKEN/PASSWORD/SECRET names — [S]

## Evidence also cited by the review finding

- [X88] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/logging/redact.ts#L68-L71 — log redaction mode tools by default — [S]
- [X89] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/secrets/egress-proxy/environment.ts#L3-L13 — [opt] egress proxy via HTTP(S)_PROXY env — [S]

## Grading record

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