Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ansible Vault RTNew to Visual Studio Code? Get it now.
Ansible Vault RT

Ansible Vault RT

Alex BerS

|
1 install
| (0) | Free
Real-time editing of Ansible Vault files in VS Code / Antigravity IDE
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ansible Vault RT (Real-Time Editing)

A VS Code / Antigravity IDE / Cursor extension for real-time decryption, in-editor modification, and re-encryption of Ansible Vault files.

Features

  • 🔐 Real-Time In-Editor Editing: Open encrypted Ansible Vault files in VS Code, modify them in-memory, and automatically re-encrypt on save (Cmd+S / Ctrl+S).
  • 📁 Universal File Format Support: Works on any file type (YAML, Shell scripts, JSON, .env, INI, Python, XML, SSH keys, or extensionless secret files).
  • 🔑 Per-Project Encrypted Password Persistence:
    • Securely saves passwords per project/workspace.
    • Encrypted natively in your OS Keychain (macOS Keychain, Windows Credential Manager, Linux Keyring) via SecretStorage API.
    • Automatically decrypts vault files without password prompts once saved.
  • 🛠️ Seamless Error Recovery:
    • Prompts to update or delete saved passwords if the stored password becomes invalid.
  • ⚡ Multi-Location Menu Integration: Easily trigger vault editing from editor title bar buttons, editor context menus, File Explorer context menus, or Command Palette.

Commands

Command Description Shortcut / Menu Location
ansible-vault-rt.editVaultFile Ansible Vault RT: Edit Vault File
Decrypts and opens the file in a virtual editor tab (or prompts to encrypt plaintext files).
• Editor Title bar (🔒 icon)
• Editor Context Menu
• File Explorer Context Menu
• Command Palette (Cmd+Shift+P)
ansible-vault-rt.showEncryptedFile Ansible Vault RT: Show Encrypted File
Closes decrypted virtual view and returns to the raw encrypted file on disk.
• Editor Title bar (🔓 open lock icon when viewing decrypted tab)
• Command Palette (Cmd+Shift+P)
ansible-vault-rt.clearSavedPassword Ansible Vault RT: Clear Saved Password
Deletes the saved password for the current project from OS Keychain.
• Command Palette (Cmd+Shift+P)

Command Palette — Ansible Vault RT commands


How It Works

1. Opening an Encrypted Vault File

  1. Click the 🔒 icon in the top right editor title bar (or right-click file in File Explorer and select Ansible Vault RT: Edit Vault File).

Edit vault from editor title bar or File Explorer context menu

  1. If a password is saved for the current project, the file opens instantly.
  2. If no password is saved, you will be prompted to enter the Vault password.
  3. After decryption, you will be asked if you want to save the password for the current project.

Password prompt with option to save for the project

2. Saving Changes

  • Edit the decrypted file in the virtual tab.
  • Press Cmd+S (or Ctrl+S).
  • The extension automatically re-encrypts the file using Ansible Vault and writes it back to disk.

3. Clearing / Updating Saved Passwords

  • To delete a saved password: Open Command Palette (Cmd+Shift+P) and execute Ansible Vault RT: Clear Saved Password.
  • If a saved password fails: A dialog will prompt you to either "Enter New Password" (to update/overwrite) or "Delete Saved Password".

Installation (.vsix)

  1. Download the latest .vsix from GitHub Releases.
  2. Open VS Code / Antigravity IDE / Cursor.
  3. Open Extensions view (Cmd+Shift+X).
  4. Click the ... menu in the top right of Extensions view and select Install from VSIX....
  5. Select the downloaded ansible-vault-rt-X.Y.Z.vsix.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft