Microsoft 365 Email & Calendar
/install ms365-mail-calendar
ms365
Microsoft 365 CLI for Email & Calendar via Graph API. Multi-account support.
Setup (once per account)
- Register app in Azure Portal → App registrations → New → Public client (mobile & desktop)
- Enable "Allow public client flows" (Device Code Flow)
- API permissions:
Mail.Read,Mail.Send,Calendars.ReadWrite,User.Read - Set env:
MICROSOFT_CLIENT_ID=\x3Cyour-app-id>and optionallyMICROSOFT_TENANT_ID - Run:
node skills/ms365/index.js --account work login
Commands
- Login:
node index.js --account work login - Who am I:
node index.js --account work whoami - Inbox:
node index.js --account work mail inbox --top 10 - Unread:
node index.js --account work mail unread - Read:
node index.js --account work mail read \x3Cid> - Send:
node index.js --account work mail send --to [email protected] --subject "Hi" --body "Hello" - Search:
node index.js --account work mail search "invoice" - Calendar:
node index.js --account work calendar --from 2026-04-14T00:00:00Z --to 2026-04-14T23:59:59Z - Create event:
node index.js --account work calendar-create --subject "Meeting" --start 2026-04-15T10:00 --end 2026-04-15T11:00
Multi-account
Use --account \x3Cname> to switch. Each account has separate tokens stored in ~/.openclaw/credentials/.
Notes
- Device Code Flow — authenticate in browser, no secrets stored
- Tokens auto-refresh
- Confirm before sending emails
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ms365-mail-calendar - After installation, invoke the skill by name or use
/ms365-mail-calendar - Provide required inputs per the skill's parameter spec and get structured output
What is Microsoft 365 Email & Calendar?
Microsoft 365 Email & Calendar CLI via Microsoft Graph API. Supports multiple accounts. It is an AI Agent Skill for Claude Code / OpenClaw, with 158 downloads so far.
How do I install Microsoft 365 Email & Calendar?
Run "/install ms365-mail-calendar" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Microsoft 365 Email & Calendar free?
Yes, Microsoft 365 Email & Calendar is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Microsoft 365 Email & Calendar support?
Microsoft 365 Email & Calendar is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Microsoft 365 Email & Calendar?
It is built and maintained by Roman Matyuschenko (@droba07); the current version is v1.2.0.