Entraclaw Identity Research¶
Source: https://github.com/brandwe/entraclaw-identity-research · License: MIT
Entraclaw is a Python MCP server that gives a device-local agent its own Entra Agent ID and an Agent User that has all the capabilities of a human user in a Microsoft tenant. It can have a Teams presence and be invited to meetings to chat with your colleagues 1:1, a mailbox it can monitor and respond to, create and edit Word documents, make PowerPoint presentations, and allows you to access your CLI. The agent signs in autonomously, sends Teams messages from its own account, and writes audit events against its own object ID. It runs on macOS, Linux, and Windows, and works with Claude Code, Copilot CLI, or any MCP-speaking client.
All you need to get started is:
- A Free Microsoft 365 Developer tenant (sign up at https://aka.ms/m365devprogram)
- A license that includes Teams and Outlook (E3 or E5 dev tenant licenses work)
- Python 3.12 installed locally
The scripts take care of the rest: provisioning the Agent Identity Blueprint, Agent Identity, and Agent User in Entra; uploading a self-signed certificate; assigning the license; and configuring the local MCP server.
Microsoft Entra Agent ID and Microsoft Agent 365 — which enable these experiences — went GA on 2026-05-01. Entraclaw is the reference implementation that pulls those primitives together on a real device, today.
Where to Start¶
- New to the project? Start with the Quickstart
- Current status / what's shipped / what's next? Engineering Status
- Customizing the agent's prompt? Read Customizing the body prompt — the
prompts/agent_system.mdbody +prompts/anatomy/*.mdmodules - Mind-body split (what's where)? See DESIGN: persona-sati integration
- Local vs. cloud storage? Read Storage configuration
- MCP tool reference? See MCP tools
setup.shflags? See setup.sh reference- Script + API reference? Browse Reference: Scripts and Reference: API
- Understanding the design? Read System Overview
- Bot Gateway design? Read DESIGN: Teams Bot Gateway
- Delegated mode / multi-tenant chat? Read Lightweight Teams Chat (landed)
- Cloud memory work? See ADR-005: Cloud-Hosted Memory (Phases 1, 2, 5, 6a shipped)
- How tokens flow? See Token Flows
- Debugging? Check Hard-Won Learnings (66 entries)
- Why we made a decision? Browse Architecture Decision Records
- Agent User deep dive? See Platform Learnings: Agent Users
- Platform constraints (post-GA Agent Blueprints / Users)? Read Agent ID Blueprints and Users — required reading before any OAuth or Agent Identity work.
- Open security work? See Security Debt: Provisioner client secret
Open Research Questions¶
- What M365 license tier is optimal for Agent Users? (E3 vs E5 vs Teams Enterprise)
- How do you track agent actions across OSes with a universal audit store?
- Conditional Access for Agent Identities — how does device-local enforcement work without a Layer 4 anchor?
- Will Entra add a
registration_endpoint(RFC 7591) so MCP servers can stop maintaining a two-app-registration workaround? Tracked indocs/platform-learnings/agent-id-blueprints-and-users.md. - What's the right ceiling on per-tenant Agent User count before directory-quota pressure forces a federation model?