Set up Kilobat in T3 Code
T3 Code runs Claude Code and Codex on your Mac with the setup you already have. Add Kilobat to those agents once, and every T3 Code thread can check the network, find why a request hangs and keep the Mac awake.
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/kilobatCheck 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.
T3 Code has no MCP settings of its own; its agents read their own config. Add Kilobat to Claude Code:
claude mcp add --scope user kilobat -- kilobat mcpAnd to Codex, if you use it in T3 Code too:
codex mcp add kilobat -- kilobat mcpStart a new thread in T3 Code. The agent loads its MCP servers when the thread starts.
The same servers work in the terminal and in T3 Code, because both run the same Claude Code and Codex. See the Claude Code and Codex CLI pages for project-only setups.
Add the skills
Nine Agent Skills teach the agent to read Kilobat's measurements and to ask before changing settings. Install them for all your projects with skills.sh:
npx skills add seifip/kilobat-skills -g -a claude-code codex
This puts them in ~/.claude/skills/ for Claude Code and ~/.agents/skills/ for Codex, where T3 Code’s threads find them. Leave out -g to install them for the current project only, or leave out both flags to pick agents from a list.
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.
| Ask | MCP tools |
|---|---|
| npm install hangs on registry.npmjs.org. Find the layer that fails. | diagnose_connection |
| The internet feels slow. Find out why and tell me what to fix first. | diagnose_network, get_status |
| I'm about to pull a 6 GB Docker image. Is now a good time, or am I on a metered network? | get_conditions |
| Keep the Mac awake for the next two hours while you run the full test suite, then release it. | keep_awake, release_awake |
| Did my agent runs today finish, or did one stall or lose the network? | list_sessions |
| Something is uploading a lot. Which app is it, and how much has it sent in the last hour? | get_status, get_app_bandwidth |
What T3 Code 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_pathwithpublic_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_awakewithlid_closed). A plainkeep_awakechanges no settings and ends when it expires.
Can't do
- Let a waiting app connect on its own:
decide_approvalcan block at once, but allowing opens Kilobat's approval window for you to confirm. - Change AirDrop visibility:
set_airdrop_visibilityopens 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.
Claude Code and Codex keep their own approval rules inside T3 Code. Keep their prompts on for Kilobat’s change tools, and allow only read tools by name if you want fewer prompts.
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 the agents T3 Code starts, so their traffic and CPU count as Claude Code’s or Codex’s. It also names the host, such as “Claude in T3 Code”. To report working, waiting and done exactly, add the hooks from the Claude Code and Codex pages to those agents’ settings; T3 Code runs them with your settings.
Sources
- T3 Code
- T3 Code on GitHub
- Claude Code docs: Connect Claude Code to tools via MCP
- OpenAI Codex docs: Model Context Protocol
- skills.sh: supported agents and their skill folders
Checked on 21 November 2026.