Communitygithub.com

cli-anything-adguardhome

AdGuard Home REST API를 통해 네트워크 전체 광고 차단 및 DNS 관리를 수행하는 CLI 도구입니다. AI 에이전트와 고급 사용자가 GUI 없이 필터링, DNS 재작성, 클라이언트, DHCP, 쿼리 로그를 관리할 수 있도록 설계되었습니다.

cli-anything-adguardhome란 무엇인가요?

이 스킬은 AdGuard Home의 REST API를 활용하여 네트워크 전체 광고 차단 및 DNS 관리를 명령줄에서 수행할 수 있게 해줍니다. AI 에이전트(Claude Code, Cursor 등)와 파워 유저가 GUI 없이도 필터링, DNS 재작성, 클라이언트 관리, DHCP 서버, 쿼리 로그, TLS 설정을 완벽하게 제어할 수 있습니다. 주요 기능으로는 필터 목록 추가/제거/활성화/새로고침, DNS 재작성 규칙 관리, 클라이언트 기기 등록 및 삭제, DHCP 임대 관리, 부모 제어 및 세이프 브라우징 설정, 통계 및 로그 조회 등이 포함됩니다. 모든 명령어는 사람이 읽기 쉬운 형식과 `--json` 플래그를 통한 기계 파싱 형식을 모두 지원하여, AI 에이전트가 구조화된 데이터를 처리하기에 적합합니다. Python 3.10+ 환경에서 pip로 설치 가능하며, AdGuard Home이 실행 중이어야 합니다. AI 에이전트 사용 시 반드시 `--json` 플래그를 사용하고, 반환 코드와 stderr를 확인하여 오류를 처리하는 것이 권장됩니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-adguardhome

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

cli-anything-adguardhome은(는) 무엇을 하나요?

REST API를 통해 AdGuard Home의 네트워크 전체 광고 차단 및 DNS 관리를 위한 CLI 도구입니다. AI 에이전트와 고급 사용자가 GUI 없이 필터링, DNS 재작성, 클라이언트, DHCP, 쿼리 로그를 관리할 수 있도록 설계되었습니다.

설치

이 CLI는 cli-anything-adguardhome 패키지의 일부로 설치됩니다:

pip install cli-anything-adguardhome

필수 사항:

  • Python 3.10+
  • AdGuard Home이 설치 및 실행 중이어야 함
  • AdGuard Home 설치: curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

사용법

기본 명령어

# 도움말 표시
cli-anything-adguardhome --help

# 대화형 REPL 모드 시작
cli-anything-adguardhome

# 서버 상태 확인
cli-anything-adguardhome server status

# JSON 출력으로 실행 (에이전트 소비용)
cli-anything-adguardhome --json server status

REPL 모드

인자 없이 호출하면 CLI가 대화형 REPL 세션에 진입합니다:

cli-anything-adguardhome
# 탭 완성 및 히스토리 기능으로 명령어를 대화형으로 입력

명령어 그룹

Config

연결 및 구성 관리.

명령어설명
show현재 연결 구성 표시
save연결 설정을 구성 파일에 저장
testAdGuard Home 연결 테스트

Server

서버 상태 및 제어 명령어.

명령어설명
status서버 보호 상태 표시
versionAdGuard Home 버전 표시
restartAdGuard Home 서버 재시작

Filter

DNS 필터 목록 관리.

명령어설명
list구성된 모든 필터 목록 표시
status필터링 상태 표시
toggle전역 필터링 활성화 또는 비활성화
addURL로 새 필터 목록 추가
remove필터 목록 제거
enable특정 필터 목록 활성화
disable특정 필터 목록 비활성화
refresh모든 필터 목록 강제 새로고침

Blocking

부모 제어, 세이프 브라우징, 세이프 서치 설정.

명령어설명
parental status부모 제어 상태 표시
parental enable부모 제어 활성화
parental disable부모 제어 비활성화
safebrowsing status세이프 브라우징 상태 표시
safebrowsing enable세이프 브라우징 활성화
safebrowsing disable세이프 브라우징 비활성화
safesearch status세이프 서치 상태 표시
safesearch enable세이프 서치 활성화
safesearch disable세이프 서치 비활성화

Blocked-Services

차단된 인터넷 서비스 관리.

명령어설명
list현재 차단된 서비스 목록 표시
set차단된 서비스 목록 설정

Clients

클라이언트 기기 관리.

명령어설명
list구성된 모든 클라이언트 목록 표시
add이름과 IP로 새 클라이언트 추가
remove클라이언트 제거
show특정 클라이언트의 세부 정보 표시

Stats

쿼리 통계.

명령어설명
showDNS 쿼리 통계 표시
reset모든 통계 초기화
config통계 보존 간격 보기 또는 업데이트

Log

DNS 쿼리 로그 관리.

명령어설명
show최근 DNS 쿼리 로그 항목 표시
config쿼리 로그 설정 보기 또는 업데이트
clear쿼리 로그 지우기

Rewrite

DNS 재작성 규칙.

명령어설명
list모든 DNS 재작성 규칙 표시
addDNS 재작성 규칙 추가
removeDNS 재작성 규칙 제거

DHCP

DHCP 서버 관리.

명령어설명
statusDHCP 서버 상태 표시
leases활성 DHCP 임대 목록 표시
add-static고정 DHCP 임대 추가
remove-static고정 DHCP 임대 제거

TLS

TLS/HTTPS 구성.

명령어설명
statusTLS 구성 상태 표시

예제

서버 상태 확인

cli-anything-adguardhome server status
cli-anything-adguardhome server version

필터 목록 관리

# 현재 필터 목록 표시
cli-anything-adguardhome filter list

# 새 블록리스트 추가
cli-anything-adguardhome filter add --url https://somehost.com/list.txt --name "내 목록"

# 모든 필터 새로고침
cli-anything-adguardhome filter refresh

DNS 재작성

# 로컬 DNS 항목 추가
cli-anything-adguardhome rewrite add --domain "myserver.local" --answer "192.168.1.50"

# 모든 재작성 목록 표시
cli-anything-adguardhome rewrite list

클라이언트 관리

cli-anything-adguardhome clients add --name "내 PC" --ip 192.168.1.100
cli-anything-adguardhome clients list

쿼리 통계

# 통계 표시 (사람이 읽을 수 있는 형식)
cli-anything-adguardhome stats show

# 통계 표시 (에이전트용 JSON)
cli-anything-adguardhome --json stats show

출력 형식

모든 명령어는 두 가지 출력 모드를 지원합니다:

  • 사람이 읽을 수 있는 형식 (기본값): 표, 컬러, 서식 지정된 텍스트
  • 기계가 읽을 수 있는 형식 (--json 플래그): 에이전트 소비를 위한 구조화된 JSON
# 사람용 출력
cli-anything-adguardhome filter list

# 에이전트용 JSON 출력
cli-anything-adguardhome --json filter list

AI 에이전트용

이 CLI를 프로그래밍 방식으로 사용할 때:

  1. 항상 --json 플래그를 사용하여 파싱 가능한 출력을 얻으세요
  2. 반환 코드를 확인하세요 - 0은 성공, 0이 아니면 오류입니다
  3. stderr를 파싱하여 실패 시 오류 메시지를 확인하세요
  4. 모든 파일 작업에 절대 경로를 사용하세요
  5. 먼저 config test로 연결을 테스트한 후 다른 명령어를 실행하세요

추가 정보

  • 전체 문서: 패키지 내 README.md 참조
  • 테스트 커버리지: 패키지 내 TEST.md 참조
  • 방법론: cli-anything-plugin 내 HARNESS.md 참조

버전

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

관련 스킬