What problem does it solve?
Secrets leakage in Claude Code sessions is a critical risk. This Skill provides secure-by-default environment variable management to mask and restrict secrets, preventing exposure in terminals, logs, and the model context.
Core Features & Use Cases
- Schema-driven masking: Uses a .env.schema to mark sensitive variables and ensure values never appear in outputs.
- Safe validation and access: varlock load validates presence and types without revealing secret values; supports masking in logs and reports.
- Secure command execution: Use varlock run to inject validated vars into commands without printing secrets; supports integration with CI/CD and containers.
- Real-world workflow: Protects API keys during local development and in automated deployment pipelines.
Quick Start
Install Varlock CLI: curl -sSfL https://varlock.dev/install.sh | sh -s -- --force-no-brew
Add to PATH: export PATH="$HOME/.varlock/bin:$PATH"
Verify: varlock --version
Initialize project: varlock init
Or create manually: touch .env.schema