Installing AIVory VS Code Extension
Get the AIVory extension installed in Visual Studio Code or Cursor in just a few minutes.
- Quick install via VS Code Marketplace or command line
- Simple setup with API token from app.aivory.net
- Auto-scanning starts immediately after configuration
- AI assistant integration for automated compliance checking
System Requirements
Installation Methods
Choose your preferred installation method:
Method 1: Install from IDE (Recommended)
-
Open Extensions Panel
- Press
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(macOS) - Or go to
View → Extensions
- Press
-
Search for AIVory
- Type “AIVory” in the search box
- Locate “AIVory - AI-Powered Compliance Guard”
-
Install the Extension
- Click the
Installbutton - Wait for the installation to complete
- No restart required
- Click the
Method 2: Install from Command Line
# For VS Code
code --install-extension aivory.aivory
# For Cursor (uses same command structure)
cursor --install-extension aivory.aivory
Method 3: Install from VS Code Marketplace Website
- Visit VS Code Marketplace
- Click the
Installbutton - Your editor will open and prompt you to install
First Launch Setup
After installation, configure your API token to start scanning.
Step 1: Open Settings
- Press
Ctrl+,(Windows/Linux) orCmd+,(macOS) - Or go to
File → Preferences → Settings - Search for “AIVory”
Step 2: Configure API Token
- Enter your API token from app.aivory.net/tokens
- If you don’t have an account, create one at app.aivory.net/register
Alternative: Edit settings.json Directly
Click “Edit in settings.json” and add:
{
"aivory.apiToken": "your_api_token_here"
}
Step 3: Start Scanning
- Open any project
- The extension will automatically start scanning your code
- Look for the AIVory icon in the status bar
Verifying Installation
To confirm AIVory is working:
Configuring AI Assistants
To get real-time compliance checking when using AI coding assistants, configure them to use /aiv:scan after generating code.
Cursor Configuration
Create a .cursorrules file in your project root:
# In your project root
touch .cursorrules
Add the following configuration:
When writing or modifying code:
1. Write the code as requested
2. Call /aiv:scan to check for compliance violations
3. Review the scan results and fix any violations found
4. Re-scan to verify fixes before completing the task
Always scan and fix violations before marking a task complete.
Claude Code Configuration
Add this to your CLAUDE.md file in your project root:
## AIVory Compliance Scanning
When writing or modifying code:
1. Write the code as requested
2. Call /aiv:scan to check for compliance violations
3. Review the scan results and fix any violations found
4. Re-scan to verify fixes before completing the task
Always scan and fix violations before marking a task complete.
Other AI Assistants
Extension Settings
Configure the extension behavior in VS Code/Cursor Settings:
API Configuration
| Setting | Description |
|---|---|
aivory.apiToken |
Your API token from app.aivory.net/tokens (required) |
aivory.serverUrl |
Backend server URL (default: https://app.aivory.net) |
Scan Configuration
| Setting | Description |
|---|---|
aivory.autoScan |
Enable automatic scanning on file save (default: true) |
aivory.scanOnType |
Scan as you type (default: false, recommended for performance) |
aivory.standards |
Compliance standards to check (OWASP, GDPR, HIPAA, etc.) |
Display Settings
| Setting | Description |
|---|---|
aivory.showInlineWarnings |
Show violations inline in the editor (default: true) |
aivory.showStatusBar |
Show AIVory icon in status bar (default: true) |
aivory.verboseLogging |
Enable detailed logging (default: false) |
scanOnType disabled and rely on autoScan to check code when you save files.
Troubleshooting
Extension Not Appearing
Issue: AIVory extension doesn’t appear after installation
Solution:
- Verify the extension is installed:
Ctrl+Shift+X→ Search “AIVory” - Check the extension is enabled (not disabled)
- Reload window:
Ctrl+Shift+P→ “Reload Window” - Check VS Code/Cursor version is up to date
API Token Issues
Issue: Extension not connecting to AIVory backend
Solution:
- Verify API token is set in Settings (
Ctrl+,→ Search “AIVory”) - Ensure token starts with
aiv_ - Token must be entered without quotes in settings.json
- Generate new token at app.aivory.net/tokens
- Reload window after updating token
Scanning Not Working
Issue: No violations showing up or scans not running
Solution:
- Check Output panel:
View → Output → Select "AIVory" - Verify API token is valid
- Check internet connectivity
- Ensure compliance standards are selected in settings
- Try manually triggering scan:
Ctrl+Shift+P→ “AIVory: Scan Current File”
Performance Issues
Issue: Editor feels slow or laggy
Solution:
- Disable
scanOnTypein settings (only scan on save) - Reduce number of active compliance standards
- Check Output panel for errors
- Ensure you’re on latest version of extension
Updating the Extension
The extension will automatically check for updates.
Uninstalling the Extension
Uninstall Instructions
To remove AIVory:
-
Open Extensions Panel
- Press
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(macOS)
- Press
-
Find AIVory Extension
- Search for “AIVory” in installed extensions
-
Uninstall
- Click the gear icon next to AIVory
- Select
Uninstall - Reload window when prompted
-
Clean Up Settings (Optional)
- Remove AIVory settings from
settings.jsonif desired - Extension data is automatically cleaned up
- Remove AIVory settings from