Quickstart¶
Source: https://github.com/microsoft/entrabot
Entrabot gives an autonomous agent its own Microsoft Entra Agent Identity and Agent User. The setup script provisions the identity chain, creates a certificate-backed credential, writes local configuration, and registers the MCP server.
Entrabot is a research project. Use an isolated development tenant and review the generated permissions before relying on it with production data.
macOS or Linux¶
Setup needs Python 3.12 or newer and nothing else first: no Azure CLI and no az login. Clone the latest release (or download its source code ZIP from https://github.com/microsoft/entrabot/releases/latest), then run setup from a terminal in it:
This clones the latest release, v0.3.1. main is development and may be ahead of it. Git then prints a note about a "detached HEAD": that is normal when you check out a release tag, not an error. To upgrade an existing install, see Upgrading to a new release.
Setup builds .venv, then asks a few questions (each has a suggested answer), signs you in to Microsoft, and creates the agent. To answer up front instead:
# Replace "workstation" with a short unique label for this Agent User.
./scripts/setup.sh --new --with-upn-suffix=workstation --yes
./scripts/setup.sh --use-blueprint=<blueprint-app-id> --yes
Use --agent-user-upn=<existing-upn> or --with-upn-suffix=<label> when the Blueprint has multiple Agent Users and auto-discovery would be ambiguous. Run ./scripts/setup.sh --help for every option.
The agent's signing key is kept in your login keychain on a Mac, or a Secret Service keyring on Linux; setup checks that it can use it before it changes anything. On Ubuntu 24.04 the wizard has been run end to end against a real tenant; on macOS only a repair run and the health check have. See macOS and Linux installation for what setup asks, what it installs, and its limits.
Windows¶
Nothing needs installing first. Download the latest release's source code ZIP or clone it, then double-click scripts\setup-windows.cmd, or run it from a terminal:
git clone --branch v0.3.1 https://github.com/microsoft/entrabot.git
cd entrabot
scripts\setup-windows.cmd
Setup asks a few questions (each has a suggested answer), signs you in to Microsoft, and creates the agent. To answer up front instead:
scripts\setup-windows.cmd -NewChain -UpnSuffix workstation -Yes
scripts\setup-windows.cmd -UseBlueprint <blueprint-app-id> -Yes
The agent's signing key is created in the PC's TPM when the TPM accepts it, and in the Windows software key store otherwise. Either way it cannot be exported. See Windows installation for what setup asks, what it installs, and its limits.
Verify the identity¶
On Windows:
A healthy Agent User token has idtyp=user, the Agent User's oid, and Microsoft Graph as its audience. The Agent Identity and Agent User are separate objects and should both appear in status output.
Start the MCP host¶
The setup script registers Entrabot with supported MCP hosts. For Claude Code channel notifications, on macOS or Linux:
It runs claude --dangerously-load-development-channels server:entrabot in the Entrabot folder. On Windows, double-click start-entrabot.cmd in the Entrabot folder. It runs the same command.
Then ask the host to call whoami. It should report the Agent User identity, not your human account.
What runs by default¶
- The MCP server is not contained: it runs with all of your account's rights. Containing it on macOS and Linux is planned for 0.4.0. See Security Boundaries.
- The agent can email, invite or share files only with its sponsors, the people in the chat a request came from, and your own organization. Anyone else needs
ENTRABOT_OUTBOUND_ALLOW. See Configuration. - Agent 365 integration (the agent's entry in the Agent 365 registry, and its telemetry) is off unless you switch it on at setup. The telemetry needs a Microsoft 365 E7 or Agent 365 licence in your organization.