skillfed

adguardhome

Asynchronous Python client for the AdGuard Home API.

adguardhome v0.8.1 74.1K downloads/30d#14,877 on PyPI116
Permissive license MIT Active released

What it is and what it does

This package provides an async Python interface to AdGuard Home, a network-wide DNS filtering and ad-blocking service. It lets you query the status of an AdGuard Home instance and control its protection settings programmatically—checking whether protection is enabled, toggling it on or off, and retrieving version information. The library is built on aiohttp for non-blocking network I/O, making it suitable for integration into automation frameworks and home-automation platforms.

The primary use case is enabling third-party applications to automate AdGuard Home behavior based on events or conditions—for example, automatically enabling parental controls when children arrive home, or disabling protection during maintenance windows. It abstracts away the HTTP API details, offering a clean async/await interface for developers building integrations.

Use it for:

  • Automate parental controls in AdGuard Home based on time-of-day or presence detection events.
  • Monitor AdGuard Home protection status and alert when DNS filtering is disabled.
  • Integrate AdGuard Home control into home-automation platforms like Home Assistant.
  • Programmatically toggle protection on or off based on network conditions or user actions.
  • Query AdGuard Home version and status as part of a network health-check routine.

Worth the install?

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

Asynchronous Python client library for controlling and monitoring AdGuard Home instances via its API, enabling programmatic automation of DNS filtering and protection settings.

Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a specific need for AdGuard Home automation. It is suitable for anyone building integrations with AdGuard Home or home-automation workflows. No known security vulnerabilities.

Install

adguardhome on PyPI

pip

pip install adguardhome

uv

uv add adguardhome

poetry

poetry add adguardhome

Installing adguardhome

Before you install

Low friction installation with only two runtime dependencies (aiohttp and yarl). Actively maintained as of 2025-11-16 with recent commits; supports current Python versions (3.11+).

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install adguardhome

from adguardhome import AdGuardHome
import asyncio

async def main():
    async with AdGuardHome("192.168.1.2") as adguard:
        version = await adguard.version()
        print("AdGuard version:", version)
        active = await adguard.protection_enabled()
        if not active:
            await adguard.enable_protection()

asyncio.run(main())

Requires Python 3.11 or later; AdGuard Home instance must be accessible at the provided network address.

Verify before relying

  • Whether authentication (username/password or API key) is required to connect to AdGuard Home instances.
  • Full scope of available API methods beyond version(), protection_enabled(), and enable_protection().
  • Whether the client supports AdGuard Home's DNS filtering rules, blocklists, or custom filtering configuration.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 2 — aiohttp, yarl
Maintenance actively maintained — 271 days since the last release
Last repo commit
First released
Downloads 74,081/month — #14,877 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: adguardhome-0.8.1-py3-none-any.whl

Keywords: adguard home, adguard, api, async, client

Development Status :: 4 - BetaFramework :: AsyncIOIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

adguard home api clientasync adguard controldns filtering automationadguard home pythonparental controls automationnetwork protection apiadguard monitoring
adguard-homedns-filteringhome-automation

More Python Modules packages