原文Claude Code can already keep your API keys away from the model
Mask a key in the sandbox and your agent runs only ever see a placeholder
The sandbox proxy swaps the real key in on requests to the hosts you list, it never lands in the transcript
In ~/.claude/settings.json:
{"sandbox":{"enabled":true,"network":{"tlsTerminate":{},"allowedDomains":["
I still make heavy daily use of my env mod though
/plugin install env@davekiss