pidge-gmail 3.0.0

Gmail and Google Calendar provider for pidge
Documentation

Your AI agent already writes your code. pidge lets it handle the rest of your day too: tell you what's new, go through the inbox with you, find that one e-mail, clear out receipts and ads, draft the reply, and run the calendar, across every mailbox you have.

You:    What's in my inbox?
Agent:  (mail_inbox scope=all)
        Anna asks you to sign the contract before Friday. The dentist offers Thursday 14:00,
        which is free. Two parcels are on their way and three have come. The rest is eleven
        ads and nine newsletters: shall I delete the ads and archive the others?
You:    Yes, and the parcels that came. Put the dentist in, and always archive delivered parcels.
Agent:  (mail_act, calendar_act)
        Done. On to the next twenty.
You:    No wait, keep the newsletters.
Agent:  (undo)  They are back.

Why pidge

  • Made for agents, by asking what people say. Twelve tools, each answering something people actually ask ("anything new?", "clear my inbox", "archive all invoices", "cancel all my appointments today") in one or two calls. Short ids (m12, e3), compact text output, and a next: line telling the agent what to do.
  • It remembers. pidge keeps a small local index of your recent mail, synced from your mailboxes: "new" means new since you last looked, and "all receipts" or "all commercials" is one query, not a hundred judgements.
  • Snappy. Few calls and instant answers: a whole deck of mail is told in one answer and settled with one call. Archive, delete, flag: pidge answers at once and does it in the background, and anything can be undone.
  • It prepares. Mail about an appointment says whether the time is free, clashes or is already booked; parcels say where they are; what you always do, pidge does for you.
  • Safe by construction. Anything that e-mails other people is a plan you approve first. Mail you regret can be stopped for a little while, and mail that looks sensitive waits for a second yes. Nothing is deleted permanently, and mail content is marked untrusted so your agent summarises it instead of obeying it.
  • All your mailboxes in one view. Microsoft 365, Outlook.com and Gmail, with calendars, merged.
  • Everywhere your agent is. A CLI and skill for terminal agents, a local MCP server for desktop apps, and a hosted MCP server for Claude.ai and ChatGPT, all one engine with the same behaviour.

Get started

brew install mklab-se/tap/pidge        # or: cargo install pidge (see INSTALL.md)
pidge account add                      # Microsoft (opens your browser)
pidge account add --provider google    # Gmail (bring your own Google client: docs/gmail.md)

Then connect your agent:

  • Claude Code, Codex, Copilot CLI and other terminal agents: pidge skill > ~/.claude/skills/pidge/SKILL.md (or your agent's skill folder).
  • Claude Desktop, Cowork and other local MCP clients: add a stdio server running pidge mcp serve:
    { "mcpServers": { "pidge": { "command": "pidge", "args": ["mcp", "serve"] } } }
    
  • Claude.ai, ChatGPT, phones and voice: a hosted pidge-mcp server. The reference server at https://pidge.mklab.se/mcp is invite-only; self-host your own from the published image ghcr.io/mklab-se/pidge-mcp (Bicep templates for Azure included). See docs/mcp.md.

Using it yourself

pidge                                      # what's new, and today's calendar
pidge mail find avtal --from anna          # find a message
pidge mail inbox all                       # go through the inbox, a deck at a time
pidge mail act archive --kind receipt      # every receipt; pidge undo takes it back
pidge calendar agenda this_week
pidge calendar act create --title "Q3 planning" --start "tomorrow 15:00" --end +90m --attendees anna

More in docs/usage.md, or pidge --help.

Supported providers

Microsoft 365 work and school accounts, personal Microsoft accounts (Outlook.com, Hotmail, Live), and Gmail with Google Calendar (setup).

Contributing

See CONTRIBUTING.md and DEVELOPMENT.md. Changes are listed in CHANGELOG.md, newest first.

License

MIT, see LICENSE.