- Updated: February 20, 2026
- 6 min read
Pi for Excel: Open‑Source AI Add‑in Brings Multi‑Model Capabilities to Microsoft Excel
Pi for Excel is an open‑source AI add‑in that embeds a conversational assistant directly inside Microsoft Excel, enabling users to query, analyze, and modify spreadsheets with large‑language‑model providers such as OpenAI, Anthropic, Google Gemini, or GitHub Copilot.
Pi for Excel: The AI‑Powered Excel Add‑in Transforming Spreadsheet Workflows

What Is Pi for Excel?
Pi for Excel is a free, community‑driven add‑in that turns the familiar Excel interface into an interactive AI workspace. By leveraging the GitHub repository, developers have built a sidebar where you can type natural‑language prompts, ask the model to summarize data, generate formulas, or even create new worksheets—all without leaving the spreadsheet.
The add‑in is model‑agnostic: you can connect any supported LLM—OpenAI’s GPT‑4, Anthropic’s Claude, Google Gemini, or GitHub Copilot—simply by providing an API key or OAuth login. This flexibility makes Pi for Excel a universal “AI engine” for every Excel power user, from finance analysts to BI managers.
Key Features & Benefits
- Multi‑model support: Switch between OpenAI, Anthropic, Gemini, or Copilot on the fly.
- 16 built‑in spreadsheet tools: Read ranges, write cells, auto‑fill formulas, format cells, trace dependencies, and more.
- Auto‑context injection: The AI automatically receives the workbook blueprint, current selection, and recent changes—no need to describe the sheet layout.
- One‑click rollback: Every mutation creates a checkpoint, allowing instant revert if the AI makes a mistake.
- Slash commands: Quick actions like
/model,/settings,/history, and/extensionsstreamline workflow. - Extensible extensions: Install mini‑apps from the sidebar or develop custom sandboxed extensions.
- External integrations: Web search, MCP gateway, and optional Python or tmux bridges for advanced data processing.
- Persistent rules & conventions: Define your house style (currency, negative formatting, decimal places) once; the AI respects it automatically.
- Secure session management: Multiple session tabs per workbook, auto‑save, and encrypted credential storage.
These capabilities translate into tangible benefits: faster data cleaning, instant formula generation, reduced manual errors, and a conversational interface that democratizes advanced analytics across the organization.
How to Install & Use Pi for Excel
Prerequisites
- Microsoft Excel (Windows 10/11 or macOS 12+).
- Node.js ≥ 20 for local development (optional for self‑hosting).
- Valid API key or OAuth credentials for your chosen LLM provider.
Step‑by‑Step Installation
- Clone the repository:
git clone https://github.com/tmustier/pi-for-excel.git - Navigate into the folder and install dependencies:
npm install - Generate a local HTTPS certificate (required by Office.js):
mkcert -install mkcert localhost mv localhost-key.pem key.pem mv localhost.pem cert.pem - Start the development server:
npm run dev(runs onhttps://localhost:3000). - Copy the appropriate manifest file to Excel’s add‑in folder:
- macOS:
cp manifest.xml ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef/ - Windows: Use Insert → My Add‑ins → Upload My Add‑in and select
manifest.xml.
- macOS:
- Open Excel, go to Insert → My Add‑ins → Pi for Excel. The sidebar appears on the right.
- Click Connect, paste your API key or sign in via OAuth, and you’re ready to chat.
First‑time Usage
Type a natural‑language request in the chat box, for example:
“Summarize the sales figures for Q2 and highlight any month where revenue dropped more than 5%.”
The AI will automatically call the get_workbook_overview and read_range tools, compute the analysis, and return a concise summary directly in the sidebar. You can then ask follow‑up questions or request the assistant to insert a chart with a single command.
Real‑World Use Cases
- Financial modeling: Generate cash‑flow forecasts by asking the AI to extrapolate trends from historical data, then let it auto‑populate the projection table.
- Data cleaning: Prompt “Remove duplicate rows where the email column matches” and the AI will invoke
modify_structureto delete the duplicates safely. - Marketing analytics: Use the AI marketing agents template to pull social‑media metrics into Excel, then ask Pi to calculate ROI per campaign.
- Report automation: Combine Pi with the Web app editor on UBOS to generate a live dashboard that refreshes whenever the workbook changes.
- Compliance checks: Ask the assistant to scan a ledger for entries that violate predefined rules (e.g., expenses > $10,000 without approval) and flag them automatically.
- Rapid prototyping: Startup teams can spin up a quick “what‑if” analysis by feeding scenario parameters and letting Pi generate the necessary formulas in seconds.
Pi for Excel vs. Competing AI Add‑ins
| Feature | Pi for Excel | Microsoft Copilot for Excel | ChatGPT Excel Plugin |
|---|---|---|---|
| Multi‑model support | ✅ OpenAI, Anthropic, Gemini, Copilot | ❌ Single Microsoft model | ✅ OpenAI only |
| Built‑in spreadsheet tools | ✅ 16 native tools (read, write, format, trace, etc.) | Limited to natural‑language suggestions | Basic read/write only |
| One‑click rollback | ✅ Automatic checkpoints | ❌ Manual undo only | ❌ No rollback |
| Extensible extensions | ✅ Sandbox extensions via sidebar | ❌ Not available | ❌ Not available |
| Pricing | Free (open‑source) | Included with Microsoft 365 | Subscription required for API usage |
For organizations that need flexibility, auditability, and zero‑cost deployment, Pi for Excel clearly stands out.
Get Started Today
If you’re ready to supercharge your spreadsheets, visit the UBOS homepage to explore complementary AI tools, such as the Enterprise AI platform by UBOS or the UBOS partner program. These solutions integrate seamlessly with Pi for Excel, letting you build end‑to‑end AI workflows across your entire tech stack.
For a hands‑on demo, clone the repository and follow the quick‑start guide on GitHub. The community is active, and you can contribute new tools or extensions that match your unique business logic.
Start building smarter spreadsheets now—download Pi for Excel, connect your preferred LLM, and let the AI do the heavy lifting.
Conclusion
Pi for Excel brings the power of generative AI to the heart of data analysis: the spreadsheet. By offering multi‑model flexibility, a rich toolbox, and built‑in safety nets, it empowers finance professionals, data analysts, and BI managers to work faster, reduce errors, and unlock insights that were previously hidden behind manual formulas.
Because it’s open‑source, you retain full control over security, customization, and cost. Pair it with UBOS’s broader AI ecosystem—such as the UBOS templates for quick start or the AI SEO Analyzer—and you have a complete, enterprise‑grade AI stack that lives inside the tools your team already loves.
Embrace the future of spreadsheet intelligence today and watch productivity soar.