Offline Mode runs MoxyCode entirely on your machine using Ollama — a local AI runtime. No code is sent to any external service. This makes it ideal for restricted environments, air-gapped networks, or developers who require complete data sovereignty.
Offline Mode requires a Pro plan. Running
MoxyCode: Set Up Offline Mode on a Free plan will show an upgrade prompt.Requirements
| Plan | Pro |
| RAM | 4GB minimum (8GB recommended, 16GB for best quality) |
| Disk space | 1GB minimum (up to 9GB depending on model chosen) |
| OS | macOS or Windows |
Setup
Run the guided setup from the Command Palette: MoxyCode: Set Up Offline Mode The setup wizard opens and checks your system automatically.Step 1 — System check
MoxyCode scans your machine and shows your available RAM, free disk space, and Ollama status. The wizard handles three scenarios automatically: Ollama not installed: Ollama will be installed automatically during setup. Choose the AI model that best matches your hardware. Ollama installed, compatible model found: MoxyCode detects your existing model and proceeds directly to configuration. Click Configure MoxyCode to continue. Ollama installed, no compatible model: MoxyCode detects Ollama but no suitable model. Choose a model to download and click Set Up Offline Mode. When choosing a model, select based on your available RAM:| Model | Quality | Download size | RAM required |
|---|---|---|---|
| Qwen 2.5 Coder 14B | Best | 9GB | 16GB |
| Qwen 2.5 Coder 7B | Great | 4.7GB | 8GB |
| Qwen 2.5 Coder 1.5B | Lightweight | 1GB | 4GB |


Step 2 — Installation and download
MoxyCode handles everything automatically with a live progress screen:- Installing Ollama — installs the local AI runtime (skipped if already installed)
- Downloading AI model — downloads your selected model with a live progress percentage
- Configuring MoxyCode — connects MoxyCode to the local model

The 14B model is ~9GB and may take several minutes to over 30 minutes to download depending on your internet speed. Keep VS Code open during the download.
Step 3 — Complete
Once setup is complete, MoxyCode shows Offline Mode Ready!- Click Switch to Offline Mode to start using offline AI immediately
- Click Stay Online to keep using online mode and switch later

Once setup is complete, Ollama starts automatically on login. You don’t need to do anything to keep it running.
The local setup (Ollama and the AI model) stays on your machine even if you uninstall MoxyCode. Use
MoxyCode: Clean Up Offline Files to remove it when no longer needed.Switching between Online and Offline
Once Offline Mode is set up, switch between modes instantly from the Command Palette: MoxyCode: Toggle Online / Offline Mode- Switching to Offline shows: “MoxyCode: Switched to Offline Mode — using local Ollama model”
- Switching to Online shows: “MoxyCode: Switched to Online Mode — using cloud AI”
Cmd+, / Ctrl+,) — search for moxycode and change the MoxyCode: Mode dropdown between online and offline.

Removing Offline Mode
Run the cleanup command from the Command Palette: MoxyCode: Clean Up Offline Files A confirmation dialog appears asking what you want to remove.Remove model only
Removes the AI model (~9GB freed) but keeps Ollama on your machine. Choose this if you use Ollama for other tools or projects. Result:- ✅ AI model removed (freed ~9 GB)
- Ollama kept — still available for other tools
Remove model + Ollama
Removes both the AI model and Ollama from your machine completely.- First confirmation — lists the AI model to be removed and warns that other applications using Ollama will be affected. Click Remove model + Ollama to continue.
- Second confirmation — confirms Ollama removal specifically. You may be prompted for your system password — this is expected when uninstalling system applications.
- Cleanup complete — AI model removed and Ollama removed.
- ✅ AI model removed (freed ~9 GB)
- ✅ Ollama removed

Common issues
MoxyCode: Set Up Offline Mode shows an upgrade prompt
MoxyCode: Set Up Offline Mode shows an upgrade prompt
Offline Mode requires a Pro plan. Upgrade at moxycode.com to access Offline Mode.
Not enough disk space for the model
Not enough disk space for the model
The recommended 14B model requires ~9GB of free disk space. If you don’t have enough space:
- Choose the 7B model (4.7GB) or 1.5B Lite model (1GB) during setup
- Free up disk space and run
MoxyCode: Set Up Offline Modeagain
Not enough RAM for the recommended model
Not enough RAM for the recommended model
MoxyCode automatically selects the best model for your available RAM:
- 16GB RAM or more — Qwen 2.5 Coder 14B (best quality)
- 8GB RAM — Qwen 2.5 Coder 7B (great quality)
- 4GB RAM — Qwen 2.5 Coder 1.5B Lite (lightweight)
Model download stopped or is taking too long
Model download stopped or is taking too long
The model download requires a stable internet connection. If the download stalls:
- Keep VS Code open and wait — the download resumes automatically in most cases
- If it appears stuck for more than 10 minutes, close VS Code and run
MoxyCode: Set Up Offline Modeagain — the wizard will detect the partial download and resume
Ollama is installed but showing as not detected
Ollama is installed but showing as not detected
Run
MoxyCode: Set Up Offline Mode again — Ollama may not have been running when the wizard first scanned. The wizard will detect it on the next scan.Offline mode not working after setup
Offline mode not working after setup
- Check that MoxyCode: Mode is set to
offlinein VS Code Settings (Cmd+,/Ctrl+,) - Run Developer: Reload Window from the Command Palette and try again
- If the issue persists, run
MoxyCode: Clean Up Offline Filesand set up again
System password prompt appeared during cleanup — is this normal?
System password prompt appeared during cleanup — is this normal?
Yes — removing Ollama requires system-level permissions. The password prompt is expected when uninstalling system applications. Enter your login password to proceed.
I uninstalled MoxyCode but Ollama is still running on my machine
I uninstalled MoxyCode but Ollama is still running on my machine
The local setup (Ollama and the AI model) persists after uninstalling MoxyCode, and Ollama will continue to auto-start on login. To remove it completely:
- Reinstall MoxyCode from the VS Code Marketplace
- Run
MoxyCode: Clean Up Offline Filesand choose Remove model + Ollama - Uninstall MoxyCode again
MoxyCode: Clean Up Offline Files not working — remove manually via terminal
MoxyCode: Clean Up Offline Files not working — remove manually via terminal
If the cleanup wizard fails, you can remove the model and Ollama manually via terminal.List all installed models first:Remove your model (replace Uninstall Ollama on Mac:Uninstall Ollama on Windows:
<model-name> with the name from the list above):Safe Mode
Control when fixes are applied to your code
Privacy & FAQ
How MoxyCode handles your code and data in offline mode