Install in Gemini CLI or Antigravity CLI
Pali Canon works as an extension for Google’s Gemini CLI. An extension is an add-on package: one command installs the Pali Canon tools, a short set of citation rules for Gemini, and four study commands.
Google is moving many users from Gemini CLI to its newer Antigravity CLI (the agy command). Which one you have depends on your Google account. Both are covered below.
The extension needs no extra download: installing it copies this whole project, which already contains the built server and the whole canon. It works offline once installed.
What you need
- Node.js 20 or newer. Gemini uses it to run the server.
- Gemini CLI or Antigravity CLI, installed and signed in.
No account or key is needed for Pali Canon itself.
Gemini CLI
-
In a terminal (not inside Gemini), run:
gemini extensions install https://github.com/DaniilKi/pali-canon-claudeGemini shows what the extension contains and asks you to confirm. To pin one version, add
--ref v2.1.0. To get updates automatically, add--auto-update. - Start Gemini with
geminiand type/mcp. You should see thepali-canonserver with its tools, such asresolve_referenceandget_text. -
Try the four study commands:
/study MN 10 /compare AN 3.65 /pali-word anicca in SN 22.59 /method Kv 1If another extension already has a command with the same name, Gemini renames ours with the extension’s name in front, for example
/pali-canon.study. - Or just ask: “Use Pali Canon to read MN 10 with a translation and cite the PTS page.”
Manage it later with gemini extensions list, gemini extensions update pali-canon and gemini extensions uninstall pali-canon.
Antigravity CLI
Antigravity CLI does not install Gemini extensions from a link directly. It imports the ones you already have:
- Install the extension in Gemini CLI as above (Gemini CLI still works for this step).
-
Close Antigravity, then run:
agy plugin import geminiGoogle’s migration guide says this converts your Gemini extensions into Antigravity plugins: server settings go into
mcp_config.json, and commands become skills. Antigravity may also offer to do this for you the first time you runagy. We have not tested this step ourselves yet. - Start Antigravity and type
/mcp. You should seepali-canonand its tools.
If you do not have Gemini CLI, add the server by hand instead (next section).
Manual setup (any version, works today)
- Download this project: on the GitHub page click Code → Download ZIP and unzip it, or run
git clone https://github.com/DaniilKi/pali-canon-claude. The server and the whole canon are already built inside it; no install step is needed. -
Add this to your MCP settings, with the real path to the folder. For Gemini CLI the file is
~/.gemini/settings.json. For Antigravity CLI it is~/.gemini/config/mcp_config.json(all projects) or.agents/mcp_config.json(one project), according to Google’s migration guide.{ "mcpServers": { "pali-canon": { "command": "node", "args": ["C:/path/to/pali-canon-claude/server/index.cjs"] } } }On macOS or Linux the path looks like
/Users/you/pali-canon-claude/server/index.cjs. Use forward slashes on Windows too. - For the same citation rules Gemini gets from the extension, copy GEMINI.md into your project or into
~/.gemini/GEMINI.md.
The manual setup gives you the tools but not the /study, /compare, /pali-word and /method commands. You can ask for the same things in plain words.
What the extension contains
| File | What it does |
|---|---|
gemini-extension.json |
Names the extension and tells Gemini how to start the Pali Canon server. |
GEMINI.md |
Citation rules Gemini reads at the start of every session: quote only retrieved text, cite precisely, name translators, report numbering differences. |
commands/ |
The /study, /compare, /pali-word and /method commands. They follow the same steps as the Claude Code skills in skills/. |
commands/ |
The /study, /compare, /pali-word and /memorise commands. They follow the same steps as the Claude Code skills in skills/. |
The texts keep their own licences: VRI, dhammatalks.org, Access to Insight and the Digital Pāḷi Dictionary are for non-commercial use. See THIRD_PARTY.md.
Sources
- Gemini CLI extensions and the extension reference
- Custom commands
- Publishing to the extension gallery
- Gemini CLI migration guide (Antigravity documentation):
agy plugin import geminiand themcp_config.jsonlocations - Variables in extension files such as
${extensionPath}, which points at the installed copy of this project