codecontext privacy
Toggle between cloud and offline AI processing
Pro FeaturePrivacy mode enables 100% offline AI processing using CodeContext Privacy AI™. Perfect for enterprises with strict security requirements, air-gapped environments, or teams working with sensitive code. All processing happens locally with no external connections.
Quick Usage
codecontext privacy on
Enable offline mode
codecontext privacy off
Return to cloud mode
Processing Modes
Cloud Mode (Default)
Fast, no setup required
- Instant access to latest AI models
- No local storage requirements
- Automatic model updates
- Requires internet connection
Privacy Mode
100% offline processing
- Complete data privacy
- Works in air-gapped environments
- No external API calls
- Requires 2.3GB local storage
First-Time Setup
$ codecontext privacy on
🔍 Checking Pro subscription... ✓
📦 CodeContext Privacy AI™ model not found locally
📥 Download required (2.3GB). Continue? [Y/n] Y
⬇️ Downloading model...
📁 Installing to ~/.codecontext/models/privacy-ai/
🔧 Configuring offline processing...
✅ Privacy mode enabled!
🔒 All AI processing now happens locally
Performance Comparison
Feature | Cloud Mode | Privacy Mode |
---|---|---|
Processing Speed | ~2-3 seconds | ~3-5 seconds |
Model Quality | Latest models | Optimized offline |
Storage Required | None | 2.3GB |
Internet Required | Yes | No |
Data Privacy | Encrypted transit | 100% local |
Security Features
Data Protection
- • No code leaves your machine
- • No telemetry in privacy mode
- • Model runs in isolated process
- • Automatic memory cleanup
Performance Optimization
- • Hardware acceleration support
- • Efficient memory usage
- • Background model loading
- • Smart caching system
Command Options
codecontext privacy status
Check current privacy mode and model status
codecontext privacy update
Update local model to latest version
codecontext privacy clean
Remove local model to free up space
codecontext privacy benchmark
Test local model performance
Perfect For
🏢
Enterprise Teams
Meet strict compliance requirements with complete data control
🔒
Sensitive Projects
Work on proprietary code without external exposure
🏝️
Offline Development
Keep working without internet connectivity
🏛️
Government Projects
Meet air-gap and security clearance requirements
Pro Tips
- •Download the model on fast internet before going offline
- •Use
benchmark
to test performance on your hardware - •Model updates are optional - current version works indefinitely
- •Switch modes anytime without losing settings