Credential handling
Criteria per level
- 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
Every runtime, in report order
- 2 ↑3 codex opt: shell_environment_policy inherit=core/none Default denylist KEY/SECRET/TOKEN; a named config key gives an allowlisted env (R1); auth.json likely readable
Review finding
Partial filtering, built in. Shell tools inherit the full environment minus case-insensitive
*KEY*/*SECRET*/*TOKEN*(*PASSWORD*is not excluded); configurable via[shell_environment_policy]. MCP stdio servers get an allowlist. Login credentials sit inauth.jsonby default and are likely readable under the read-/profile (inferred). Redaction covers memories and command display only. X7X8X9X10X11 - 1 goose Keychain option exists, but shell/hooks/stdio inherit full env; L2 unmet: no default env denylist
Review finding
Secrets resolve from env, then OS keychain (
keyring3.6.3), thensecrets.yaml. Shell, hooks, recipe checks and stdio extensions inherit goose's full environment (noenv_clear), so env-supplied keys are readable. Only configured extension env is filtered, and only for loader variables. Tool output and request logs are not redacted. X20X22X26X27X28 - 2 hermes-agent Local subprocesses get env minus provider/cloud blocklist; L3 unmet: no cleared env; .env/auth.json readable
Review finding
Partial, built in. Local subprocesses inherit the env minus a blocklist of provider, messaging and cloud keys plus registry key vars; other variables pass through. MCP stdio servers get an allowlist. Secret redaction is on by default for logs, terminal output and child summaries.
.envandauth.json(0600) stay readable to the local shell. X40X41X42X43X44 - 1 letta-code Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist
Review finding
Shell inherits the full process env, and the CLI injects
LETTA_API_KEY(session token) andLETTA_BASE_URL. Vault secrets are substituted only when referenced as$NAME. Redaction is exact-match for the Letta key and vault values only, so ambient provider keys are not covered. Keychain only viaBun.secrets; otherwise tokens sit in plaintext~/.letta/settings.json. X56X57X58X59 - 3 nullclaw Shell env cleared plus allowlist, MCP fixed list; L4 unmet: secret key file on same disk, no broker
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_keyon the same disk. Tool output is secret-scrubbed before it reaches the LLM. X69X70X71X72 - 2 ↑3 openclaw opt: sandbox docker (env LANG only) Host exec env minus denylist, *_API_KEY passes; Docker sandbox env defaults to LANG only with secret-name blocking
Review finding
Host exec inherits the Gateway env minus a denylist (AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL, gateway credentials). Provider
*_API_KEYnames are not on that list, so they pass. Docker sandbox env defaults toLANGonly 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]. X85X86X87X88X89 - 1 opencode Full env inherited, plaintext credential DB; only *.env read-tool ask and host per-session env replacement
Review finding
Local shell inherits the server's full
process.env, or a per-session replacement the host sets viaPUT /session/:id/environment. MCP stdio servers inherit the env. Stored credentials are plaintext JSON in the 0600 SQLite DB, which the shell can read. The*.envask rule covers thereadtool, not shellcat. No output redaction. X96X101X102X103X104 - 1 pi Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylist
Review finding
bash inherits the full
process.env, plusPI_*session vars when exposed. MCP stdio servers inherit the env unlessinheritEnv: false.auth.jsonis 0600 under a lock but readable by the same user. Config values can come from a!command(e.g. a host keychain CLI). No in-tree keychain; redaction applies only to bug reports. X115X116X117X118X119 - 2 ↑3 software-agent-sdk opt: DockerWorkspace forward_env Host env minus small denylist, LLM_API_KEY visible; DockerWorkspace passes only forward_env allowlist
Review finding
Partial, built in. Terminal subprocesses inherit the host env minus a small denylist (session keys,
OH_SECRET_KEY, OTel/Laminar headers), so provider keys such asLLM_API_KEYstay visible locally. Registered secrets are injected only into commands that reference them and masked in output, including streamed output. [opt: DockerWorkspace passes onlyforward_env]. X131X132X133 - 4 spore Cleared env plus allowlist for agent and cells; provider keys and source secrets held in runner brokers
Review finding
Built in. The agent gets a cleared env (
env_clear) plus an explicit allowlist (PATH, locale, TZ, TMPDIR, OTEL, SPORE_OWNERS, runtime sockets, validated plugin vars). Provider keys and source secrets stay in the runner behind brokers that require a per-turn tree key. Commands can make model calls through the broker socket, counted in the budget. No output redaction. X139X145X146X147X148