Skip to content

xiaolin26/vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

47 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Vault

English | ไธญๆ–‡


Vault โ€” AI-Native Secret Management for Claude Code

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.


The Problem

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
  • ๐Ÿ“‹ .env files scattered across dozens of projects โ€” unmanageable

Vault turns AI into your secret keeper โ€” encrypted, synced, zero friction.


Why Vault

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 โœ… โœ… โŒ โŒ

Get Started in 30 Seconds

npm install -g @principle2026/vault
vault init

The 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.


Key Features

๐Ÿ—ฃ๏ธ Conversational โ€” Talk, Don't Type Commands

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

๐Ÿ” Military-Grade Encryption โ€” Your Keys, Only Yours

  • 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)

โ˜๏ธ iCloud Sync โ€” Switch Devices Seamlessly

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

๐Ÿ”“ Fully Open-Source โ€” Trust Code, Not Promises

Every line of encryption logic is auditable. Don't take our word for it: view the source โ†’


How AI Decides When to Use Vault

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

โš ๏ธ Critical design: When AI detects passwords / API keys / sensitive data, it automatically routes through Vault โ€” never saved to CLAUDE.md or any plaintext file.


CLI Reference

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

Security Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              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)

Manual Installation (Optional)

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 init

FAQ

Q: 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.


Links


License

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



Vault โ€” AI ๆ—ถไปฃ็š„ๅฏ†็ ็ฎก็†๏ผŒไธ“ไธบ Claude Code ่€Œ็”Ÿ

English | ไธญๆ–‡

็”จ AI ็ผ–็จ‹๏ผŒๅด่ฟ˜ๅœจๆ‰‹ๅŠจๅคๅˆถ็ฒ˜่ดด API Key๏ผŸ

Vault ่ฎฉไฝ ็”จ่‡ช็„ถ่ฏญ่จ€็ฎก็†ๆ‰€ๆœ‰ๅฏ†้’ฅใ€‚่ฏดไธ€ๅฅ"่ฎฐไฝๆˆ‘็š„ OpenAI ๅฏ†้’ฅ"๏ผŒๅฐฑๅคŸไบ†ใ€‚


็—›็‚น

็”จ Claude Code ๅผ€ๅ‘ๆ—ถ๏ผŒไฝ ไธ€ๅฎš้‡ๅˆฐ่ฟ‡่ฟ™ไบ›ๅœบๆ™ฏ๏ผš

  • ๐Ÿ”‘ ้ƒจ็ฝฒ้กน็›ฎ้œ€่ฆ API Key๏ผŒ็ฟป้็ฌ”่ฎฐๆ‰ๆ‰พๅˆฐ
  • ๐Ÿคฆ ๅฏ†้’ฅๅ†™่ฟ›ไปฃ็ ่ขซ git ๆไบค๏ผŒๆ…Œๅพ—ไธ€ๆ‰น
  • ๐Ÿ’ป ๆขไบ†ๅฐ็”ต่„‘๏ผŒๆ‰€ๆœ‰ๅฏ†้’ฅ้ƒฝ่ฆ้‡ๆ–ฐ้…็ฝฎ
  • ๐Ÿ“‹ .env ๆ–‡ไปถๆ•ฃ่ฝๅœจๅ‡ ๅไธช้กน็›ฎ้‡Œ๏ผŒๆ นๆœฌ็ฎกไธ่ฟ‡ๆฅ

Vault ่งฃๅ†ณ็š„ๆ ธๅฟƒ้—ฎ้ข˜๏ผš่ฎฉ AI ๆˆไธบไฝ ็š„ๅฏ†้’ฅ็ฎกๅฎถ๏ผŒๅฎ‰ๅ…จใ€ๅŒๆญฅใ€้›ถๆ‘ฉๆ“ฆใ€‚


ไธบไป€ไนˆ้€‰ Vault

