Mail · Calendar · Tasks

A local CLI and MCP server for mail, calendars, and tasks

Corresync connects your work and personal mail, calendars, and task lists to Codex, Claude Code, other MCP agents, and your terminal. Each account signs in on its own, and the same commands work across all of them.

Supported services: Outlook · Gmail · Google Calendar · Microsoft To Do · Todoist · TickTick · open standards. What works depends on the account and how it connects. See the provider details.

Sign-in happens in your browser or uses credentials kept in your OS keyring. Agents never get the credentials Corresync manages, and there is no hosted relay. Before sending mail or making another important change, Corresync shows an exact preview and waits for your approval.

Set up Corresync

Use the AI agent you already have to install or update Corresync on this computer. You review each step.

Recommended: the standalone CLI. New setups turn on verified automatic updates. If Corresync is already installed, setup keeps your package manager, configuration and update setting unless you choose to change them.

Choose your desktop app. It opens with a setup request already filled in. Review the request, then send it yourself.

You need the ChatGPT Codex or Claude Code desktop app with local access to this computer. Approve each permission prompt when it appears. You don't need administrator rights. Sign in to your accounts and complete MFA yourself. Never paste passwords or codes into the chat.

If you're on a phone, open this page on the computer you want to set up or copy the instructions to it.

If the desktop app doesn't open, copy the setup request below and paste it into your agent.
Read https://corresync.org/setup-instructions.txt and follow it to install or update Corresync on this computer and connect it to this desktop agent. If you cannot read the instructions or run commands on this computer, stop and explain what I need to do.
Install manually instead

macOS · Linux

curl -LsSf https://corresync.org/install.sh | sh

Windows · PowerShell

powershell -NoProfile -Command "irm https://corresync.org/install.ps1 | iex"

Windows · WinGet alternative

winget install --id nkiyohara.Corresync --exact

Then · run guided setup

corr setup

Setup picks up where you left off. It looks up how to connect each address without using any credentials, and shows the account and agent changes before making them. Signing in is a separate step. You can read install.sh or install.ps1 before running it. Homebrew, Scoop, native Linux packages, and direct downloads are listed in getting started.

Supported services

Mail, calendars, and task lists you can connect

Corresync works with accounts you already have, and you sign in the same way as before. Providers support different features, so each account is set up separately.

Mail

  • Outlook
  • Gmail
  • iCloud Mail
  • JMAP / IMAP

Calendar

  • Outlook Calendar
  • Google Calendar
  • iCloud
  • CalDAV

Tasks

  • Microsoft To Do
  • Google Tasks
  • Todoist
  • TickTick

See all providers and how they connect

Accounts kept separate Work and personal accounts don’t mix. Each result shows which account and provider it came from.
Agents don’t get credentials Sign-in happens in a visible browser window or uses the OS keyring. There is no hosted relay or remote MCP endpoint.
You approve each send Sends and destructive changes show an exact preview first, and Corresync itself checks the approval. Each approval works once.

Google accounts

Google needs your own OAuth client

Create a Desktop OAuth client in your own Google Cloud project, import the JSON file you download during guided setup, then sign in with your normal browser. The client credential and the account grant are stored in the OS keyring. Corresync’s own managed Google OAuth is turned off. Step-by-step guide.

After installing

Add an account and connect your agent

Corresync doesn’t assume a provider. It first looks up how your address can be reached, adds the account with the route you pick, and only then lets you sign in.

1 · Add an account and sign in

corr setup you@example.com --alias personal
corr auth login --account personal

The lookup opens nothing and signs nothing in. Login is a separate command and uses the route you picked.

2 · Connect your agent

corr mcp setup codex

Adds Corresync to your agent as a local stdio server. Restart the agent afterwards.

3 · Ask

› What needs my attention
  before noon, across all
  my accounts?

The agent calls Corresync’s tools, and each answer says which account it came from.

Examples

What you can ask for

The CLI and the MCP tools run the same operations with the same checks, so each example works from either one.

Search all inboxes

“Find the quarterly-plan thread. It’s in work or personal, I don’t remember which.”

$ corr mail search --all-accounts \
    --query 'subject:"quarterly plan"'
● work · microsoft-owa  Ana Ruiz  Plan review
· personal · jmap   Finance      Plan receipt

If one account fails, the result says so and is marked as partial.

One agenda for all calendars

“What does my day look like across both calendars?”

$ corr agenda list --all-accounts \
    --start 2026-07-29T00:00:00Z \
    --end 2026-07-30T00:00:00Z
09:30 work      Design review · Teams
12:30 personal  Dentist

Each event shows its time zone, its calendar, and the provider it came from.

Check a message before it is sent

“Draft the reply to Ana. I’ll approve the send myself.”

› Draft a reply to Ana.
  mail_send
REVIEW · send new message
  to    ana@example.invalid
  body  text/plain · 412 B
Nothing sent until this exact
payload is approved.

The message is sent only if the account, recipients, and content match the preview exactly.

How sending works

The first command only shows a preview

A command that sends or changes something important first returns a review. The approval only works for that caller, account, provider, target, and content, expires, and works once.

send preview
$ corr mail send --account work \
    --to ana@example.invalid \
    --subject 'Quarterly plan' \
    --body-file reply.txt

REVIEW · send new message
  account  work · microsoft-owa
  to       ana@example.invalid
  body     text/plain · 412 B · sha256 9f2c1a…

Nothing sent. Repeat this exact command
with --approve to commit the review.
  • Agents get tools, not credentials. No MCP tool exposes passwords, cookies, or OAuth grants, and the configuration file has no field for them.
  • Runs on your computer. The MCP server talks to your agent over stdio. There is no hosted relay, remote endpoint, or telemetry pipeline.
  • Unclear results are not retried. If Corresync can’t tell whether a remote write went through, it stops and does not retry on its own.
  • Mail content is treated as untrusted. Text in a message can’t make Corresync run a command or start an agent.

How accounts connect

Provider APIs, browser sign-in, and open standards

Mail and calendar routes are chosen separately. One account can use IMAP/SMTP for mail and CalDAV for its calendar, or one provider route for both.

Browser sign-in

Outlook Web

You sign in to Outlook yourself in a separate, visible browser window. Mail and calendar commands then work through that session.

OAuth

Microsoft Graph · Google with your own client

Microsoft Graph accepts a public client you are authorized to use. Gmail, Google Calendar, and Google Tasks use a Desktop client from a Google Cloud project you control.

Open standards

JMAP, IMAP/SMTP, and CalDAV

Connects over an encrypted connection. The password comes from an OS keyring entry or from a credential helper you approved.

Check before you add an account. The provider page lists how each route signs in, what you need to set up, and which features depend on the account.

Check your address

Local MCP over stdio

Supported agents

Setup writes absolute local paths into the configuration of the agent you choose. It does not create a remote endpoint. Every agent gets the same 72 tools.

Codex

corr mcp setup codex

Registration plus a bundled plugin and Agent Skill.

Claude Code

corr mcp setup claude-code

User or project scope; plugin available.

GitHub Copilot CLI

corr mcp setup github-copilot

Native registration and verification.

More MCP clients

corr mcp --help

gemini-cli, qwen-code, qoder, kimi-code, and generic stdio.

Limits

Current limits

The features page lists every capability and limit, and what evidence each compatibility claim is based on.

Install

Get started

One command installs Corresync, and another connects it to your agent.