Experimental Excel sidebar agent add-in. Multi-model. Powered by Pi.
翻訳待ち
Loading the full README.
Read the full README ↗English | 简体中文
Open-source, multi-model AI sidebar add-in for Microsoft Excel. Powered by Pi.
Pi for Excel is an AI agent that lives inside Excel. It reads your workbook, makes changes, and does research — using any model you choose. Bring your own API key or OAuth login for Anthropic, OpenAI, Google Gemini, or GitHub Copilot.
Core spreadsheet tools — 16 built-in tools that the AI can call to interact with your workbook:
| Tool | What it does |
|---|---|
get_workbook_overview | Structural blueprint — sheets, headers, named ranges, tables, charts, pivots |
read_range | Read cells in compact (markdown), CSV, or detailed (with formatting) mode |
write_cells | Write values/formulas with overwrite protection and auto-verification |
fill_formula | AutoFill a formula across a range (relative refs adjust automatically) |
search_workbook | Find text, values, or formula references across all sheets |
modify_structure | Insert/delete rows/columns, add/rename/delete/hide sheets |
format_cells | Apply formatting — fonts, colors, number formats, borders, named styles |
conditional_format | Add or clear conditional formatting rules |
trace_dependencies | Trace formula lineage (precedents upstream or dependents downstream) |
explain_formula | Plain-language formula explanation with cited cell references |
view_settings | Gridlines, headings, freeze panes, tab color, sheet visibility |
comments | Read, add, update, reply, resolve/reopen cell comments |
workbook_history | List/restore automatic in-between-saves backups for workbook mutations |
instructions | Persistent user-level and workbook-level guidance for the AI |
conventions | Configurable formatting defaults (currency, negatives, zeros, decimal places) |
skills | Bundled Agent Skills for task-specific workflows |
Multi-model support — use any supported provider; switch models mid-conversation:
/settingsSession management — multiple session tabs per workbook, auto-save/restore, session history, /resume to pick up where you left off.
Auto-context injection — the AI automatically receives the workbook blueprint, your current selection, and recent cell changes before every turn. No need to manually describe what you're looking at.
Workbook recovery — automatic checkpoints before every mutation. One-click revert from the sidebar if something goes wrong.
Formatting conventions — define your house style once (currency symbol, negative style, decimal places) and the AI follows it automatically.
Slash commands — /model, /login, /settings, /rules, /extensions, /tools, /export, /compact, /new, /resume, /history, /shortcuts, and more.
Extensions — install sidebar extensions (mini-apps) from chat. The AI can generate and install extension code directly via the extensions_manager tool. Extensions run in an iframe sandbox by default.
Integrations — opt-in external tool integrations:
fetch_page — find and read external sources without leaving ExcelBridge + advanced controls (managed via /experimental):
Files workspace — shared artifact storage across sessions (built-in docs under assistant-docs/ are read-only). Pi's writes and deletes ask for approval in Confirm mode, and in Auto mode whenever they would overwrite or delete a file Pi did not create in this chat.
(Web Search + MCP are managed in /tools, or /extensions → Connections.)
manifest.prod.xml/settingsWhat sheets do I have? or Summarize my current selectionpackage.json enginesgit clone https://github.com/tmustier/pi-for-excel.git
cd pi-for-excel
npm install
# Generate local HTTPS certs (Office.js requires HTTPS)
mkcert -install # one-time CA setup
mkcert localhost # creates localhost.pem + localhost-key.pem
mv localhost-key.pem key.pem
mv localhost.pem cert.pem
npm run dev # Vite dev server on https://localhost:3141
Note: the dev port is
3141(π) — deliberately off the crowded:3000. If you sideloaded a manifest before the move from:3000, re-copymanifest.xmlinto Excel'sweffolder and fully restart Excel.
Optional: prefer a stable named URL (
https://pi-excel.localhost, no mkcert, no fixed port)? See docs/portless.md for the opt-in portless flow.
Then sideload the dev manifest into Excel:
macOS (Microsoft docs):
cp manifest.xml ~/Library/Containers/com.microsoft.Excel/Data/Documents/wef/
Then open Excel → Insert → My Add-ins → Pi for Excel.
Windows (Microsoft docs):
This is the beginning of the README. Read the rest at the original. Read the full README ↗