Installation
Install Vectra Guard on your system with a one-line command or from source.Prerequisites
- macOS / Linux
- Windows
- From source
curlorwget(for downloading the installer)bashshell (for running the installer)
Quick install
The installer defaults to user-space installation (no admin/sudo required).
What the installer does
Detects your system
Automatically detects your OS (macOS, Linux, Windows) and architecture (x86_64, arm64).
Verifies the download
Performs checksum verification to ensure the binary hasn’t been tampered with.
Installs to user-space
Unix: Installs to
$HOME/.local/binWindows: Installs to %LOCALAPPDATA%\VectraGuardUpdates PATH
Adds the install directory to your PATH in shell configuration files (
~/.zshrc, ~/.bashrc, ~/.profile).Verify installation
After installation, verify Vectra Guard is available:Installation methods
One-line install (recommended)
This is the fastest and easiest method for most users.- macOS / Linux
- Windows
- Binary:
$HOME/.local/bin/vectra-guard - Aliases:
vg,vectraguard - PATH updated in:
~/.zshrc,~/.bashrc,~/.profile
Full setup (dependencies + tool)
Installs Vectra Guard and common dependencies:From source
Build the latest version from source:Go install
For Go developers:This builds from source and requires Go 1.21 or later.
Custom install directory
Install to a custom directory:Post-installation setup
Initialize configuration
Create a global configuration file:~/.config/vectra-guard/config.yaml with default settings.
Or create a local configuration for a specific project:
.vectra-guard/config.yaml in your project directory.
Enable shell tracker (optional)
The shell tracker automatically logs all commands:- Adds a lightweight hook to your shell
- Automatically starts sessions
- Logs all commands (not just those run with
vg exec) - Works in Cursor, VSCode, Terminal, and SSH sessions
Set up aliases (if not automatic)
If the installer didn’t add aliases automatically:Verify setup
Upgrade
Upgrade to the latest version by re-running the installer:Uninstall
Interactive uninstall
Run the uninstall script:- Remove the binary
- Remove shell integration
- Optionally remove data (
~/.vectra-guard)
Manual uninstall
Remove files manually:Troubleshooting
Command not found: vectra-guard
Command not found: vectra-guard
Problem: The
vectra-guard command is not found after installation.Solution:-
Verify the binary exists:
-
Check if
~/.local/binis in your PATH: -
Add to PATH manually:
-
Add to shell config permanently:
Permission denied when installing
Permission denied when installing
Problem: Installation fails with permission errors.Solution:
-
Don’t use
sudo- the installer uses user-space by default: -
If installing to a custom directory, ensure you have write access:
Checksum verification failed
Checksum verification failed
Problem: The installer reports checksum verification failure.Solution:
-
This usually indicates a download issue. Try again:
- Check your internet connection.
-
If the problem persists, install from source:
Windows: PowerShell execution policy error
Windows: PowerShell execution policy error
Problem: PowerShell blocks script execution.Solution:
- Run PowerShell as Administrator
-
Set execution policy:
-
Run the installer again:
Aliases not working
Aliases not working
Problem:
vg command doesn’t work.Solution:-
Check if alias exists:
-
Add alias manually:
-
Make sure you’re using the correct shell config file:
- zsh:
~/.zshrc - bash:
~/.bashrc - fish:
~/.config/fish/config.fish
- zsh:
Installation fails on ARM64 (Apple Silicon)
Installation fails on ARM64 (Apple Silicon)
Problem: No binary found for your architecture.Solution:
-
The installer should auto-detect ARM64. Verify:
-
If auto-detection fails, install from source:
Platform-specific notes
macOS
- Apple Silicon (M1/M2/M3): Fully supported with native ARM64 binaries
- Intel Macs: Fully supported with x86_64 binaries
- Minimum version: macOS 10.15 (Catalina) or later
- Install location:
$HOME/.local/bin
Linux
- Distributions: All major distributions supported (Ubuntu, Debian, Fedora, CentOS, Arch, etc.)
- Architectures: x86_64, arm64
- Install location:
$HOME/.local/bin - Note: Ensure
~/.local/binis in your PATH
Windows
- Minimum version: Windows 10 or later
- PowerShell: 5.1 or later (included with Windows)
- Architectures: x86_64, arm64
- Install location:
%LOCALAPPDATA%\VectraGuard
Next steps
Quickstart
Run your first protected command
Configuration
Configure Vectra Guard for your workflow