Installation
How to install Code Prism VS Code extension
Installation
This guide will walk you through installing the Code Prism extension for VS Code.
Prerequisites
Before installing Code Prism, ensure you have:
- VS Code 1.91.0 or higher installed
- GitHub Copilot subscription (active)
- Mirror API Key from https://platform.mirrorsecurity.io
Installation Methods
Method 1: Install from VSIX (Recommended)
This is the recommended installation method for Code Prism.
Step 1: Download the Extension
- Visit https://platform.mirrorsecurity.io
- Navigate to the Downloads section
- Download the latest version:
mirror-security-code-prism-<version>.vsix
Step 2: Install in VS Code
- Open VS Code
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: Extensions: Install from VSIX...
- Select the downloaded
mirror-security-code-prism-<version>.vsixfile - Click Install
Step 3: Verify Installation
After installation:
- Look for
🛡️ Code Prism: Protectedin the bottom-right status bar - The extension will activate automatically
Post-Installation
After installing Code Prism, you need to configure it before use:
1. Get Your API Key
If you don't already have one:
- Visit https://platform.mirrorsecurity.io
- Sign up or log in to your account
- Navigate to API Keys section
- Generate a new API key for Code Prism
- Copy the key
2. Set Your API Key
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: Code Prism: Set API Key
- Paste your API key when prompted
- Press Enter
✅ Your API key is now securely stored
3. Configure Server URL
Option A: Via Command Palette
- Press
Cmd+Shift+P/Ctrl+Shift+P - Type: Code Prism: Configure Server URL
- Enter your server URL: https://mirrorapi.azure-api.net/telemetry
Option B: Via Settings
- Open VS Code Settings:
Preferences: Open Settings (UI) - Search for: mirrorProvider.serverUrl
- Update the value to your server URL
4. Configure Server Public Key
- Press
Cmd+Shift+P/Ctrl+Shift+P - Type: Code Prism: Configure Server Public URL
- choose “Fetch from the server (with verification)” or Copy Paste the key directly if you have already
- and Press Enter
Verify Installation
Check Extension Status
- Look at the bottom-right status bar
- You should see:
🛡️ Code Prism: Protected - This indicates the extension is active and ready
Test with Copilot
- Open GitHub Copilot Chat in VS Code
- Click on the model selector
- You should see Mirror 70B and Mirror 7B models available
- Select a Mirror model
- Send a test message
- You should see
🔒 Protected by Code Prismat the top of the response
Troubleshooting Installation
Extension Not Appearing
Problem: Code Prism doesn't show in the status bar
Solutions:
- Restart VS Code
- Check if the extension is enabled:
Extensions→ Search "Code Prism" → Ensure it's enabled - Reinstall the extension
API Key Not Saving
Problem: API key prompts repeatedly
Solutions:
- Ensure VS Code has permission to access secure storage
- Try setting via Settings UI instead of command
- Check VS Code logs:
Help→Toggle Developer Tools→ Console tab
Mirror Models Not Showing
Problem: Mirror models don't appear in Copilot
Solutions:
- Verify API key is set: Run
Code Prism: Verify Encryption Keys - Check server URL is correct in settings
- Ensure GitHub Copilot is active
- Restart VS Code
WebAssembly Errors
Problem: Errors related to WASM or encryption
Solutions:
- Ensure VS Code is up to date (1.91.0+)
- Check if WebAssembly is supported: Most modern VS Code versions support it by default
- Try:
Code Prism: Clear Encryption Keysand restart
Uninstallation
If you need to remove Code Prism:
Remove Extension
- Open Extensions panel (
Cmd+Shift+X/Ctrl+Shift+X) - Search for Code Prism
- Click the gear icon
- Select Uninstall
Clean Up Data
The following data is automatically removed when you uninstall:
- Encryption keys (from VS Code secure storage)
- API key (from VS Code secure storage)
- Extension settings
To manually clear data before uninstalling:
Next Steps
✅ Installation complete! Now:
- Quick Start Guide - Get started in 5 minutes
- Configuration - Customize your setup
- Security - Verify encryption is working
Support
Having trouble with installation?
- Check logs:
Help→Toggle Developer Tools→Consoletab - Documentation: Review Troubleshooting guide
- Support: Contact Mirror Security support team