SolveAI — Local AI Code Solver
Solve coding and practical lab questions directly inside VS Code with instant offline solutions and local Ollama LLM fallback. No cloud account required.
Privacy & Offline First: SolveAI checks its built-in database first for instant offline solutions (0ms latency, no internet, no Ollama needed). For custom questions, it connects to your configured local Ollama server.
✨ Features
| Feature |
Description |
| Database-First Architecture |
Lab questions solve instantly offline (0ms latency, no Ollama needed) |
| Shorthand Syntax |
Type bar plot,py or histogram,r and get instant executable code |
| Status-bar Solve button |
Native VS Code status-bar item — ✨ Solve |
| Solve with AI |
Generate code from questions, comments, or selection (Ctrl+Alt+S) |
| Fix with AI |
Fix broken code with minimal edits (Ctrl+Alt+F) |
| Explain with AI |
Get a plain-English explanation of selected code |
| LAN / Wi-Fi support |
Connect to Ollama on your laptop from lab computers |
| 100% Local & Privacy-first |
No cloud servers, no telemetry, no tracking |
⚡ Instant Offline Syllabus Database (No Ollama / No Internet Needed)
SolveAI bundles complete, lab-tested, practical-optimized solutions for the core Python and R visualization syllabus. You can trigger them either normally or via quick shorthand notation:
Python Main Questions:
- Line Chart —
line chart,py or Line Chart in Python
- Bar Chart —
bar plot,py or bar chart,py
- Histogram —
histogram,py
- Pie Chart —
pie chart,py
- Scatter Plot —
scatter plot,py
- Heatmap —
heatmap,py
- Box Plot —
box plot,py or boxplot,py
R Main Questions:
- Line Chart —
line chart,r or Line Chart in R
- Bar Chart —
bar plot,r or bar chart,r
- Histogram —
histogram,r
- Box Plot —
box plot,r or boxplot,r
- Scatter Plot —
scatter plot,r
- Grouped Bar Chart —
grouped bar chart,r
- Pie Chart —
pie chart,r
🚀 How to Use
Method 1: Instant Shorthand
Type in your file:
bar plot,py
Click ✨ Solve in the status bar (or press Ctrl+Alt+S) → The bar chart code appears immediately!
Or in R:
histogram,r
Click ✨ Solve → The R histogram appears immediately!
Method 2: Custom Question (via Local Ollama)
For any questions not in the offline database:
- Type or select your question in the editor.
- Click
✨ Solve.
- SolveAI connects to your Ollama server and generates the code.
🌐 LAN Setup (Laptop Ollama + Lab PC)
Lab PC (VS Code + SolveAI)
↓
LAN / Wi-Fi
↓
Laptop (Ollama :11434)
On your laptop:
set OLLAMA_HOST=0.0.0.0
ollama serve
In VS Code on the lab PC:
Go to Settings (Ctrl+,) -> Search solveai -> Set solveai.ollama.baseUrl:
http://<YOUR_LAPTOP_IP>:11434
⚙️ Settings
| Setting |
Default |
Description |
solveai.ollama.baseUrl |
http://localhost:11434 |
Ollama server URL |
solveai.ollama.model |
qwen3:8b |
Model to use for custom questions |
solveai.ollama.timeout |
120000 |
Timeout in ms (2 min) |
solveai.ollama.apiKey |
(empty) |
Optional auth token |
solveai.ollama.autoApply |
false |
Apply answer without preview prompt |
⌨️ Keyboard Shortcuts
| Command |
Windows/Linux |
Mac |
| Solve with AI |
Ctrl+Alt+S |
Cmd+Alt+S |
| Fix with AI |
Ctrl+Alt+F |
Cmd+Alt+F |
License
MIT © SolveAI Contributors