Vault .env ๆ–‡ไปถ 1Password CLI ็ณป็ปŸ Keychain
AI ๅŽŸ็”Ÿๅฏน่ฏๅผๆ“ไฝœ โœ… โŒ โŒ โŒ
็ซฏๅˆฐ็ซฏๅŠ ๅฏ† (AES-256-GCM) โœ… โŒ โœ… โœ…
iCloud ่‡ชๅŠจๅŒๆญฅ โœ… โŒ ้œ€่ฎข้˜… โŒ
Claude Code ๆทฑๅบฆ้›†ๆˆ โœ… โŒ โŒ โŒ
ๅฎŒๅ…จๅผ€ๆบ โœ… โ€” โŒ โŒ
้›ถ้…็ฝฎไธŠๆ‰‹ โœ… โœ… โŒ โŒ

30 ็ง’ไธŠๆ‰‹

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 ๅŒๆญฅ โ€” ๆข็”ต่„‘ๆ— ๆ„Ÿ่ก”ๆŽฅ

ๅŠ ๅฏ†ๅŽ็š„ๆ•ฐๆฎ้€š่ฟ‡ iCloud ่‡ชๅŠจๅŒๆญฅใ€‚ๆ–ฐ่ฎพๅค‡ๅช้œ€๏ผš

npm install -g @principle2026/vault
vault init    # ่พ“ๅ…ฅ็›ธๅŒๅฏ†็ ๏ผŒๆ‰€ๆœ‰ๅฏ†้’ฅ็ซ‹ๅณๅฏ็”จ
ๅ†…ๅฎน ๅญ˜ๅ‚จไฝ็ฝฎ ๅŒๆญฅ
ๅŠ ๅฏ†ๅฏ†้’ฅๆ•ฐๆฎ iCloud ~/.vault-data/ โœ… ่‡ชๅŠจ
CLI + ๆŠ€่ƒฝ้“พๆŽฅ ๆœฌๅœฐ ~/.claude/skills/vault ๆฏๅฐ่ฎพๅค‡ๅ„่‡ชๅฎ‰่ฃ…

๐Ÿ”“ ๅฎŒๅ…จๅผ€ๆบ โ€” ไฟกไปปไธ้ ๆ‰ฟ่ฏบ๏ผŒ้ ไปฃ็ 

ๆฏไธ€่กŒๅŠ ๅฏ†้€ป่พ‘้ƒฝๅฏๅฎก่ฎกใ€‚ไธไฟก๏ผŸ่‡ชๅทฑ็œ‹๏ผšๆบไปฃ็  โ†’


AI ่‡ชๅŠจ่ฏ†ๅˆซ่ง„ๅˆ™

Vault ไฝœไธบ Claude Code ็š„ๆŠ€่ƒฝ๏ผˆSkill๏ผ‰่ฟ่กŒ๏ผŒAI ไผšๆ นๆฎไธŠไธ‹ๆ–‡่‡ชๅŠจๅˆคๆ–ญไฝ•ๆ—ถไฝฟ็”จ๏ผš

ไฝ ่ฏด็š„่ฏ AI ็š„่กŒไธบ
"ๅฏ†็ ๆ˜ฏ..."ใ€"key ๆ˜ฏ..."ใ€"token ๆ˜ฏ..." ๐Ÿ”’ ็”จ Vault ๅŠ ๅฏ†ไฟๅญ˜
"็”จๆˆ‘็š„ xxx ๅฏ†้’ฅ"ใ€"ไน‹ๅ‰ไฟๅญ˜็š„ token" ๐Ÿ”“ ไปŽ Vault ่ฏปๅ–ๅนถไฝฟ็”จ
"ๆœ‰ๅ“ชไบ›ๅฏ†้’ฅ๏ผŸ"ใ€"ๅˆ—ๅ‡บๆˆ‘็š„ๅฏ†็ " ๐Ÿ“‹ ๅˆ—ๅ‡บๆ‰€ๆœ‰ๅทฒไฟๅญ˜้กน
"ๅˆ ้™ค xxx" ๐Ÿ—‘๏ธ ไปŽ Vault ็งป้™ค

