Gemini CLI Integration
Same workflow, different AI. Just talk to Gemini.
How It Works
You talk to Gemini. Gemini runs Pontius commands. That's it.
The workflow is identical to Claude Code. Pontius doesn't care which AI you use—it works with any tool that can execute shell commands.
First-Time Setup
Start Gemini CLI in your terminal:
geminiThen ask Gemini to set up Pontius:
You: Can you run pontius setup? I want to connect my email.Gemini runs the setup command and gets a step-by-step guide. It will:
- Check your license status (and activate if needed)
- Walk you through creating an app password for your email provider
- Guide you through adding your account in the Pontius TUI
- Set up any aliases you send from
- Initialize your knowledge base
- Create a config file for future sessions
The only thing you type directly is your app password (for security—it goes straight to your system keychain). Gemini handles everything else.
Daily Workflow
Once you're set up, just tell Gemini to clear your email:
You: Let's clear email.Gemini: Running 'pontius blitz'...I've loaded your preferences and knowledge base. Running 'pontius list'...Work Account (3 new): UID FROM SUBJECT 37801 [email protected] Question about pricing 37800 [email protected] Payment received 37799 [email protected] Weekly digestI see:- 1 customer question → needs response- 1 billing receipt (Stripe) → moving to billing folder- 1 newsletter → archivingStabilizers on (learning) or auto (autonomous)?The Three Commands
Same three commands as every other AI integration:
pontius setup
Connects your email accounts. Gemini gets a detailed guide and walks you through each step. Run this once per account.
pontius blitz
Starts an email session. This gives Gemini your preferences, the full command reference, and points it at your knowledge base.
pontius help
The full command reference. Gemini can run this anytime it needs to check syntax or discover features.
The Config File
Gemini CLI reads from GEMINI.md or AGENTS.md in your working directory. During setup, create one of these files to teach Gemini how to operate Pontius in future sessions:
# Email AssistantYou are my AI email assistant. You operate Pontius on my behalf.## How Pontius WorksPontius is a CLI email client designed for AI-first workflows. Three commands matter:- `pontius setup` - Connect email accounts (run if not configured)- `pontius blitz` - Start an email session (run when I want to clear email)- `pontius help` - Full command reference (run anytime you need syntax)## When I Say "Let's Clear Email"1. Run `pontius blitz` to load my preferences and the session prompt2. Run `pontius list` to see my inbox3. Categorize: noise (archive/move), needs response, needs my input4. Handle noise autonomously based on my patterns5. Draft responses for my approval (or send if you know the pattern)6. Ask about anything you're unsure of## The Knowledge BaseLocation: ~/.config/pontius/knowledge/This is critical. Before responding to any email, check the relevant folders:- contacts/ - Who this person is, our relationship, their preferences- templates/ - My proven responses for common situations- rules/ - Per-account behavior (Work vs Personal)- policies/ - Hard rules that override everything- patterns/ - Triggers for automatic actions## After Each Email SessionUpdate the knowledge base with what you learned:- New contacts → add to contacts/contacts.json- Repeated responses → create a template- New patterns → add to patterns/patterns.json- Corrections I made → update the relevant fileThe knowledge base should grow every session. Don't skip this step.## Accounts- [email protected] (Work) - Professional tone, check policies- [email protected] (Personal) - Casual tone## My Preferences- Sign off: "Best," followed by my name on a new line- Default tone: Professional but warm- Always ask before: Anything financial, customer-facing, or to new contacts- Archive autonomously: Billing receipts, shipping notifications, newslettersPut this file wherever you typically start Gemini CLI sessions.
AGENTS.md. Use whichever you prefer—or useAGENTS.md if you switch between different AI tools.Growing the Knowledge Base
The knowledge base at ~/.config/pontius/knowledge/ is what makes Pontius different from stateless AI tools. Every session should leave it smarter than before.
Gemini searches it automatically during blitz sessions. After each session, make sure Gemini updates it with new contacts, templates, and patterns.
Troubleshooting
Gemini Can't Find Pontius
- Ask Gemini to check:
"Run which pontius" - If not found, install Pontius first
- Restart Gemini CLI after installing
Permission Denied
- Approve the command when Gemini asks
- Check Gemini CLI's permission settings