aiohasupervisor
Asynchronous python client for Home Assistant Supervisor.
What it is and what it does
aiohasupervisor is an async Python client for the Home Assistant Supervisor REST API. It wraps HTTP communication with Supervisor into a Python interface, currently used in Home Assistant's official Supervisor integration. The library relies on aiohttp for async HTTP, mashumaro and orjson for serialization, and expects authentication via the SUPERVISOR_TOKEN environment variable—a design that limits its use to Home Assistant add-ons and environments where Supervisor automatically sets that token.
The library is purpose-built for Home Assistant's internal ecosystem rather than general-purpose Supervisor access. Add-ons and integrations that need to query Supervisor state or trigger actions can use it instead of making raw HTTP calls, but there is currently no way to obtain a long-lived access token for Supervisor outside the add-on context, so external applications cannot easily adopt it.
Use it for:
- Query Supervisor state and system information from within a Home Assistant add-on or integration.
- Trigger Supervisor actions from Home Assistant automation or custom integrations.
- Build add-ons that need to communicate bidirectionally with the Supervisor daemon.
- Replace raw HTTP calls to Supervisor endpoints with a typed, async Python interface in Home Assistant components.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous Python client library for communicating with Home Assistant Supervisor via its REST API, designed for use within Home Assistant integrations and add-ons.
Yes, if you are developing a Home Assistant add-on or integration that needs to interact with Supervisor. The library is actively maintained, has no known vulnerabilities, and low install friction. No, if you need to access Supervisor from outside the Home Assistant ecosystem—the token-based authentication model and lack of external token generation make it unsuitable for that use case.
Install
aiohasupervisor on PyPI
pip
pip install aiohasupervisoruv
uv add aiohasupervisorpoetry
poetry add aiohasupervisorInstalling aiohasupervisor
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release; the repository is not archived and receives regular commits.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install aiohasupervisor
import aiohasupervisor
import asyncio
await aiohasupervisor.info()
Requires Python 3.13.0 or later. The library expects the SUPERVISOR_TOKEN environment variable to be set, which is automatically provided by Supervisor for add-ons but must be manually configured for remote development.
Verify before relying
- What specific methods and endpoints the library exposes beyond the info() call shown in documentation.
- Whether error handling and retry logic are built in or left to the caller.
- Performance characteristics and rate-limiting behavior when making repeated calls to Supervisor.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.13.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — aiohttp, mashumaro, orjson |
| Maintenance | actively maintained — 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 577,450/month — #5,924 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aiohasupervisor-0.6.0-py3-none-any.whl
Keywords: docker, home-assistant, api, client-library
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
aiohomekitAn asyncio-based HomeKit client library for…
permissive · top 15,000 on PyPI
pyfibaroProvides a Python client library to interact…
permissive · top 15,000 on PyPI
systembridgeconnectorProvides a connector client for the System…
permissive · top 15,000 on PyPI
pyhaversionFetches the latest Home Assistant version…
permissive · top 15,000 on PyPI
aiounifiAsynchronous Python library for communicating…
permissive · top 15,000 on PyPI
homeassistantHome Assistant is an open-source home…
permissive · top 5,000 on PyPI
home-assistant-frontendProvides the web-based user interface for Home…
permissive · top 15,000 on PyPI
ha-ffmpegProvides an asyncio-based Python interface to…
permissive · top 15,000 on PyPI
insteon-frontend-home-assistantProvides the frontend UI panel for the Insteon…
permissive · top 15,000 on PyPI
infrared-protocolsDecodes and encodes infrared signals for use in…
permissive · top 15,000 on PyPI