The open-source Gmail client built for your AI agents
OpenAGC is a local-first, native macOS email client. Let Claude Code or Codex triage, search and draft your mail — while sending and deleting always wait for your approval.

Claude proposes a reply. Nothing is sent until you approve it.
No backend
Mail goes from Google to your Mac and nowhere else. The project runs no servers, has no accounts and collects no telemetry.
Agents get tools, not your mailbox
An agent searches locally and reads only what it asks for. Every access is logged, and email content is treated as untrusted input.
You approve anything that leaves
Sending, forwarding and deleting are proposals you review. Archive, labels and drafts are reversible.
Bring your own AI
Works with the Claude Code and Codex CLIs you already use. OpenAGC never sees your AI credentials.
How it works
Gmail ──HTTPS/OAuth──▶ OpenAGC.app on your Mac
├── local mail database + search
├── permission engine (the only enforcement point)
└── mail tools (MCP) ──▶ your claude / codex CLIA real Gmail client
A fast SwiftUI and AppKit app over a Rust core. Your mailbox lives in a local SQLite database, with full local search.
A small, explicit set of mail tools
Your agent connects over MCP to tools like search, read, label and draft. A permission engine in the app is the only enforcement point.
Routines
Scheduled sorting of automated mail into review labels, run locally or as a Claude cloud routine created through your own Claude Code login.
Status: pre-alpha
The mail client, agent integration and routines are implemented and tested against a synthetic demo mailbox, a fake Gmail and fake agent CLIs. There is no signed release yet. To try it today, build from source and choose Explore a Demo Mailbox on first run.
Requirements
- macOS 26 or later on Apple Silicon
- A Gmail account
- Optional: Claude Code 2.1+ or Codex CLI 0.145+, logged in
Build from source
git clone https://github.com/audiojak/openagc cd openagc ./scripts/bootstrap.sh scripts/test-macos.sh test