Network

AdGuard Home

Legato shows your AdGuard Home in the Mac’s menu bar: whether protection is on, a menu to pause it for 5 minutes to 8 hours, switches for Safe Browsing and parental filtering, queries per hour, how many were blocked, and the top domains. Four more pages open from it: recent queries, clients, blocklists and local DNS. Legato reads AdGuard Home’s API from your Mac, signed in with a username and password kept in the Keychain or 1Password.

Install in LegatoSet it up by hand ↓

AdGuard Home
Controls
Queries per hour
2,690
02K
23 hours agoLast hour
Last 24 hours41,286
Blocked9,32723% of queries
Server
Clients
9 · busiest Work laptop
Upstream
https://dns.quad9.net:443
Blocklists
412,388 rules from 3 lists
Version
v0.107.80
Answer time
14 ms
Most blocked
doubleclick.net1,214
app-measurement.com1,102
samsungads.com846
googletagmanager.com610
applovin.com433
Explore
Updated 12 min ago

What you’ll see

AdGuard Home

Protection is in Details. The health card turns orange while filtering is turned off, and red when the DNS server isn’t running. A pause doesn’t count as a problem. The page opens with Controls: a Pause menu (5 minutes, 30 minutes, 1 hour or 8 hours), or Resume while it’s paused; Safe Browsing and parental filtering on or off; and Clear DNS cache, which asks first. Queries for each of the last 23 complete hours, the queries and blocked queries in the last 24 hours, a Server card with your clients, upstream, the rules your blocklists hold, version and answer time, and the most blocked and most queried domains. Explore opens the other four pages.

Queries

The latest queries and the latest blocked ones, in two tabs. Each row shows the domain, the device and why it was answered as it was: allowed, blocked by a list, a blocked service, Safe Search or a rewrite.

Clients

The busiest devices in the last 24 hours, by the names you gave them in AdGuard Home, and the clients you’ve named, with the ones that have their own settings marked.

Blocklists

Each list with its rule count and when it last updated, a button to update them, and your custom rules.

Local DNS

Your DNS rewrites, the upstream servers, bootstrap servers, mode, cache and DNSSEC, with Clear DNS cache, and how fast each upstream answers.

Status

  • Watches protection, filtering and the DNS server.
  • Orange while filtering is turned off.
  • Pausing or turning off protection never counts as a problem.
  • Red when the DNS server isn’t running or AdGuard Home isn’t answering.
  • Notifies you when it turns orange or red.

How it connects

Every request goes from your Mac straight to your AdGuard Home with the username and password in an Authorization header (HTTP Basic). Nothing passes through Legato’s servers, and the password is sent only to AdGuard Home’s address.

Requests it makes on its own 10

  • GET/control/status

    Whether the DNS server is running and protection is on, how long a pause has left, and the version.

    All fiveEvery minute

  • GET/control/stats

    The last 24 hours: queries and blocked queries, each hour’s queries, the top domains, clients and upstreams, and the average processing time.

    All fiveEvery minute

  • GET/control/clients

    The clients you’ve named, so the busiest show by name rather than address.

    All fiveEvery minute

  • GET/control/filtering/status

    Whether filtering is on, your blocklists and your custom rules.

    All fiveEvery minute

  • GET/control/safebrowsing/status

    Whether Safe Browsing is on.

    All fiveEvery minute

  • GET/control/parental/status

    Whether parental filtering is on.

    All fiveEvery minute

  • GET/control/querylog?limit=25

    The latest queries.

    All fiveEvery minute

  • GET/control/querylog?limit=25&response_status=blocked

    The latest blocked queries.

    All fiveEvery minute

  • GET/control/dns_info

    The upstream and bootstrap servers, the mode, the cache and DNSSEC.

    Local DNSEvery 15 minutes

  • GET/control/rewrite/list

    Your DNS rewrites.

    Local DNSEvery 15 minutes

Requests it makes when you act 7
  • POST/control/protection

    Pause sends {"enabled": false, "duration": 300000}, with the milliseconds you picked; Resume sends {"enabled": true}.

    AdGuard HomeWhen you pick a length from Pause, or press Resume

  • POST/control/safebrowsing/enable

    Turns Safe Browsing on for everyone.

    AdGuard HomeWhen you press Turn on Safe Browsing

  • POST/control/safebrowsing/disable

    Turns it off.

    AdGuard HomeWhen you press Turn off Safe Browsing

  • POST/control/parental/enable

    Turns parental filtering on for everyone.

    AdGuard HomeWhen you press Turn on parental filter

  • POST/control/parental/disable

    Turns it off.

    AdGuard HomeWhen you press Turn off parental filter

  • POST/control/cache_clear

    Empties the DNS cache, so the next answers come from the upstream servers.

    AdGuard Home, Local DNSWhen you press Clear DNS cache, and confirm

  • POST/control/filtering/refresh

    Downloads your blocklists again now ({"whitelist": false}).

    BlocklistsWhen you press Update the lists

