Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)58k · #3181

cli-anything-adguardhome

Skill này làm gì

Skill này cho phép agent quản lý AdGuard Home, phần mềm chặn quảng cáo và quản lý DNS trên mạng gia đình hoặc văn phòng. Nó dành cho người chạy AdGuard Home và muốn quản lý nó từ dòng lệnh.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra AdGuard Home có đang chạy trên mạng của bạn không.
  • ✓Khi bạn muốn thay đổi bộ lọc hoặc thêm một DNS rewrite.
  • ✓Khi bạn muốn xem nhật ký truy vấn DNS gần đây của một thiết bị.

Liên kết skill

https://github.com/HKUDS/CLI-Anything/blob/main/adguardhome/agent-harness/cli_anything/adguardhome/skills/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/CLI-Anything/blob/main/adguardhome/agent-harness/cli_anything/adguardhome/skills/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra xem AdGuard Home có đang chạy không, rồi cho tôi xem mười truy vấn bị chặn gần nhất.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill gửi lệnh tới AdGuard Home qua REST API của nó. Nó có thể hiển thị trạng thái, thay đổi cài đặt và đọc nhật ký, rồi trả về đầu ra ở dạng agent đọc được.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 ref
Câu hỏi thường gặp

Tôi có cần cài AdGuard Home không?

Có, AdGuard Home phải đã được cài và đang chạy trên mạng của bạn.

Nó có thể thay đổi cài đặt lọc của tôi không?

Có, nó có thể quản lý bộ lọc, DNS rewrite và thiết bị qua API của AdGuard Home.

Nó có bao gồm DHCP không?

Có, skill bao gồm cài đặt DHCP cùng với bộ lọc và nhật ký truy vấn.

Chi tiết

Mô tả gốc của tác giả

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.

repo: HKUDS/CLI-Anything

Độ phổ biến

Sao GitHub
58k
Vị trí xếp hạng
#3181
Giấy phép
Apache-2.0
Cập nhật
21/9/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự