Set up Kilobat in Aider

Aider has no MCP client, but it can run the Kilobat CLI and read the output. Load the kilobat skill as a conventions file and it knows which commands to run freely and which to ask about.

Free CLI and MCP servermacOS 14 or laterChecked: 21 November 2026

Install the CLI

The Kilobat CLI is free and open source, and it includes the MCP server. Install it with Homebrew:

brew install seifip/kilobat/kilobat

Check it with kilobat --version. kilobat doctor says whether the Kilobat app is running, its network filter is on and Pro is active; the tools work without the app, which adds Wi-Fi names, history and rule enforcement. The CLI needs macOS 14 or later.

Connect the MCP server

Run the agent backend and Kilobat on the Mac you want to check. A cloud runner, Linux server or container cannot use this local command to inspect your Mac.

  1. Aider doesn’t connect to MCP servers. Run the Kilobat CLI from the chat with /run and add the output, such as a health check of each layer.

    /run kilobat diagnose --json
  2. Download the kilobat skill’s SKILL.md and load it as a read-only file, so Aider knows the commands and when to ask.

    aider --read SKILL.md

To load it every time, add read: SKILL.md, with the file’s path, to your .aider.conf.yml. Every MCP tool below has a CLI command with --json; the skill lists them.

Add the skills

Aider doesn’t read skill folders, so the conventions file above is how it learns Kilobat’s rules. The other skills, such as mac-network-troubleshooting, load the same way from github.com/seifip/kilobat-skills.

The kilobat skill is the entry point: it holds the setup and safety rules and sends the agent to the skill that fits, such as mac-network-troubleshooting or mac-agent-runs. See all nine skills.

Try these prompts

Ask in plain words. The agent picks the tools; these are the ones each request usually needs.

AskMCP tools
The internet feels slow. Find out why and tell me what to fix first.diagnose_network, get_status
npm install hangs on registry.npmjs.org. Find the layer that fails.diagnose_connection
I'm about to pull a 6 GB Docker image. Is now a good time, or am I on a metered network?get_conditions
Something is uploading a lot. Which app is it, and how much has it sent in the last hour?get_status, get_app_bandwidth
Pages are slow to start loading. Compare DNS resolvers and tell me if switching would help. Don't change anything yet.benchmark_dns, diagnose_network

What Aider can and can't change

Kilobat's MCP server marks every tool as read-only or as a change, and each change tool's description tells the agent to get your confirmation first. The kilobat skill holds the same rule: read freely, ask before changing.

Read-only measurements

  • Measure Wi-Fi, router, internet and DNS latency, and per-app traffic: diagnose_network, get_status, get_wifi, scan_wifi.
  • Find the layer that stops one host, see what else is in the network path, trace a route and compare resolvers: diagnose_connection, get_network_path, trace_route, benchmark_dns.
  • Read history, sessions, rules and approvals: get_usage_report, list_sessions, list_rules, list_approvals.
  • Check every host it and the commands it ran contacted, with bytes and flags: agent_network_log.
  • Ping for latency spikes with run_stutter_test, which sends pings only.

Asks you first

  • A speed test, which uses up to 80 MB (run_speedtest; on a metered network, 10 MB or less), and a five-second LAN test (run_lan_test).
  • Looking up your public IP with Cloudflare (get_exit_path with public_ip).
  • Profiles, app rules, blocked hosts, the new-app mode, budgets, app limits, a network's data cost and pausing updaters (set_profile, set_app_rule, block_destination, set_new_app_mode, set_budget, set_app_quota, set_network_cost, set_updater_pause).
  • Holding another app's upload, such as Dropbox, until a better network (hold_upload).
  • DNS, which macOS also guards with an administrator password prompt (set_dns).
  • Keeping the Mac running with the lid closed, every time (keep_awake with lid_closed). A plain keep_awake changes no settings and ends when it expires.

Can't do

  • Let a waiting app connect on its own: decide_approval can block at once, but allowing opens Kilobat's approval window for you to confirm.
  • Change AirDrop visibility: set_airdrop_visibility opens System Settings for you.
  • Change sleep settings, another app's settings, or anything outside Kilobat. It never reads prompts or replies.
  • Enforce rules without the Kilobat app and its network filter (Pro). Without them, rules are saved, not applied, and the agent should say so.

Aider asks before it runs a shell command it suggests. Say no to a Kilobat command that changes settings unless you meant it.

If the agent can also run shell commands, the kilobat CLI can do what the MCP tools do. The skills tell it which commands to run freely and which to ask about.

Track agent runs

Kilobat recognizes Aider’s process, including python3 -m aider, for traffic and CPU-based activity. A quiet process may be waiting or done. There is no ready-made Aider hook adapter in Kilobat; custom integrations can use kilobat agent-event. See Connect agents.

Sources

Checked on 21 November 2026.

Other agents

Claude Code Give Claude Code your Mac's network as tools: per-app traffic, Wi-Fi, DNS, why a host fails and keep-awake. Set up Claude Code → Codex CLI Codex can check the network before a big download, find why its own request hangs and keep the Mac awake for a long task. Set up Codex CLI → Codex app The Codex app can check the network before a big download, find why a request hangs and keep the Mac awake while its tasks run. Set up Codex app → T3 Code T3 Code runs Claude Code and Codex on your Mac with the setup you already have. Set up T3 Code → Conductor Conductor runs Claude Code and Codex side by side in their own worktrees. Set up Conductor → Cursor Let Cursor's agent see why a package download hangs, which app is using the connection and whether the network is metered before a big pull. Set up Cursor → Gemini CLI Gemini CLI can diagnose the Mac's network, scan Wi-Fi and keep the Mac awake while it works. Set up Gemini CLI → Claude Ask Claude why the Wi-Fi is slow, what used your hotspot data or whether your VPN carries everything, and it reads the answer from your Mac. Set up Claude → Windsurf Cascade can find why a dependency won't download, check DNS and trace a route from your Mac, with Kilobat's MCP server. Set up Windsurf → Cline Cline can check the Mac's network and keep it awake while it works. Set up Cline → Zed Zed's agent can measure the Mac's network, trace a route and compare DNS resolvers through Kilobat's MCP server. Set up Zed → Hermes Agent Give Hermes Agent your Mac’s network measurements, connection diagnosis and keep-awake tools through a local MCP server. Set up Hermes Agent → OpenClaw Let OpenClaw check your Mac’s connection and data use, with local MCP tools and Kilobat skills. Set up OpenClaw → OpenCode OpenCode can inspect your Mac’s traffic, explain failed connections and keep long tasks awake with Kilobat. Set up OpenCode → GitHub Copilot CLI Copilot CLI can check bandwidth, DNS and failed downloads on your Mac using Kilobat’s local MCP server. Set up GitHub Copilot CLI → Amp Amp can inspect your Mac’s traffic, find why a request fails and keep the Mac awake through a long run, with Kilobat as a local MCP server. Set up Amp → Goose Goose can measure your Mac’s network, explain failed connections and keep long tasks awake with Kilobat as a command-line extension. Set up Goose → Factory Droid Droid can check your Mac’s network, find the layer where a request fails and keep the Mac awake while it works, with Kilobat as a local MCP server. Set up Factory Droid → Qwen Code Qwen Code can measure your Mac’s network, explain failed connections and keep long tasks awake with Kilobat as a local MCP server. Set up Qwen Code → Crush Crush can measure your Mac’s network, find why a request hangs and keep long tasks awake with Kilobat as a local MCP server. Set up Crush → Any MCP client Kilobat's MCP server is a local stdio command, kilobat mcp. Set up Any MCP client →