All the pages read the same eight requests, so Legato fetches them once a minute for all five. Sources and buttons explains each part of a page.

Set it up

  1. Add the pages. Paste the prompt into your agent, or download the five pages and run /Applications/Legato.app/Contents/Helpers/legato set adguard-home-queries adguard-home-queries.json, then the same for adguard-home-clients, adguard-home-filtering, adguard-home-dns and, last, adguard-home. Keep those page IDs: the overview opens the others by them, so with another ID, change the matching legato://page/ link. Don’t replace an existing page without reading it first.
  2. Point them at your AdGuard Home. The pages use http://192.0.2.53, an address that goes nowhere. Change each source’s url to the address and port you open AdGuard Home’s web interface at, such as http://192.168.1.2 or http://192.168.1.2:3000; Local DNS has two sources.
  3. Save the username and password in Legato’s Settings → Secrets under the name adguard-home, as username:password, or link it from 1Password. From a shell, the app reads it from standard input, so it stays out of your history:
bash
/Applications/Legato.app/Contents/MacOS/Legato secret set adguard-home

The cards fill within a minute while Legato is running and AdGuard Home is reachable. The overview is in the sidebar; the other four pages open from it. The HTTP address sends the password without transport encryption: use it only on a trusted local network, and prefer HTTPS when it’s set up in AdGuard Home (Settings → Encryption settings).

Prompt for your agent

prompt
Add 5 Legato pages for AdGuard Home, starting from https://legatobar.com/examples/adguard-home.json, https://legatobar.com/examples/adguard-home-queries.json, https://legatobar.com/examples/adguard-home-clients.json, https://legatobar.com/examples/adguard-home-filtering.json, https://legatobar.com/examples/adguard-home-dns.json. Use the page IDs adguard-home, adguard-home-queries, adguard-home-clients, adguard-home-filtering, adguard-home-dns if they’re free: the pages link to each other by those IDs, so with any other ID, change the matching legato://page/ links.

Change only the url of each source to my AdGuard Home’s address and port, as I open its web interface (Local DNS has two sources), and keep the source and secret names. I’ll save the username and password as adguard-home in Settings → Secrets myself. Don’t press Pause, Resume or any switch to test it.

Use the local Legato MCP tools or /Applications/Legato.app/Contents/Helpers/legato.
Use list_pages first and choose an unused page ID. Do not overwrite an existing page. If I explicitly ask to update one, read its full body with get_page, preserve unrelated cards and settings, and use if_match with that version. On version_mismatch, read again before merging.
Ask me only for non-secret setup details that are missing. Never ask me to paste a password, token or API key into chat, page JSON or command arguments. Tell me to save it in Settings → Secrets for the service host, or link it from 1Password there.
Use the downloadable page, not the illustration’s sample data. Never invent readings. Fix any invalid_page paths and verify that the page loads. Do not press buttons that change the service or real devices to test it.

Download the pages

Questions

Can I pause protection from the menu bar?

Yes. Pick 5 minutes, 30 minutes, 1 hour or 8 hours from the Pause menu, and AdGuard Home turns protection back on when the time is up, even if your Mac is asleep. Resume turns it back on sooner. To offer other lengths, change the choices on the Pause button: each value is milliseconds.

Does AdGuard Home have an API key?

No. Its API signs in with the same username and password as the web interface, and every user can change every setting. To give Legato its own login, add a second user under users in AdGuardHome.yaml (the password is a bcrypt hash), then restart AdGuard Home.

Is “Last 24 hours” since midnight?

No. AdGuard Home keeps statistics by the hour and answers for the last 24 of them, so the count rolls forward with the clock. If you’ve set its statistics to keep less than a day, the pages show what it keeps.

Why are some domains blocked for one device and not another?

AdGuard Home can give a client its own settings: its own filtering, Safe Search, parental filtering and blocked services. Clients marks those. The overview’s Safe Browsing and parental switches change the settings everyone else uses.

How often do the pages update?

Every minute. The rewrites and upstream settings on Local DNS every 15 minutes, since they rarely change. A press of a button fetches again at once, so the card shows the new state.

Where is the password kept?

In your Mac’s Keychain, or in 1Password if you link it from there. Legato sends it only to AdGuard Home’s address, and the page files hold just the name adguard-home, so they’re safe to share.

Checked against AdGuard Home v0.107.80 on November 6, 2026, on a test instance with made-up devices: the five pages sign in and fill every card, Pause and Resume were sent there, and the Safe Browsing and parental requests were tried there by hand. Illustrations use made-up readings. AdGuard is a trademark of AdGuard Software Ltd. Legato isn’t affiliated with or endorsed by AdGuard.