โš ๏ธ ๅ…ณ้”ฎ่ฎพ่ฎก๏ผšๅฝ“ AI ๆฃ€ๆต‹ๅˆฐๅฏ†็  / API Key ็ญ‰ๆ•ๆ„Ÿไฟกๆฏๆ—ถ๏ผŒไผš่‡ชๅŠจ่ตฐ Vault ้€š้“๏ผŒ็ปไธไผšไฟๅญ˜ๅˆฐ CLAUDE.md ๆˆ–ๅ…ถไป–ๆ˜Žๆ–‡ๆ–‡ไปถใ€‚


CLI ๅ‘ฝไปคๅ‚่€ƒ

้™คไบ†ๅฏน่ฏๅผไฝฟ็”จ๏ผŒไฝ ไนŸๅฏไปฅ็›ดๆŽฅๅœจ็ปˆ็ซฏๆ“ไฝœ๏ผš

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 init

ๅธธ่ง้—ฎ้ข˜

Q: ๅฟ˜่ฎฐๅฏ†็ ๆ€ŽไนˆๅŠž๏ผŸ A: ๆ— ๆณ•ๆขๅคใ€‚่ฟ™ๆ˜ฏๅˆปๆ„็š„ๅฎ‰ๅ…จ่ฎพ่ฎก โ€” ๆฒกๆœ‰ๅŽ้—จๆ„ๅ‘ณ็€ๆฒกๆœ‰ไบบ่ƒฝ็ป•่ฟ‡ๅŠ ๅฏ†๏ผŒๅŒ…ๆ‹ฌๅผ€ๅ‘่€…ใ€‚

Q: ๆ”ฏๆŒ Windows / Linux ๅ—๏ผŸ A: CLI ๅ’ŒๅŠ ๅฏ†ๅŠŸ่ƒฝๅ…จๅนณๅฐๅฏ็”จใ€‚iCloud ๅŒๆญฅไป…้™ macOS๏ผŒๅ…ถไป–ๅนณๅฐๆ•ฐๆฎๅญ˜ๅ‚จๅœจๆœฌๅœฐ ~/.vault-data/ใ€‚

Q: ๅ’Œ .env ๆ–‡ไปถๆœ‰ไป€ไนˆๅŒบๅˆซ๏ผŸ A: .env ๆ˜ฏๆ˜Žๆ–‡ๅญ˜ๅ‚จ๏ผŒๅฎนๆ˜“่ขซ่ฏฏๆไบคๅˆฐ gitใ€‚Vault ๅ…จ็จ‹ๅŠ ๅฏ†๏ผŒไธ” AI ไผš่‡ชๅŠจ็ฎก็†๏ผŒไฝ ไธ้œ€่ฆๆ‰‹ๅŠจ็ปดๆŠคไปปไฝ•ๆ–‡ไปถใ€‚

Q: ๅฏ†็ ๅฎ‰ๅ…จๅ—๏ผŸไผš่ขซ AI ็œ‹ๅˆฐๅ—๏ผŸ A: ๅฏ†็ ้€š่ฟ‡็Žฏๅขƒๅ˜้‡ไผ ้€’็ป™ CLI๏ผŒไธไผš่ขซๅ†™ๅ…ฅไปปไฝ•ๆ–‡ไปถๆˆ–ๆ—ฅๅฟ—ใ€‚AI ็”จๅฎŒๅณไธข๏ผŒไธไผš่ฎฐๅฝ•ๅˆฐๅฏน่ฏๅކๅฒไธญใ€‚


้“พๆŽฅ


License

MIT โ€” ่‡ช็”ฑไฝฟ็”จ๏ผŒ่‡ช็”ฑไฟฎๆ”น๏ผŒ่‡ช็”ฑๅˆ†ๅ‘ใ€‚


็”จ AI ๅ†™ไปฃ็ ็š„ๆ—ถไปฃ๏ผŒๅฏ†็ ็ฎก็†ไนŸ่ฏฅ AI ๅŒ–ไบ†ใ€‚
Built with โค๏ธ for the Claude Code community

About

๐Ÿ” AI-native secret manager for Claude Code. Encrypted, synced via iCloud, fully open-source

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors