pihole-ctl
Manage and monitor local Pi-hole instance. Query FTL database for statistics (blocked ads, top clients) and control service via CLI. Use when user asks "how many ads blocked", "pihole status", or "update gravity".
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1999azzar/pihole-ctlWhat This Skill Does
The pihole-ctl skill is a robust utility designed to integrate OpenClaw with your local Pi-hole network-wide ad blocker. Acting as a "Network Guardian," this skill allows the AI agent to interface directly with the Pi-hole FTL engine to retrieve real-time data or perform system administration tasks. By utilizing native Python scripts to query the FTL SQLite database, the skill provides deep insights into your network traffic, identifying top-blocked domains, high-frequency clients, and general blocking statistics. Furthermore, it bridges the gap between natural language commands and the Pi-hole command-line interface, enabling the agent to execute maintenance routines like gravity updates or service toggles without manual intervention.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/1999azzar/pihole-ctl. Post-installation, ensure your system user possesses the necessary read permissions for the /etc/pihole/pihole-FTL.db file. We highly recommend adding your agent's execution user to the pihole group using sudo usermod -aG pihole <username> to avoid permission errors when querying logs. For management commands that require administrative privileges, configure your sudoers file to allow passwordless execution for specific pihole commands.
Use Cases
This skill is ideal for home lab enthusiasts and network administrators looking to automate their dashboard monitoring. It shines when you need to audit suspicious activity on your network, quickly disable ad-blocking for a specific site that is failing to load, or monitor the effectiveness of your blocklists over time. By centralizing these tasks within the AI agent, you gain a conversational interface for your network infrastructure.
Example Prompts
- "How many ads has Pi-hole blocked in the last 24 hours?"
- "I'm having trouble with a website, please disable Pi-hole blocking for 5 minutes."
- "Who are the top three clients requesting domains on my network right now?"
Tips & Limitations
- Permissions: Always verify that the database path is correct for your specific OS distribution, as some configurations might vary.
- Performance: While querying the FTL database is efficient, avoid running excessively frequent queries if you have a massive network with heavy traffic to prevent potential database locking.
- Security: Since this skill requires
sudofor management commands, ensure the agent has limited sudoers privileges, specifically restricting access to only the necessary pihole commands to maintain a secure environment.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-1999azzar-pihole-ctl": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, code-execution
Related Skills
newman
Automated API testing with Postman collections via Newman CLI. Use when user requests API testing, collection execution, automated testing, CI/CD integration, or mentions "Postman", "Newman", "API tests", "run collection", or "automated testing".
mema-vault
Secure credential manager using AES-256 (Fernet) encryption. Stores, retrieves, and rotates secrets using a mandatory Master Key. Use for managing API keys, database credentials, and other sensitive tokens.
ui-designer
Design beautiful interfaces using 16+ design systems including Material You, Fluent Design, Apple HIG, Ant Design, Carbon Design, Shopify Polaris, Minimalism, Glassmorphism, Neo-Brutalism, Neumorphism, Skeuomorphism, Claymorphism, Swiss Design, and Atlassian Design. Expert in Tailwind CSS, color harmonics, component theming, and accessibility (WCAG).
mermaid-architect
Generate beautiful, hand-drawn Mermaid diagrams with robust syntax (quoted labels, ELK layout). Use this skill when the user asks for "diagram", "flowchart", "sequence diagram", or "visualize this process".
guardian-wall
Mitigate prompt injection attacks, especially indirect ones from external web content or files. Use this skill when processing untrusted text from the internet, user-uploaded files, or any external source to sanitize content and detect malicious instructions (e.g., "ignore previous instructions", "system override").