skillfed

hass-nabucasa

Home Assistant cloud integration by Nabu Casa, Inc.

hass-nabucasa v2.2.0 720.9K downloads/30d#5,233 on PyPI
Copyleft license GPL-3.0-only Active released

What it is and what it does

hass-nabucasa is Home Assistant's official cloud integration library, maintained by Nabu Casa, Inc. It abstracts the complexity of connecting Home Assistant instances to Nabu Casa's cloud platform, handling authentication, remote UI access via SniTun, ACME certificate lifecycle, and cloud-based features like voice processing and smart assistant integrations. The library manages API interactions, webhook routing, and file storage on the cloud backend.

The package is built on a substantial dependency graph including aiohttp for async HTTP, cryptography for TLS and certificate handling, grpcio for service communication, and specialized libraries like snitun for remote tunneling and pycognito for cloud authentication. It is intended for Home Assistant deployments that need cloud connectivity and is not a standalone tool for general use.

Use it for:

  • Enable remote access to Home Assistant instances from outside the home network via Nabu Casa cloud tunneling.
  • Integrate Home Assistant with Google Assistant and Alexa voice services through cloud-managed authentication.
  • Manage ACME certificate renewal and TLS lifecycle for Home Assistant's web interface.
  • Route webhooks and cloud events to local Home Assistant instances.
  • Store and retrieve files in cloud storage linked to a Home Assistant account.
  • Authenticate Home Assistant users against Nabu Casa cloud accounts.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

hass-nabucasa is a Python library that provides Home Assistant with cloud connectivity, authentication, and integration with Nabu Casa cloud services including remote access, voice processing, and smart home assistant integrations.

Yes, if you run Home Assistant and want cloud connectivity. The package is production-stable, actively maintained, has no known vulnerabilities, and carries low install friction. The GPL-3.0-only copyleft license is appropriate for Home Assistant's open-source ecosystem. The Python 3.14 requirement is unusually strict and should be verified against your Home Assistant version before installing.

Install

hass-nabucasa on PyPI

pip

pip install hass-nabucasa

uv

uv add hass-nabucasa

poetry

poetry add hass-nabucasa

Installing hass-nabucasa

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance status and no known vulnerabilities. Requires Python 3.14 or later, which is a current-version constraint that may limit compatibility with older Home Assistant deployments.

License in practice

GPL-3.0-only copyleft license requires that any derivative work or distribution must also be open-source under GPL-3.0-only terms. This is a strong copyleft obligation suitable for open-source projects but may restrict use in proprietary applications.

Quickstart

pip install hass-nabucasa==2.2.0

import hass_nabucasa
# Typically imported and used internally by Home Assistant,
# not directly by end-user code.

Requires Python 3.14 or later; intended for use within Home Assistant, not as a standalone library for direct application development.

Verify before relying

  • Whether the Python 3.14 requirement reflects actual runtime needs or is a documentation artifact, given the package's production-stable status and release history since 2019.
  • Specific version constraints or compatibility ranges for the 17 runtime dependencies, which could affect integration with existing Home Assistant installations.

Package facts

License GPL-3.0-only (copyleft)
Python support capped below the current Python release (>=3.14)
Install friction low — pure-Python wheel
Runtime dependencies 17 — acme, aiohttp, atomicwrites-homeassistant, attrs, ciso8601, cryptography, grpcio, icmplib, josepy, pycognito, PyJWT, requests, snitun, voluptuous, webrtc-models, yarl, sentence-stream
Maintenance actively maintained — 144 days since the last release
First released
Downloads 720,852/month — #5,233 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: hass_nabucasa-2.2.0-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopOperating System :: OS IndependentProgramming Language :: Python :: 3.14Topic :: Internet :: Proxy ServersTopic :: Software Development :: Libraries :: Python Modules

Tags

home assistant cloud librarynabu casa cloud integrationhome assistant remote accesscloud authentication home assistantvoice processing home assistantsmart home cloud connectorhome assistant certificate management
home-automationcloud-integrationauthentication

More Python Modules packages