Description
Home-Mandate is an authorization gateway between AI agents and Home Assistant. Every agent gets its own identity and a mandate: which devices it may read or control, where a human has to approve first, and what it may never do. Home-Mandate keeps Home Assistant's credentials to itself, so agents never see a Home Assistant token. They get short-lived OAuth tokens (10 minutes, refresh tokens 30 days, rotated) bound to Home-Mandate. No agent is admitted without a Home Assistant administrator who signs in and picks its mandate.
Every request is evaluated by the reference evaluator of the Home-Mandate specification, never by a language model, with exactly one of three answers: allow, ask or deny. The default rule is that anything not explicitly allowed is not allowed. Mandates can be set per device, area, category and action, with time windows, weekdays, value limits (brightness, temperature, position, volume) and a per-hour rate limit. Critical actions (unlocking, opening a gate or garage door, disarming the alarm, running scripts, activating scenes, camera snapshots) require an approval even where a rule allows them, unless a rule explicitly allows them without approval.
Approval requests arrive on the approvers' phones through the Home Assistant Companion app with Allow and Deny buttons; no answer means no. An emergency stop blocks every agent at once, and single agents can be revoked, both effective with the next request. Every decision, approval and change is written to a hash-chained audit log with signed checkpoints and verification in the UI and on the command line.
The tool ships as one static binary in a FROM scratch image for amd64 and aarch64, signed with cosign, and installs as a Home Assistant OS app or in container mode. It exposes an MCP endpoint (MCP over HTTPS) with OAuth 2.1, a web UI in English and German, and command line administration. The current version is 0.1.3.