Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI.
Capabilities
REPL Mode
Config
Connection and configuration management
Server
Server status and control commands
Filter
DNS filter list management
Getting started
Full instructionsExample command
Installation
pip install cli-anything-adguardhomeInstructions: SKILL.mdv1.0.0
cli-anything-adguardhome
Network-wide ad blocking and DNS management via the AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI.
Installation
This CLI is installed as part of the cli-anything-adguardhome package:
pip install cli-anything-adguardhome
Prerequisites:
- Python 3.10+
- AdGuard Home must be installed and running
- Install AdGuard Home:
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
Usage
Basic Commands
# Show help
cli-anything-adguardhome --help
# Start interactive REPL mode
cli-anything-adguardhome
# Check server status
cli-anything-adguardhome server status
# Run with JSON output (for agent consumption)
cli-anything-adguardhome --json server status
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-adguardhome
# Enter commands interactively with tab-completion and history
Command Groups
Config
Connection and configuration management.
| Command | Description |
|---|---|
show |
Show current connection configuration |
save |
Save connection settings to a config file |
test |
Test the connection to AdGuard Home |
Server
Server status and control commands.
| Command | Description |
|---|---|
status |
Show server protection status |
version |
Show AdGuard Home version |
restart |
Restart the AdGuard Home server |
Filter
DNS filter list management.
| Command | Description |
|---|---|
list |
List all configured filter lists |
status |
Show filtering status |
toggle |
Enable or disable filtering globally |
add |
Add a new filter list by URL |
remove |
Remove a filter list |
enable |
Enable a specific filter list |
disable |
Disable a specific filter list |
refresh |
Force-refresh all filter lists |
Blocking
Parental control, safe browsing, and safe search settings.
| Command | Description |
|---|---|
parental status |
Show parental control status |
parental enable |
Enable parental control |
parental disable |
Disable parental control |
safebrowsing status |
Show safe browsing status |
safebrowsing enable |
Enable safe browsing |
safebrowsing disable |
Disable safe browsing |
safesearch status |
Show safe search status |
safesearch enable |
Enable safe search |
safesearch disable |
Disable safe search |
Blocked-Services
Manage blocked internet services.
| Command | Description |
|---|---|
list |
List currently blocked services |
set |
Set the list of blocked services |
Clients
Client device management.
| Command | Description |
|---|---|
list |
List all configured clients |
add |
Add a new client by name and IP |
remove |
Remove a client |
show |
Show details for a specific client |
Stats
Query statistics.
| Command | Description |
|---|---|
show |
Show DNS query statistics |
reset |
Reset all statistics |
config |
View or update statistics retention interval |
Log
DNS query log management.
| Command | Description |
|---|---|
show |
Show recent DNS query log entries |
config |
View or update query log settings |
clear |
Clear the query log |
Rewrite
DNS rewrite rules.
| Command | Description |
|---|---|
list |
List all DNS rewrite rules |
add |
Add a DNS rewrite rule |
remove |
Remove a DNS rewrite rule |
DHCP
DHCP server management.
| Command | Description |
|---|---|
status |
Show DHCP server status |
leases |
List active DHCP leases |
add-static |
Add a static DHCP lease |
remove-static |
Remove a static DHCP lease |
TLS
TLS/HTTPS configuration.
| Command | Description |
|---|---|
status |
Show TLS configuration status |
Examples
Check Server Status
cli-anything-adguardhome server status
cli-anything-adguardhome server version
Manage Filter Lists
# List current filters
cli-anything-adguardhome filter list
# Add a new blocklist
cli-anything-adguardhome filter add --url https://somehost.com/list.txt --name "My List"
# Refresh all filters
cli-anything-adguardhome filter refresh
DNS Rewrites
# Add a local DNS entry
cli-anything-adguardhome rewrite add --domain "myserver.local" --answer "192.168.1.50"
# List all rewrites
cli-anything-adguardhome rewrite list
Client Management
cli-anything-adguardhome clients add --name "My PC" --ip 192.168.1.100
cli-anything-adguardhome clients list
Query Statistics
# Show stats (human-readable)
cli-anything-adguardhome stats show
# Show stats (JSON for agents)
cli-anything-adguardhome --json stats show
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-adguardhome filter list
# JSON output for agents
cli-anything-adguardhome --json filter list
For AI Agents
When using this CLI programmatically:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Test connection first with
config testbefore other commands
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0
Explore more skills
Browse all- CLI Anything InkscapeCommand-line interface for Inkscape - A stateful command-line interface for vector graphics editing, following the same…
- CLI Anything Live2dInspect, validate, edit, lint, diff, batch-manage, and deploy Live2D Cubism models (.model3.json) from the command line.
- CLI Anything RekordboxCommand-line interface for Pioneer Rekordbox 6/7 - DJ library and live-deck control via guarded SQLCipher master.db…
- CLI Hub Matrix Game DevelopmentCapability-based multi-tool matrix for game development: engine, 3D/2D/audio assets, AI-generated assets, agent…
- CLI Anything ShotcutCommand-line interface for Shotcut - A stateful command-line interface for video editing, built on the MLT XML format.…
- CLI Anything Slay the Spire IiCommand-line interface for Slay the Spire 2 - Control the real game through a local bridge mod HTTP API. Reads…
Security
Reviews (0)
More from CLI-Anything
View source →Frequently asked questions about cli-anything-adguardhome
What does the cli-anything-adguardhome skill do?
Command-line interface for AdGuard Home - Network-wide ad blocking and DNS management via AdGuard Home REST API. Designed for AI agents and power users who need to manage filtering, DNS rewrites, clients, DHCP, and query logs without a GUI. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the cli-anything-adguardhome skill?
Run `npx @skills-hub-ai/cli install cli-anything-adguardhome` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cli-anything-adguardhome/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does cli-anything-adguardhome work with?
cli-anything-adguardhome runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the cli-anything-adguardhome skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use cli-anything-adguardhome after installing it?
In Claude Code, type `/cli-anything-adguardhome` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the cli-anything-adguardhome skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/cli-anything-adguardhome)<a href="https://skills-hub.ai/skills/cli-anything-adguardhome"><img src="https://skills-hub.ai/api/badges/skill/cli-anything-adguardhome" alt="Install on Skills Hub"></a>More options in the badge docs.