StackEngine CLI
Local CLI that redacts secrets into tokens before LLM exposure and restores them afterward.
Tested on macOS and Linux
Use it
macOS arm64
npm install -g stackengine
npm install -g stackengine
Check that it works
stackengine --version && which stackengine && stackengine --helpThe output should contain “stackengine v1.0.6”.
First thing to try
echo -n "api_key: sk-proj-abc123secretkeyXYZ" | pbcopy
pbpaste | cat -A
stackengine copy 2>&1
pbpaste 2>&1Run stackengine copy to redact secrets in your clipboard.
Linux x86_64
install stackengine globally via npm
npm install -g stackengine
Check that it works
stackengine --versionThe output should contain “stackengine v1.0.6”.
First thing to try
cat > /tmp/prod.yaml <<'YAML'
apiVersion: v1
kind: Secret
metadata:
name: test-secret
namespace: prod
data:
# database uri with password
db_uri: "postgres://user:MySup3rDBPassword!@db.example.com:5432/mydb"
api_key: "AKIAIOSFODNN7EXAMPLE"
# PEM block
private_key: |
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA7b...
-----END RSA PRIVATE KEY-----
YAML
cat /tmp/prod.yaml
stackengine redact /tmp/prod.yaml -o /tmp/prod.redacted.yaml && echo "EXIT:$?" && ls -lh /tmp/prod.redacted.yaml .stackengine/vault.lock && cat /tmp/prod.redacted.yamlRun stackengine copy to redact secrets in your clipboard.
What it does
- Redact secrets in your clipboard in placeTested
How to use it
- Copy text that contains a secret to the clipboard.
- Run
stackengine copyto replace the secrets in the clipboard with tokens. - Paste as usual to use the redacted text.
- Redact secrets in a fileNot tested
- Restore secrets from a saved token mapNot tested
- Start a local proxy that redacts secretsNot shown working
How far pickfit got
macOS arm64
- Installs
- Starts
- 1 of 4 features work
- Works offline
Linux x86_64
- Installs
- Starts
- 1 of 4 features work
- Works offline
Other systems
Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- redact secrets in a configuration file
- restore secrets from LLM response
- block git commits containing hardcoded credentials
- proxy LLM API traffic for real-time redaction
- scan a file for secrets without modifying it
An alternative to Gitleaks / TruffleHog and Detect-Secrets.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
macOS arm64
Its service answers requests
- Replayed from scratch
- Works offline
- Checked on 1 Nov 2026
- Version 1.0.6
Differences the test machine hit
- README: brew tap gweisec/stackengine / brew install stackengine
In the test: npm install -g stackengine works; brew not tested but npm is recommended and succeeded
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 1 Nov 2026
- Version 1.0.6
Differences the test machine hit
- README: stackengine copy reads clipboard
In the test: headless Linux has no display; tool exits 1 with 'Cannot access system clipboard (timeout or no GUI display found)'