vault
Skill15 starsChanged 10 months agoApache-2.0View on GitHub
Encrypted secrets vault for AI coding agents. Store API keys, passwords, and tokens with `age` (public-key encryption) and `sops` (encrypted YAML secrets files). Never plaintext.
- Reads credentials
- Installs packages
10 other projects use a version of this.
Adopted by
Most recently taken up by
- TeamHelix-AI/helixtheir own version, first seen Sep 12, 2026
- M1hairu/skillstheir own version, first seen Aug 12, 2026
- kriscard/Skillstheir own version, first seen Aug 10, 2026
- devnomad-byte/techneeringtheir own version, first seen Jun 23, 2026
- yiyaw-lab/agent-armortheir own version, first seen Jun 22, 2026
- Aidas-dev/k8s-agent-skillstheir own version, first seen Jun 11, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- GadaaLabs/claude-code-on-steroids★ 67same name
- kriscard/Skills★ 14same name
- devnomad-byte/techneering★ 13same name
- Marazii/research-co-pilot★ 13same name
- Aidas-dev/k8s-agent-skills★ 4same name
- M1hairu/skills★ 2same name
- magnusrodseth/dotfiles★ 2same name
- thoreinstein/obsidian-rag★ 2same name
- TeamHelix-AI/helix★ 1same name
- yiyaw-lab/agent-armor★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- browser-opsSkill
- chatgpt-searchSkill
- google-workspace-opsSkill
- gsd-coordinatorSkill
- image-genSkill
- peekabooSkill
- summarizeSkill
- trueskill-rankSkill
- video-genSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Keep your secrets encrypted.
- Very specific: line 31
After installing, tell your agent: "Check UPDATES.md in the vault skill for any new features or changes."
- Very specific: line 33
When updating, tell your agent: "Read UPDATE-GUIDE.md and apply the latest changes from UPDATES.md."
- Very specific: line 35
Follow UPDATE-GUIDE.md so customized local files are diffed before any overwrite.
- Very specific: line 128
Every command has --help. When something goes wrong, error messages tell you what happened and what to do.
- Distinctive: line 167
Never write secrets to files that get committed to git
- Distinctive: line 168
Never include secrets in prompts or logs
- Very specific: line 169
Prefer vault.sh exec over eval "$(vault.sh source)" when possible
- Very specific: line 170
After using eval source, clean up with unset for sensitive vars
- Distinctive: line 176
All paths are configurable via environment variables:
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
vault
Keep your secrets encrypted. API keys, passwords, tokens -- locked in a vault that only you can open. Your AI agent gets secrets when it needs them, then forgets them.
Script: ./scripts/vault.sh
Setup: ./scripts/setup.sh (run once, takes 30 seconds)
Setup
cd /path/to/skills/vault
./scripts/setup.sh- Claude Code: copy this skill folder into
.claude/skills/vault/ - Codex CLI: append this SKILL.md content to your project's root
AGENTS.md
For the full installation walkthrough (prerequisites, verification, troubleshooting), see references/installation-guide.md.
Staying Updated
This skill ships with an UPDATES.md changelog and UPDATE-GUIDE.md for your AI agent.
After installing, tell your agent: "Check UPDATES.md in the vault skill for any new features or changes."
When updating, tell your agent: "Read UPDATE-GUIDE.md and apply the latest changes from UPDATES.md."
Follow UPDATE-GUIDE.md so customized local files are diffed before any overwrite.
Why this matters
Right now, your secrets probably live in a .env file. Plain text. Anyone who can see your files -- a colleague, a stolen laptop, a backup that leaks, an AI agent that goes rogue -- reads every secret you have.
This vault encrypts them. Even if someone copies your entire hard drive, they can't read your secrets without your encryption key. And your AI agent only sees secrets for the instant it needs them -- they never sit in memory or get written to a file.
Before (plaintext .env):
OPENAI_API_KEY=sk-abc123-real-key-here <- anyone can read this
DATABASE_URL=postgres://admin:password@... <- sitting in plain text
STRIPE_SECRET=sk_live_... <- one leak away from disasterAfter (encrypted vault):
OPENAI_API_KEY: ENC[AES256_GCM,data:8f3k2...] <- gibberish without your key
DATABASE_URL: ENC[AES256_GCM,data:j4m9x...] <- encrypted at rest
STRIPE_SECRET: ENC[AES256_GCM,data:p2w7n...] <- safe even if file leaksThe flow: secret -> encrypt -> vault -> agent needs it -> decrypt to memory -> use -> forget
Quick Start
Three steps. That's it.
1. Run setup
cd path/to/this/skill
./scripts/setup.shThis installs the encryption tools (if needed), creates your vault, and generates your encryption key. One command, done.
2. Add a secret
./scripts/vault.sh set MY_API_KEY "sk-your-actual-key"3. Get it back
./scripts/vault.sh get MY_API_KEYYour vault is working. Secrets are encrypted on disk, decrypted only when you ask for them.
Commands
VAULT="./scripts/vault.sh"
# Store a secret
$VAULT set API_KEY "sk-abc123"
# Retrieve a secret (outputs to stdout, no trailing newline)
$VAULT get API_KEY
# List all secret names (not their values)
$VAULT list
# Export all secrets to your current shell
eval "$($VAULT source)"
# Run a command with secrets injected as env vars
$VAULT exec node server.js
# Check that vault works
$VAULT verify
# Full health check (tools, permissions, encryption test)
$VAULT doctor
# First-time setup
$VAULT setup
# Help for any command
$VAULT get --help
$VAULT set --help
$VAULT exec --help
$VAULT doctor --helpEvery command has --help. When something goes wrong, error messages tell you what happened and what to do.
For AI agents
This is the pattern for injecting secrets into AI agent workflows.
Pattern 1: Variable assignment
# Agent needs one secret for a specific command
export TOKEN=$(./scripts/vault.sh get MY_API_KEY)
curl -H "Authorization: Bearer $TOKEN" https://api.example.com
unset TOKENPattern 2: Source all secrets
# Load everything into the current shell
eval "$(./scripts/vault.sh source)"
# Now all secrets are available as env vars
echo $MY_API_KEY # available
echo $DATABASE_URL # availablePattern 3: Scoped execution
# Run a command with secrets -- they don't leak to the parent shell
./scripts/vault.sh exec python my_script.py
# Secrets are gone after the command finishesPattern 3 is the safest. Secrets exist only for the duration of the command. They don't linger in your shell's environment. Prefer this when possible.
Agent safety rules
- Never write secrets to files that get committed to git
- Never include secrets in prompts or logs
- Prefer
vault.sh execovereval "$(vault.sh source)"when possible - After using
eval source, clean up withunsetfor sensitive vars
Configuration
All paths are configurable via environment variables:
| Variable | Default | What it controls |
VAULT_DIR | ~/.shit | Where the vault lives |
VAULT_FILE | $VAULT_DIR/vault.enc.yaml | The encrypted secrets file |
SOPS_AGE_KEY_FILE | $VAULT_DIR/.age-identity | Your encryption key |
Customize the vault path. The default (~/.shit) is intentionally misleading -- it's an extra layer of obscurity on top of the real encryption. Pick something that makes sense for your setup. Some options:
# In your shell profile (~/.zshrc or ~/.bashrc):
export VAULT_DIR="$HOME/.config/vault" # conventional
export VAULT_DIR="$HOME/.cache/.internal" # hidden in cache
export VAULT_DIR="$HOME/.local/secrets" # descriptiveThen re-run setup: VAULT_DIR="$HOME/.config/vault" ./scripts/setup.sh
How it works (under the hood)
Two tools do the heavy lifting:
- age -- Modern encryption. Creates a key pair (public + private). Your secrets are encrypted with the public key and can only be decrypted with the private key. No passwords to remember.
- sops -- Wraps age to encrypt individual fields in a YAML file. Each secret value is encrypted separately, but key names stay visible (so you can see what's in the vault without decrypting).
The vault directory looks like this:
~/.shit/ chmod 700 (only you can access)
.age-identity Your encryption key (chmod 600)
vault.enc.yaml Your encrypted secrets
.sops.yaml Config telling sops which key to useKey security facts:
- Secrets are encrypted with X25519 (the elliptic-curve key-exchange algorithm Signal uses)
- Decrypted values only exist in memory -- stdout, pipes, env vars
- Nothing writes plaintext to disk, ever
- The
vault.shscript validates all input to prevent injection attacks - File permissions are checked and auto-fixed on every operation
What this protects against (and what it doesn't)
Protected:
- Casual file browsing (encrypted, not readable)
- Accidental git commits (encrypted file is safe to commit, though not recommended)
- Laptop theft (encrypted without the key is useless)
- AI agent data exfiltration (secrets aren't in plaintext files)
- Plaintext exposure in logs or backups
NOT protected:
- Someone with access to your logged-in user account (they can run vault.sh)
- Physical access to your unlocked computer
- Malware running as your user (it can read the key file)
- Key compromise (if someone gets
.age-identity, they get everything)
Bottom line: This is dramatically better than .env files. It's not a replacement for a dedicated secrets manager in production infrastructure (use HashiCorp Vault, AWS Secrets Manager, etc. for that). It's for your development machine, your personal API keys, your local credentials.
Error Handling
| Problem | Solution |
sops not found | brew install sops (Mac) or see sops install guide |
age not found | brew install age (Mac) or see age install guide |
jq not found | brew install jq (Mac) or sudo apt install jq (Linux) |
Age identity not found | Run ./scripts/setup.sh to create it |
Vault decrypted but no secrets found | Normal for a fresh vault -- add a secret with vault.sh set |
Failed to set key | Check that key name uses only letters, digits, and underscores |
Key not found | Run vault.sh list to see available keys |
Permission denied | Run vault.sh doctor to check and fix permissions |
| Everything broken | Run vault.sh doctor -- it checks everything and tells you what's wrong |
Anti-Patterns
| Do NOT | Do instead |
Store secrets in .env plaintext files | Store secrets with ./scripts/vault.sh set ... |
| Leave secrets exported in shell for long sessions | Prefer ./scripts/vault.sh exec <command> for scoped access |
| Print secrets to logs or command history | Use env vars and avoid echoing secret values |
| Commit decrypted outputs or temp files | Keep secrets encrypted at rest and out of git |
Skip vault.sh doctor when setup fails | Run vault.sh doctor first, then fix reported issues |
Bundled Resources Index
| Path | What | When to load |
./references/installation-guide.md | Detailed install walkthrough for Claude Code and Codex CLI | First-time setup or environment repair |
./scripts/vault.sh | Vault CLI -- the main interface | Always |
./scripts/setup.sh | First-time setup script | Initial setup only |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

