Quick Start
Get started with Code Prism in 5 minutes
Quick Start Guide
Get up and running with Code Prism in just a few minutes. This guide assumes you've already installed the extension.
Step 1: Set Your API Key
Open the Command Palette and configure your API key:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: Code Prism: Set API Key
- Paste your API key from https://platform.mirrorsecurity.io
- Press Enter
✅ Your API key is securely stored in VS Code's secret storage.
Step 2: Configure Server URL
Set the Mirror server URL (skip if using default localhost):
Via Command Palette:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: Code Prism: Configure Server URL
- Enter your server URL: https://mirrorapi.azure-api.net/telemetry (or your custom URL)
Via Settings:
- Open Settings:
Preferences: Open Settings (UI) - Search: mirrorProvider.serverUrl
- Update the value
Step 3: Configure Server Public Key
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type: Code Prism: Configure Server Public URL
- choose “Fetch from the server (with verification)” or Paste the key directly if you have already
- Press Enter
Step 4: Verify Setup
Check that Code Prism is active:
Status Bar Check
Look at the bottom-right corner of VS Code. You should see:
🛡️ Code Prism: Protected(idle state)
Encryption Keys Check
Run the verification command:
- Press
Cmd+Shift+P/Ctrl+Shift+P - Type: Code Prism: Verify Encryption Keys
- You should see a message confirming your encryption keys are valid
If you don't have keys yet, generate them:
- Press
Cmd+Shift+P/Ctrl+Shift+P - Type: Code Prism: Regenerate Client Encryption Keys
- Wait for confirmation
Step 5: Select a Mirror Model
Now you're ready to use Code Prism with GitHub Copilot:
-
Open GitHub Copilot Chat panel
-
Click the model selector (dropdown at top)
-
You should see:
- Mirror 70B - Best for complex reasoning and large codebases
- Mirror 7B - Fast responses for quick questions
-
Select Mirror 70B or Mirror 7B
Step 6: Start Chatting (Protected!)
Send your first encrypted message:
-
In Copilot Chat, type a question:
-
Press Enter and watch:
- Status bar changes to:
⟳ Code Prism: Active - Chat shows:
🔒 Protected by Code Prismat the top of response - Status bar returns to:
🛡️ Code Prism: Protectedwhen done
- Status bar changes to:
🎉 Congratulations! Your code is now protected with end-to-end encryption.
What Just Happened?
When you sent that message, Code Prism:
- ✅ Encrypted your question on your device using FHE
- ✅ Sent encrypted data to Mirror server
- ✅ Mirror AI processed encrypted data without seeing plaintext
- ✅ Received encrypted response
- ✅ Decrypted response only on your device
Your code never left your machine unencrypted!
Try These Next
Use @workspace for Code Context
Code Prism will encrypt:
- Your question
- File contents from @workspace
- AI's response
All protected end-to-end!
Use @files for Specific Files
The file contents are encrypted before being sent to the AI.
Complex Code Questions
Mirror 70B excels at complex architectural questions - all while your codebase details remain encrypted.
Visual Indicators
Status Bar States
| Indicator | Meaning |
|---|---|
🛡️ Code Prism: Protected | Idle - Ready to encrypt requests |
⟳ Code Prism: Active | Processing - Currently encrypting/decrypting |
Chat Badge
Every response from Mirror AI will show:
This confirms the response was encrypted end-to-end.
Common Use Cases
1. Code Review
2. Refactoring
3. Bug Fixing
4. Architecture Questions
5. Best Practices
Advanced: Debug Mode (Optional)
Want to verify encryption is really working? Enable debug mode:
Enable Encrypted Markers
- Open Settings:
Preferences: Open Settings (UI) - Search: Code Prism Advanced
- Enable:
Show Encrypted MarkersShow Encrypted Payload
Now when you chat, you'll see:
- Encrypted chunk markers with decrypt links
- Base64-encoded encrypted payload previews
- Proof that data is encrypted before sending
View Logs
- Open Developer Console:
Help→Toggle Developer Tools - Go to Console tab
- Look for messages like:
This confirms encryption is active.
Next Steps
Now that you're up and running:
- Configuration Options - Customize your setup
- Security & Verification - Learn about the encryption
- Troubleshooting - Solve common issues
Tips for Best Experience
Use Mirror 70B for:
- Complex architectural decisions
- Large codebase analysis
- In-depth code reviews
- Multi-file refactoring
Use Mirror 7B for:
- Quick syntax questions
- Code completion
- Simple bug fixes
- Fast responses
Always Remember:
- 🔒 Your code is always encrypted with Code Prism
- 🛡️ Status bar shows protection status
- ✅ Every response is verified with chat badge
Need Help?
- Troubleshooting: See Troubleshooting Guide
- Configuration: Check Configuration
- Security Details: Read Security Documentation
- Support: Contact Mirror Security support team
Happy Coding with Zero Code Exposure! 🚀