Visual Studio Code Extension
VS Code extension that integrates Keeper Security vault functionality directly into the development workflow.
About
A comprehensive VS Code extension that integrates Keeper Security vault functionality directly into the development workflow. The extension provides secure secret management capabilities including saving, retrieving, generating, and running commands with secrets from Keeper Security vault.
This enable developers to manage secrets securely without leaving their development environment, while maintaining the highest security standards and providing seamless integration with existing Keeper Security infrastructure.
This extension allows developers to choose between Keeper Commander CLI and Keeper Secrets Manager as the data source for the integration.
Features
Prerequisites
System Requirements:
For CLI Mode:
For KSM Mode:
Install the extension
The Visual Studio Extension can be installed by visiting Extensions tab and search for "Keeper Security". The extension homepage is published at the link below:
If you're using Cursor or any other VS Code Fork, the Keeper extension is also published to the Open VSX Registry here:
Verify Extension Access
Usage
Available Commands
Once authenticated, you can access the following commands through the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
Command Details
Save in Keeper Vault
1. Using Command Palette
Purpose: Save selected text as a secret in Keeper Security vault and replace it with a keeper reference.
Steps:
Save in Keeper Vault
2. Automatic Secret Detection
Purpose: Automatically detect potential secrets in your code for easy identification and securing.
Features:
Supported File Types:
Get from Keeper Vault
Purpose: Insert existing Keeper Security secrets into your code as keeper reference without exposing actual values.
Steps:
Reference Format: keeper://record-uid/field/item
Run Securely
Purpose: Execute a command by injecting secret values fetched from Keeper Vault, based on Keeper references defined in a selected .env file.
Steps:
Note: To make use of the injected secret values in your application, your code must reference the corresponding environment variables (e.g., process.env.DB_PASSWORD, os.environ.get("API_KEY"), etc.). The .env file should contain Keeper references (e.g., DB_PASSWORD=keeper://...) which are resolved at runtime when you use Run Securely.
Choose Folder
Purpose: Specify the vault folder where secrets for this workspace will be stored.
Steps:
Generate Password
Purpose: Generate secure passwords and store them in Keeper Security vault.
Steps:
Open Logs
Purpose: View extension activity logs for debugging and monitoring.
Steps:
Authenticate (KSM Mode Only)
Purpose: Re-authenticate KSM using various configuration options like one-time token, base64 encoded string, or JSON file configuration. Can be use this when you need to use different secrets manager application.
Steps:
Switch to CLI / KSM
Purpose: Switch the extension mode from CLI (Keeper Commander CLI) to KSM (Keeper Secrets Manager) or vice-versa for the current workspace.
Steps:
Extension Settings
The extension provides configuration options:
Note: "Debug mode" and "Mode Type" requires reloading the extension to take effect. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac), then select Developer: Reload Window
Troubleshooting
Debug Mode
Enable debug logging to see detailed information about extension operations:
Common Issues
Generic Issues (Apply to Both CLI and KSM Modes)
1. Extension General Issues
Problem: Extension takes time to fetch secrets, shows loading continuously, fails to resolve keeper references, latest records not displaying from keeper vault, or other unexpected issues.
Solutions:
2. Commands Not Available
Problem: Keeper Security extension commands don't appear in Command Palette
Solution:
3. Extension Not Loading
Problem: Extension fails to activate or shows errors
Solutions:
4. Run Securely Command Issues
Problem: Commands don't have access to injected secrets
Solutions:
5. Folder Selection Issues
Problem: Cannot select or change vault folders
Solutions:
6. Mode Type Issue from settings
Problem: Mode not changing from settings
Solutions:
CLI Mode Specific Issues
7. Keeper Commander CLI Not Found
Problem: "Keeper Commander CLI is not installed" error
Solutions:
8. Authentication Failures (CLI Mode)
Problem: "Keeper Commander CLI is not authenticated" errors
Solutions:
Refer to the Logging in guide for full details.
Note: If you've made configuration changes to the Commander CLI manually, please reload your editor window by pressing Ctrl+Shift+P (or Cmd+Shift+P on Mac), then select Developer: Reload Window.
KSM Mode Specific Issues
9. Command failing for Save and Generate Password (KSM Mode)
Problem: Performed correct steps but still command failing
Solutions: