Briglia CLI
GitHub
Guide

Email & calendar

Off by default. When enabled, Briglia can read and triage incoming mail, reply, and keep a calendar it consults when planning. Choose in briglia menu (or in the app's About-you step).

None (default)

No mailbox, no calendar context, no polling. Perfect if you only want a chat/files/research assistant.

AgentMail — recommended

A dedicated inbox for Briglia, separate from your personal mail: sign up at agentmail.to, create an inbox and an API key, paste the key. You get:

  • Reading, sending, replying, forwarding, attachments — all terminal-free, including on the phone.
  • Briglia's own calendar tool (manage_calendar), stored locally.
  • Incoming mail delivered to Briglia as it arrives; watermarks advance only after a message is durably stored, so nothing is lost across restarts.

Since CLI 0.2.64 Briglia keeps its own private copy of the AgentMail CLI under ~/.local/share/briglia/runtime/agentmail/, reached through a small agentmail wrapper in Briglia's own ~/.local/share/briglia/bin. The wrapper is a key broker: the API key never sits in a shell environment; the wrapper fetches it from Briglia at call time. The upstream CLI is pinned to one version whose archive hash is compiled into Briglia and verified before anything is installed, and the installed copy is checked against its install record before every use. After /upgrade Briglia moves to the new pin by itself. If an update or repair fails or is interrupted, AgentMail stays off with a clear message instead of falling back to an older copy; to retry by hand, stop Briglia and run briglia agentmail repair (briglia agentmail status shows the state). An agentmail you installed yourself in ~/.local/bin is only reported, never changed.

Google Workspace (removed)

Since CLI 0.2.62, Briglia no longer connects to Gmail and Google Calendar through Google's gws CLI: the integration was removed to keep Briglia's attack surface small. An install that used it switches to None by itself and tells you (at most once); set up AgentMail to keep email and calendar. Briglia never touches your own gws program or its Google sign-in (~/.config/gws); if you no longer need them, run gws auth logout and remove them yourself.

Switching and removing

Switch in briglia menu; Briglia stops the old poller, persists the new choice, clears cached context and starts only the selected one. /deleteuserdata removes the AgentMail key and all cached email/calendar data (server-side mailboxes are never touched).