Marks / Execution controls / Credential handling
letta-code · Credential handling
Full env inherited plus injected LETTA_API_KEY; only exact-match redaction and Bun keychain; L2 unmet: no denylist
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
met - 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
What the source review found
Shell inherits the full process env, and the CLI injects LETTA_API_KEY (session token) and LETTA_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 via Bun.secrets; otherwise tokens sit in plaintext ~/.letta/settings.json. X56X57X58X59
Pinned evidence
Cited by the mark
- X56
shell env copies process env and injects LETTA_API_KEY session token
- X58
exact-match redaction of Letta key and vault values (8+ chars)
letta-ai/letta-code src/tools/secret-substitution.ts L140-L255
- X59
keychain only via Bun.secrets
Also cited by the review finding
- X57
runtime env strips only parent/role/depth/transcript vars
letta-ai/letta-code src/runtime-execution-settings.ts L59-L86
Two independent graders
- Grader A
- 1 / 1
- Grader B
- 1 / 1
- Final
- 1 / 1