Developers
Use secrets in VS Code
Insert or copy secrets and pull .env files from the command palette.
- Install the KeyValt extension for VS Code (link on Developer → CLI & Integrations).
- Press Ctrl/⌘ + Shift + P and run KeyValt: Sign In. Enter your KeyValt address, open the approval page and approve the code.
- Run KeyValt: Unlock and enter your master password. The status bar shows 🔓 while unlocked.
- Use:
- KeyValt: Insert Secret — pick an item and key; the value is typed at the cursor.
- KeyValt: Copy Secret — copied, then cleared from the clipboard after a short time.
- KeyValt: Pull .env File — pick a project and environment and save the file.
- KeyValt: Lock locks it; it also locks itself when idle.
Add written .env files to .gitignore so they are never committed.