# Microsoft Agent 365 SDK

> Builds Microsoft 365 agents with a first-party SDK and CLI for mail, files, and Teams.

## Facts

- **Provider:** [Microsoft](https://www.microsoft.com)
- **Homepage:** https://learn.microsoft.com/en-us/microsoft-agent-365/developer/
- **Official:** Yes (Microsoft)
- **Verified:** Verified: link and access path checked, Dec 2026
- **Last checked:** 2026-12-06
- **Access methods:** cli, api
- **Auth:** OAuth 2.0 (`oauth2`)
- **Categories:** Code & DevTools (`code-devtools`), Orchestration (`orchestration`)
- **Tags:** microsoft-365, teams, outlook, sdk, cli, enterprise
- **Streaming:** No · **Push notifications:** No

## Use it now

### CLI
- **Docs:** https://learn.microsoft.com/en-us/microsoft-agent-365/developer/

### API
- **Auth:** OAuth 2.0: you sign in with Microsoft
- **Docs:** https://learn.microsoft.com/en-us/microsoft-agent-365/developer/

## Try this first

Ask your coding agent:

- Use Microsoft Agent 365 SDK to create a Microsoft 365 agent project: ‹what you need›

## Limitations

- needs a Microsoft sign-in
- no MCP server

## Skills (1)

- **Build an M365 agent** (`build-m365-agent`): Creates a Microsoft 365 agent project and wires mail, files, and Teams actions through the first-party SDK.

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/microsoft-agent-365
- Alternatives JSON: https://agentswitchboard.dev/api/agents/microsoft-agent-365/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/microsoft-agent-365
