Run Claude Code in a secure sandbox with AWS credentials, Kubernetes access, and restricted file scope.
brew install claude-code agent-safehouse aws-vault git# csb — Claude Sandboxed
csb() {
AWS_VAULT=default safehouse --enable=cloud-credentials,kubectl,shell-init \
--workdir=~/git/work/il -- claude --dangerously-skip-permissions "$@"
}Note: Replace ~/git/work/il with your project directory.
source ~/.zshrc
csbcsb() sets up a sandboxed Claude session with:
AWS_VAULT=default- Access to AWS credentials from Keychain via aws-vaultsafehouse --enable=...- Enables specific features:cloud-credentials- AWS accesskubectl- Kubernetes CLI accessshell-init- Shell startup files (git, tools, etc.)
--workdir=~/git/work/il- Restricts file access to this directory only--dangerously-skip-permissions- Skips permission prompts for smooth operation
# Start interactive session
csb