Skip to content

Developers

Use secrets in VS Code

Insert or copy secrets and pull .env files from the command palette.

  1. Install the KeyValt extension for VS Code (link on Developer → CLI & Integrations).
  2. Press Ctrl/⌘ + Shift + P and run KeyValt: Sign In. Enter your KeyValt address, open the approval page and approve the code.
  3. Run KeyValt: Unlock and enter your master password. The status bar shows 🔓 while unlocked.
  4. 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.
  1. KeyValt: Lock locks it; it also locks itself when idle.

Add written .env files to .gitignore so they are never committed.