Mirror Security Logo
Code Prism

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:


Installation Methods

This is the recommended installation method for Code Prism.

Step 1: Download the Extension

  1. Visit https://platform.mirrorsecurity.io
  2. Navigate to the Downloads section
  3. Download the latest version: mirror-security-code-prism-<version>.vsix

Step 2: Install in VS Code

  1. Open VS Code
  2. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
  3. Type: Extensions: Install from VSIX...
  4. Select the downloaded mirror-security-code-prism-<version>.vsix file
  5. Click Install

Step 3: Verify Installation

After installation:

  • Look for 🛡️ Code Prism: Protected in 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:

  1. Visit https://platform.mirrorsecurity.io
  2. Sign up or log in to your account
  3. Navigate to API Keys section
  4. Generate a new API key for Code Prism
  5. Copy the key

2. Set Your API Key

  1. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
  2. Type: Code Prism: Set API Key
  3. Paste your API key when prompted
  4. Press Enter

✅ Your API key is now securely stored

3. Configure Server URL

Option A: Via Command Palette

  1. Press Cmd+Shift+P / Ctrl+Shift+P
  2. Type: Code Prism: Configure Server URL
  3. Enter your server URL: https://mirrorapi.azure-api.net/telemetry

Option B: Via Settings

  1. Open VS Code Settings: Preferences: Open Settings (UI)
  2. Search for: mirrorProvider.serverUrl
  3. Update the value to your server URL

4. Configure Server Public Key

  1. Press Cmd+Shift+P / Ctrl+Shift+P
  2. Type: Code Prism: Configure Server Public URL
  3. choose “Fetch from the server (with verification)” or Copy Paste the key directly if you have already
  4. and Press Enter

Verify Installation

Check Extension Status

  1. Look at the bottom-right status bar
  2. You should see: 🛡️ Code Prism: Protected
  3. This indicates the extension is active and ready

Test with Copilot

  1. Open GitHub Copilot Chat in VS Code
  2. Click on the model selector
  3. You should see Mirror 70B and Mirror 7B models available
  4. Select a Mirror model
  5. Send a test message
  6. You should see 🔒 Protected by Code Prism at 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: HelpToggle 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 Keys and restart

Uninstallation

If you need to remove Code Prism:

Remove Extension

  1. Open Extensions panel (Cmd+Shift+X / Ctrl+Shift+X)
  2. Search for Code Prism
  3. Click the gear icon
  4. 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:

Code Prism: Clear API Key
Code Prism: Clear Encryption Keys
Code Prism: Clear Server Keys

Next Steps

✅ Installation complete! Now:

  1. Quick Start Guide - Get started in 5 minutes
  2. Configuration - Customize your setup
  3. Security - Verify encryption is working

Support

Having trouble with installation?

  • Check logs: HelpToggle Developer ToolsConsole tab
  • Documentation: Review Troubleshooting guide
  • Support: Contact Mirror Security support team