Agix is a standard Vite + React TypeScript project with one Office-specific requirement: the development server must be served over HTTPS, because Excel will refuse to load add-in content from plain HTTP origins. This guide walks through every step from a fresh clone to a working task pane inside Excel, and covers the production deployment path at the end.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before starting, make sure you have the following:- Node.js 18 or later — check with
node -v - npm — bundled with Node.js; check with
npm -v - Microsoft Excel 2016 or later (Desktop) — or Excel on the web in a Chromium-based browser
- A trusted local HTTPS certificate — required so Office accepts
https://localhost:3000
Install dependencies
@microsoft/office-js, Vite, TypeScript, and all dev dependencies declared in package.json.
Available scripts
All development tasks run throughnpm run <script>:
| Script | What it does |
|---|---|
dev / start | Starts the Vite dev server at https://localhost:3000 with HMR |
build | Compiles and bundles the add-in into dist/ |
preview | Serves the dist/ output locally for a production smoke-test |
typecheck | Runs tsc --noEmit — type-checks the whole project without emitting files |
lint | Runs ESLint across src/ for .ts and .tsx files |
Vite configuration
vite.config.ts contains three important settings:
input declaration tells Rollup to produce two independent bundles. taskpane.html boots the React application; commands.html loads a lightweight script that handles ribbon button actions without opening the full task pane.
Full development and sideload workflow
Vite starts at
https://localhost:3000. Keep this terminal running — Office will hot-reload the task pane whenever you save a source file.Open
https://localhost:3000/taskpane.html in a browser. If you see the Agix UI without a certificate warning, your HTTPS setup is correct. If the browser shows a warning, revisit the mkcert step in the Prerequisites section.manifest.xml.In the Home ribbon, a new Agix AI group will appear. Click Open Agix to open the task pane. Enter your API key in the provider selector and start chatting.
The manifest.xml file
manifest.xml in the project root is the Office Add-in manifest. It tells Excel where to find the add-in’s HTML files and how to display it in the ribbon. The key URL resources it declares are:
https://localhost:3000 references in manifest.xml accordingly and re-sideload.
Production deployment
When the add-in is ready to ship, build a production bundle and host the output on any static HTTPS server:Vite compiles, tree-shakes, and bundles both entry points into
dist/. The output is completely static — HTML, JS, and CSS files with no server-side runtime required.Upload the contents of
dist/ to any hosting platform that supports HTTPS — Azure Static Web Apps, Netlify, Vercel, GitHub Pages with a custom domain, or your own CDN. The only hard requirement is a valid TLS certificate on the domain.<bt:Urls>
<bt:Url id="Taskpane.Url" DefaultValue="https://your-domain.com/taskpane.html" />
<bt:Url id="Commands.Url" DefaultValue="https://your-domain.com/commands.html" />
</bt:Urls>
Also update the
<IconUrl>, <HighResolutionIconUrl>, <SupportUrl>, <AppDomain>, and <SourceLocation> elements to point to the production host.