Marks / Execution controls / Credential handling
software-agent-sdk · Credential handling
Host env minus small denylist, LLM_API_KEY visible; DockerWorkspace passes only forward_env allowlist
Level
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
default - 3
Default cleared environment plus allowlist for agent processes; credential stores may still be readable on the same filesystem
best - 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
What the source review found
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 as LLM_API_KEY stay visible locally. Registered secrets are injected only into commands that reference them and masked in output, including streamed output. [opt: DockerWorkspace passes only forward_env]. X131X132X133
Pinned evidence
Cited by the mark
- X131
sanitized_env denylist (session keys, OH_SECRET_KEY, OTel/Laminar headers)
OpenHands/software-agent-sdk openhands-sdk/openhands/sdk/utils/command.py L16-L79
- X132
registered secrets injected per command and masked incl. streaming
OpenHands/software-agent-sdk openhands-sdk/openhands/sdk/conversation/secret_registry.py L164-L353
- X133
[opt DockerWorkspace] forward_env list
OpenHands/software-agent-sdk openhands-workspace/openhands/workspace/docker/workspace.py L89-L96
Two independent graders
- Grader A
- 2 / 3
- Grader B
- 2 / 3
- Final
- 2 / 3