A local AI-powered Excel automation tool that brings Cursor-like intelligence directly to Excel using Ollama for privacy and performance.
SheetMind transforms Excel into an AI-powered workspace where you can:
- π£οΈ Talk to your data in natural language
- π€ Automate complex tasks with simple commands
- π Analyze data instantly using local AI
- π Keep everything private - no data leaves your machine
- β‘ Work efficiently with Cursor-like AI assistance
# macOS/Linux
curl -fsSL https://ollama.ai/install.sh | sh
ollama pull llama2
# Windows: Download from https://ollama.ai# Clone and start
git clone <this-repo>
cd ExcelCursor
./start-sheetmind.sh # Mac/Linux
# OR
start-sheetmind.bat # Windows- Open Excel β Insert β Get Add-ins
- Search "Script Lab" β Install
- Script Lab β Import β
excel-addin/script-lab-proper.js - Click Run β π SheetMind AI is ready!
Basic Operations:
- "Sum column A"
- "Format as currency"
- "Create a chart from this data"
- "Make headers bold"
AI-Powered Analysis:
- "What insights can you find in this data?"
- "Create a summary table of sales by region"
- "Find outliers and highlight them"
- "Format this as a professional report"
Advanced Automation:
- "Calculate quarterly growth rates"
- "Generate pivot table for expense analysis"
- "Find duplicate entries and mark them"
Excel (Script Lab) β FastAPI Backend β Ollama AI
Office.js localhost:8000 Local LLM
Why This Approach Works:
- β No Upload Issues: Uses Microsoft's trusted Script Lab
- β Full Excel Access: Office.js provides complete Excel API
- β Local AI: Ollama keeps data private and responses fast
- β Graceful Fallback: Works even when AI is unavailable
- β Cursor-like UI: Professional, familiar interface
ExcelCursor/
βββ π§ excel-addin/
β βββ script-lab-proper.js # Working Script Lab code
β βββ SCRIPT-LAB-FINAL.md # Complete setup guide
βββ βοΈ src/
β βββ agents/
β β βββ base_agent.py # Ollama integration
β β βββ excel_context_agent.py
β βββ ui/web/app.py # FastAPI backend
βββ π start-sheetmind.sh # Mac/Linux startup
βββ π start-sheetmind.bat # Windows startup
βββ π requirements.txt # Python dependencies
Create a .env file to customize:
DEFAULT_AI_PROVIDER=ollama
OLLAMA_URL=http://localhost:11434
OLLAMA_MODEL=llama2 # or codellama, mistral, llama2:13bModel Recommendations:
llama2(3.8GB) - Fast, good for basic taskscodellama(3.8GB) - Best for Excel formulas and analysisllama2:13b(7.4GB) - More capable reasoningmistral(4.1GB) - Good balance of speed and capability
- Direct Excel manipulation via Office.js
- Real-time context awareness (knows your selection)
- Natural language command processing
- Local AI with Ollama integration
- Fallback to basic commands when AI unavailable
- Professional Cursor-like interface
- Quick action buttons for common tasks
- Conversation history and error handling
- Data Analysis: Instant insights and statistics
- Chart Creation: Automatic visualization
- Formatting: Professional styling and layouts
- Formula Generation: Complex Excel formulas
- Data Cleaning: Find and fix issues
- Automation: Multi-step operations
- Context Awareness: Understands your current selection
# Edit files in src/ and restart
uvicorn src.ui.web.app:app --reload# Edit excel-addin/script-lab-proper.js
# Re-run in Script Lab to see changesollama pull <model-name>
# Update OLLAMA_MODEL in .envAI Not Working?
# Check Ollama
ollama list
ollama serve
# Check backend
curl http://localhost:8000/capabilitiesExcel Issues?
- Ensure latest Excel version
- Check Script Lab is installed and updated
- Verify internet connection (for Script Lab itself)
- Try re-importing the script file
- Privacy First: Everything runs locally via Ollama
- No Upload Issues: Uses Microsoft's trusted Script Lab
- Full Integration: Complete Excel API access via Office.js
- AI-Powered: Understands context and generates smart operations
- Cursor-like UX: Familiar, professional interface
- Easy Setup: Works in 3 minutes with simple scripts
Open source project - see LICENSE file for details.
Contributions welcome! This project aims to democratize AI-powered Excel automation.
Transform your Excel workflow with the power of local AI. No cloud required. No data shared. Just intelligent automation. π