Coding with AI but still copy-pasting API keys by hand?
Vault lets you manage all your secrets with natural language. Just say "remember my OpenAI key" โ that's it.
If you use Claude Code, you've hit these walls:
- ๐ Need an API key mid-deploy โ scramble through notes to find it
- ๐คฆ Accidentally commit a secret to git โ panic mode
- ๐ป Switch to a new Mac โ reconfigure every single key from scratch
- ๐
.envfiles scattered across dozens of projects โ unmanageable
Vault turns AI into your secret keeper โ encrypted, synced, zero friction.
| Vault | .env files | 1Password CLI | System Keychain | |
|---|---|---|---|---|
| AI-native conversational UI | โ | โ | โ | โ |
| End-to-end encryption (AES-256-GCM) | โ | โ | โ | โ |
| iCloud auto-sync | โ | โ | Paid | โ |
| Deep Claude Code integration | โ | โ | โ | โ |
| Fully open-source | โ | โ | โ | โ |
| Zero-config setup | โ | โ | โ | โ |
npm install -g @principle2026/vault
vault initThe installer handles everything: CLI setup โ Claude Code skill linking โ first-time passphrase.
Then just talk to Claude Code:
You: Remember my OpenAI key is sk-abc123
AI: โ
Securely saved: openai_key
You: Create a GitHub repo using my saved token
AI: Reading your saved token... โ Repo created โ
You: What secrets do I have?
AI: ๐ openai_key ยท github_token ยท aws_secret
No config files. No CLI flags. Just plain English.
No commands to memorize. AI automatically detects sensitive info and routes it through Vault:
"My password is 123456"โ auto-saved"Remember my sk-xxx"โ recognized as API key, saved"Deploy with my AWS credentials"โ auto-retrieved and used
- AES-256-GCM encryption (the same standard used for classified government communications)
- PBKDF2 key derivation with 100,000 iterations โ brute force is not an option
- Passphrase never touches disk, never uploaded, never shared. Forget it = data gone forever (that's a feature, not a bug)
Encrypted data syncs automatically via iCloud. On a new device:
npm install -g @principle2026/vault
vault init # Same passphrase โ all secrets instantly available| What | Where | Sync |
|---|---|---|
| Encrypted secret data | iCloud ~/.vault-data/ |
โ Automatic |
| CLI + skill link | Local ~/.claude/skills/vault |
Install per device |
Every line of encryption logic is auditable. Don't take our word for it: view the source โ
Vault runs as a Claude Code Skill. AI automatically determines when to invoke it based on context:
| What you say | What AI does |
|---|---|
| "My password is...", "key is...", "token is..." | ๐ Encrypt & save via Vault |
| "Use my xxx key", "the token I saved earlier" | ๐ Retrieve from Vault & use |
| "What secrets do I have?", "List my keys" | ๐ List all saved entries |
| "Delete xxx" | ๐๏ธ Remove from Vault |
Beyond conversational use, you can also operate directly from the terminal:
vault status # Check Vault status
vault set <key> # Interactively save a secret
vault get <key> # Retrieve a secret
vault list # List all secrets
vault delete <key> # Delete a secret
vault reset # Reset (delete all data)For scripts / CI:
VAULT_PASSPHRASE="yourpassword" vault set mykey "myvalue"
VAULT_PASSPHRASE="yourpassword" vault get mykeyโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Passphrase โ
โ (exists only in your head) โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PBKDF2 (100K iterations)
โผ
โโโโโโโโโโโโโโโ
โ Master Key โ โ Same passphrase = same key
โโโโโโโโฌโโโโโโโ (multi-device support)
โ AES-256-GCM
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ Encrypted Secrets โ
โ ~/.vault-data/ โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ iCloud Sync
โผ
โโโโโโโโโโโโโโโโโโโ
โ All Your Macs โ
โ Instant Access โ
โโโโโโโโโโโโโโโโโโโ
Design principles:
- Passphrase is never stored or transmitted โ key is derived in real-time from your input
- Even if iCloud is compromised, data is unreadable without the passphrase
- Even if code is tampered with, the encryption algorithm itself guarantees security (AES-256-GCM is industry standard)
For more granular control over the installation process:
# 1. Install the npm package
npm install -g @principle2026/vault
# 2. Create Claude Code skill link
ln -s $(npm root -g)/@principle2026/vault ~/.claude/skills/vault
# 3. Initialize
vault initQ: What if I forget my passphrase? A: Unrecoverable. By design โ no backdoor means nobody can bypass encryption, including the developer.
Q: Does it work on Windows / Linux?
A: CLI and encryption work on all platforms. iCloud sync is macOS only; other platforms store data locally at ~/.vault-data/.
Q: How is this different from .env files?
A: .env files are plaintext and easily committed to git by mistake. Vault encrypts everything, and AI manages it automatically โ no files to maintain.
Q: Is the passphrase safe? Can AI see it? A: The passphrase is passed to the CLI via environment variable. It's never written to any file or log. AI uses it transiently and does not persist it in conversation history.
- ๐ฆ npm: @principle2026/vault
- ๐ป GitHub: xiaolin26/vault
MIT โ Use freely, modify freely, distribute freely.
In the age of AI-powered coding, secret management should be AI-powered too.
Built with โค๏ธ for the Claude Code community
็จ AI ็ผ็จ๏ผๅด่ฟๅจๆๅจๅคๅถ็ฒ่ดด API Key๏ผ
Vault ่ฎฉไฝ ็จ่ช็ถ่ฏญ่จ็ฎก็ๆๆๅฏ้ฅใ่ฏดไธๅฅ"่ฎฐไฝๆ็ OpenAI ๅฏ้ฅ"๏ผๅฐฑๅคไบใ
็จ Claude Code ๅผๅๆถ๏ผไฝ ไธๅฎ้ๅฐ่ฟ่ฟไบๅบๆฏ๏ผ
- ๐ ้จ็ฝฒ้กน็ฎ้่ฆ API Key๏ผ็ฟป้็ฌ่ฎฐๆๆพๅฐ
- ๐คฆ ๅฏ้ฅๅ่ฟไปฃ็ ่ขซ git ๆไบค๏ผๆ ๅพไธๆน
- ๐ป ๆขไบๅฐ็ต่๏ผๆๆๅฏ้ฅ้ฝ่ฆ้ๆฐ้ ็ฝฎ
- ๐
.envๆไปถๆฃ่ฝๅจๅ ๅไธช้กน็ฎ้๏ผๆ นๆฌ็ฎกไธ่ฟๆฅ
Vault ่งฃๅณ็ๆ ธๅฟ้ฎ้ข๏ผ่ฎฉ AI ๆไธบไฝ ็ๅฏ้ฅ็ฎกๅฎถ๏ผๅฎๅ จใๅๆญฅใ้ถๆฉๆฆใ
| Vault | .env ๆไปถ | 1Password CLI | ็ณป็ป Keychain | |
|---|---|---|---|---|
| AI ๅ็ๅฏน่ฏๅผๆไฝ | โ | โ | โ | โ |
| ็ซฏๅฐ็ซฏๅ ๅฏ (AES-256-GCM) | โ | โ | โ | โ |
| iCloud ่ชๅจๅๆญฅ | โ | โ | ้่ฎข้ | โ |
| Claude Code ๆทฑๅบฆ้ๆ | โ | โ | โ | โ |
| ๅฎๅ จๅผๆบ | โ | โ | โ | โ |
| ้ถ้ ็ฝฎไธๆ | โ | โ | โ | โ |
npm install -g @principle2026/vault
vault initๅฎ่ฃ ่ๆฌ่ชๅจๅฎๆ๏ผCLI ๅฎ่ฃ โ Claude Code ๆ่ฝ้พๆฅ โ ้ฆๆฌกๅฏ็ ่ฎพ็ฝฎใ
็ถๅ๏ผ็ดๆฅ่ท Claude Code ่ฏด่ฏๅฐฑ่ก๏ผ
ไฝ ๏ผ่ฎฐไฝๆ็ OpenAI ๅฏ้ฅๆฏ sk-abc123
AI๏ผโ
ๅทฒๅฎๅ
จไฟๅญ๏ผopenai_key
ไฝ ๏ผ็จๆ็ GitHub token ๅๅปบไธไธช repo
AI๏ผๅฅฝ็๏ผๆญฃๅจ่ฏปๅไฝ ไฟๅญ็ token...โ ไปๅบๅทฒๅๅปบ โ
ไฝ ๏ผๆไฟๅญไบๅชไบๅฏ้ฅ๏ผ
AI๏ผ๐ openai_key ยท github_token ยท aws_secret
ๅฐฑ่ฟไน็ฎๅใๆฒกๆ้ ็ฝฎๆไปถ๏ผๆฒกๆๅฝไปค่กๅๆฐ๏ผ่ฏดไบบ่ฏๅฐฑ่กใ
ไธ้่ฆ่ฎฐๅฝไปคใAI ่ชๅจ่ฏๅซไฝ ่ฏ้็ๆๆไฟกๆฏ๏ผไธปๅจไฝฟ็จ Vault ไฟๅญ๏ผ
"ๅฏ็ ๆฏ 123456"โ ่ชๅจไฟๅญ"่ฎฐไฝๆ็ sk-xxx"โ ่ชๅจ่ฏๅซไธบ API Key ๅนถไฟๅญ"ๅธฎๆ้จ็ฝฒ๏ผ็จไนๅ็ AWS ๅฏ้ฅ"โ ่ชๅจ่ฏปๅๅนถไฝฟ็จ
- AES-256-GCM ๅ ๅฏ๏ผๅ็บงๅซ็จไบๆฟๅบๆบๅฏ้ไฟก๏ผ
- PBKDF2 ๅฏ้ฅๆดพ็๏ผ100,000 ๆฌก่ฟญไปฃ๏ผๆดๅ็ ด่งฃ๏ผๆณ้ฝๅซๆณ
- ๅฏ็ ไธ่ฝ็๏ผไธไธไผ ๏ผไธๅ ฑไบซใๅฟ่ฎฐๅฏ็ = ๆฐๆฎไธๅฏๆขๅค๏ผ่ฟๆฏ feature๏ผไธๆฏ bug๏ผ
ๅ ๅฏๅ็ๆฐๆฎ้่ฟ iCloud ่ชๅจๅๆญฅใๆฐ่ฎพๅคๅช้๏ผ
npm install -g @principle2026/vault
vault init # ่พๅ
ฅ็ธๅๅฏ็ ๏ผๆๆๅฏ้ฅ็ซๅณๅฏ็จ| ๅ ๅฎน | ๅญๅจไฝ็ฝฎ | ๅๆญฅ |
|---|---|---|
| ๅ ๅฏๅฏ้ฅๆฐๆฎ | iCloud ~/.vault-data/ |
โ ่ชๅจ |
| CLI + ๆ่ฝ้พๆฅ | ๆฌๅฐ ~/.claude/skills/vault |
ๆฏๅฐ่ฎพๅคๅ่ชๅฎ่ฃ |
ๆฏไธ่กๅ ๅฏ้ป่พ้ฝๅฏๅฎก่ฎกใไธไฟก๏ผ่ชๅทฑ็๏ผๆบไปฃ็ โ
Vault ไฝไธบ Claude Code ็ๆ่ฝ๏ผSkill๏ผ่ฟ่ก๏ผAI ไผๆ นๆฎไธไธๆ่ชๅจๅคๆญไฝๆถไฝฟ็จ๏ผ
| ไฝ ่ฏด็่ฏ | AI ็่กไธบ |
|---|---|
| "ๅฏ็ ๆฏ..."ใ"key ๆฏ..."ใ"token ๆฏ..." | ๐ ็จ Vault ๅ ๅฏไฟๅญ |
| "็จๆ็ xxx ๅฏ้ฅ"ใ"ไนๅไฟๅญ็ token" | ๐ ไป Vault ่ฏปๅๅนถไฝฟ็จ |
| "ๆๅชไบๅฏ้ฅ๏ผ"ใ"ๅๅบๆ็ๅฏ็ " | ๐ ๅๅบๆๆๅทฒไฟๅญ้กน |
| "ๅ ้ค xxx" | ๐๏ธ ไป Vault ็งป้ค |
้คไบๅฏน่ฏๅผไฝฟ็จ๏ผไฝ ไนๅฏไปฅ็ดๆฅๅจ็ป็ซฏๆไฝ๏ผ
vault status # ๆฅ็ Vault ็ถๆ
vault set <key> # ไบคไบๅผไฟๅญๅฏ้ฅ
vault get <key> # ่ทๅๅฏ้ฅ
vault list # ๅๅบๆๆๅฏ้ฅ
vault delete <key> # ๅ ้คๅฏ้ฅ
vault reset # ้็ฝฎ๏ผๅ ้คๆๆๆฐๆฎ๏ผ่ๆฌ / CI ไธญไฝฟ็จ๏ผ
VAULT_PASSPHRASE="yourpassword" vault set mykey "myvalue"
VAULT_PASSPHRASE="yourpassword" vault get mykeyโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ไฝ ็ๅฏ็ โ
โ ๏ผๅชๅญๅจไฝ ่ไธญ๏ผ โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PBKDF2 (100K iterations)
โผ
โโโโโโโโโโโโโโโ
โ ไธปๅฏ้ฅ โ โ ็ธๅๅฏ็ = ็ธๅๅฏ้ฅ
โโโโโโโโฌโโโโโโโ (ๆฏๆๅค่ฎพๅค)
โ AES-256-GCM
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๅ ๅฏๅ็ๅฏ้ฅๆฐๆฎ โ
โ ~/.vault-data/ โ
โโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ iCloud ๅๆญฅ
โผ
โโโโโโโโโโโโโโโโโโโ
โ ๆๆ Mac ่ฎพๅค โ
โ ๅณๆถๅๆญฅๅฏ็จ โ
โโโโโโโโโโโโโโโโโโโ
่ฎพ่ฎกๅๅ๏ผ
- ๅฏ็ ไธๅญๅจใไธไผ ่พ โ ๆฏๆฌกไฝฟ็จๆถไปไฝ ็่พๅ ฅๅฎๆถๆดพ็ๅฏ้ฅ
- ๅณไฝฟ iCloud ่ขซๅ ฅไพต๏ผๆฒกๆๅฏ็ ไนๆ ๆณ่งฃๅฏ
- ๅณไฝฟไปฃ็ ่ขซๆถๆไฟฎๆน๏ผๅ ๅฏ็ฎๆณๆฌ่บซไฟ่ฏๅฎๅ จ๏ผAES-256-GCM ๆฏ่กไธๆ ๅ๏ผ
ๅฆๆไฝ ๆณๆด็ฒพ็ปๅฐๆงๅถๅฎ่ฃ ่ฟ็จ๏ผ
# 1. ๅฎ่ฃ
npm ๅ
npm install -g @principle2026/vault
# 2. ๅๅปบ Claude Code ๆ่ฝ้พๆฅ
ln -s $(npm root -g)/@principle2026/vault ~/.claude/skills/vault
# 3. ๅๅงๅ
vault initQ: ๅฟ่ฎฐๅฏ็ ๆไนๅ๏ผ A: ๆ ๆณๆขๅคใ่ฟๆฏๅปๆ็ๅฎๅ จ่ฎพ่ฎก โ ๆฒกๆๅ้จๆๅณ็ๆฒกๆไบบ่ฝ็ป่ฟๅ ๅฏ๏ผๅ ๆฌๅผๅ่ ใ
Q: ๆฏๆ Windows / Linux ๅ๏ผ
A: CLI ๅๅ ๅฏๅ่ฝๅ
จๅนณๅฐๅฏ็จใiCloud ๅๆญฅไป
้ macOS๏ผๅ
ถไปๅนณๅฐๆฐๆฎๅญๅจๅจๆฌๅฐ ~/.vault-data/ใ
Q: ๅ .env ๆไปถๆไปไนๅบๅซ๏ผ
A: .env ๆฏๆๆๅญๅจ๏ผๅฎนๆ่ขซ่ฏฏๆไบคๅฐ gitใVault ๅ
จ็จๅ ๅฏ๏ผไธ AI ไผ่ชๅจ็ฎก็๏ผไฝ ไธ้่ฆๆๅจ็ปดๆคไปปไฝๆไปถใ
Q: ๅฏ็ ๅฎๅ จๅ๏ผไผ่ขซ AI ็ๅฐๅ๏ผ A: ๅฏ็ ้่ฟ็ฏๅขๅ้ไผ ้็ป CLI๏ผไธไผ่ขซๅๅ ฅไปปไฝๆไปถๆๆฅๅฟใAI ็จๅฎๅณไธข๏ผไธไผ่ฎฐๅฝๅฐๅฏน่ฏๅๅฒไธญใ
- ๐ฆ npm: @principle2026/vault
- ๐ป GitHub: xiaolin26/vault
MIT โ ่ช็ฑไฝฟ็จ๏ผ่ช็ฑไฟฎๆน๏ผ่ช็ฑๅๅใ
็จ AI ๅไปฃ็ ็ๆถไปฃ๏ผๅฏ็ ็ฎก็ไน่ฏฅ AI ๅไบใ
Built with โค๏ธ for the Claude Code community