Find What's Slowing Your Wi-Fi with Claude Code
The prompts that get Claude Code to test your connection, list the devices on your network and find a clearer channel, with tools already on your Mac.
Back to all free guidesSo in the reel I showed Claude Code working out why the Wi-Fi crawls every evening. Here are the prompts and the steps. It checks your Mac first, then the devices on your network, then the routers next door, and every check uses a tool that's already built into macOS. Claude Code is the only thing you install.
What it does
- Runs Apple's own speed test. It's called networkQuality, and Apple calls it the Apple Network Responsiveness test. It's on every Mac running macOS Monterey or later.
- Shows which apps are using the connection. nettop gives a per-app summary of what's on the network right now, so you can see if one app is eating it.
- Lists the devices on your network. arp shows the other devices on your local network. Claude names each one it can match and asks you about the rest.
- Checks the channels next door. macOS keeps its own Wi-Fi report, with the channel your network is on and the channels of the networks around you. Apple's router guide says Wi-Fi interference can include "interference from other routers and devices that are using the same channel".
- Tells you what to change. Claude tells you where to click in your router's settings, and you make the change.
Before you start
- A Mac on macOS Monterey or later. That's what Apple's speed test needs.
- Claude Code installed and signed in.
- Your router's settings page or app. Apple says to change router settings in the web page or app from your router's maker. You only need it for steps 3 and 4.
Open Claude Code on your Mac
Open Terminal and paste this in. It makes a fresh folder for the checks and starts Claude Code inside it.
mkdir wifi-check
cd wifi-check
claudeStep 1: test your Mac's connection
Run this one in the evening, when the Wi-Fi actually feels slow.
Run Apple's network test on this Mac with networkQuality and explain the results in plain English. Then use nettop to show me which apps are using the network right now, busiest first, and tell me if any of them look like they're hogging it. Just look, don't change any settings.The responsiveness figure is in RPM. Apple describes it as the number of round trips your network can do in one minute under normal working conditions, so higher is better.
Step 2: list the devices on your network
Fill in what you own on the last line, like two phones, a laptop, a TV and a smart speaker, so Claude can tick them off.
List every device on my Wi-Fi network with arp -a. Name each one you can match from its name or maker, and flag the ones you can't so I can check them. Don't change anything on the network.
My devices:Step 3: block a device that isn't yours
If a neighbour's been on your Wi-Fi, fill in your router and the device Claude flagged.
That device isn't mine. Walk me through blocking it in my router's settings, step by step. Then show me how to change my Wi-Fi password and set the security to WPA3 Personal. Tell me where to click, and don't log in to the router yourself.
Router make and model:
Device:Blocking it stops it today. Apple's router guide says not to rely on MAC address filtering to keep people off, because a MAC address can easily be copied, so the new password with WPA3 Personal is what keeps them off. If an older device of yours won't join on WPA3, Apple's pick is WPA2/WPA3 Transitional. Then rejoin your own devices with the new password.
Step 4: find the clearest channel
Use system_profiler SPAirPortDataType to find which channel my Wi-Fi is on and which channels the networks around me are using. Count how many networks share each channel on each band, and tell me the clearest channel to switch to.Where the channel setting is
- In your router maker's settings page or app. It's the same place Apple points you to for every router setting, and the maker's manual has the details for your model.
- One channel per band. Apple says each band of your router is divided into its own channels, like lanes in a street, so 2.4 GHz and 5 GHz (and 6 GHz, if your router has it) each get their own setting.
- Auto, if your router offers it. That's Apple's recommended setting, and the router picks the channel for you. Without Auto, Apple says to "choose whichever channel performs best in your network environment", which is what Claude's count points you to.
- Back up first. Apple suggests saving your router's current settings before you change anything, so you can put them back.
Then let Claude find the exact menu for your router:
Walk me through changing the Wi-Fi channel on my router, step by step, for the band you checked. Tell me where to click, and don't log in to the router yourself.
Router make and model:
Channel:Once it's changed, run step 1 again the next evening and compare the two results.