The project's README from github.com/darrylmorley/whatcable. As one markdown file: README.md.
What can this USB-C cable actually do?
Website: whatcable.uk (overview, screenshots, and CLI docs)
A small macOS menu bar app that tells you, in plain English, what each USB-C cable plugged into your Mac can actually do, and why your Mac might be charging slowly.
USB-C hides a lot under one connector. Anything from a USB 2.0 charge-only cable to a 240W / 40 Gbps Thunderbolt 4 cable, all looking identical in your drawer. macOS already exposes the relevant info via IOKit; WhatCable surfaces it as a friendly menu bar popover.
Part of a family: WhatBattery for battery health and charging, WhatPort for every port at once.

Per port, in plain English:
Click the gear icon in the popover header to open Settings, where you can:
Right-click the menu bar icon for Refresh, a Keep window open toggle (handy for screenshots and demos), and Settings…. The Pro screens (Power Monitor, Negotiation Diagnostics, Display Diagnostics, Saved Cables) and Licence… live here too. Below those: Check for Updates…, Contribute Diagnostic Data…, About, WhatCable on GitHub, and Quit.
WhatCable is free and open source. If you find it useful, you can support the project by picking up WhatCable Pro. Pro is for finding the weak link in a connection and keeping the evidence: live measurements, per-connection diagnostics, and a history of how each cable performs. It unlocks:
whatcable --dashboardOne-time purchase, works on up to 2 Macs. See whatcable.uk/pro for details.
Visit whatcable.uk for an overview and screenshots, or install directly below.
Download the latest WhatCable.zip from the Releases page, unzip, and drag WhatCable.app to /Applications.
The app is signed with a Developer ID and notarised by Apple, so there are no Gatekeeper warnings.
It's not on the Mac App Store on purpose. Most of what WhatCable reads would in fact survive the App Sandbox: we tested it, and the IOKit registry reads come back identical either way. What the sandbox does block is the SMC access behind Pro's live power metering, and the bundled whatcable CLI doesn't fit the store's install model. So it ships signed and notarised outside the store instead.
Requires macOS 14 (Sonoma) or later, Apple Silicon only. This is measured, not assumed: every Intel Mac in the community diagnostic corpus reports its USB-C port-controller services as empty, so the USB-PD state and cable e-marker data WhatCable depends on are not published on those machines through any public IOKit accessor. Thunderbolt fabric data is still present on Intel; it is the port-controller layer that is missing.
Note: The manual install gives you the menu bar app only. The
whatcableCLI is bundled inside the.appand is not on your PATH by default. If you want to use it from the shell, see the Command-line interface section below for the one-line symlink. Or install via Homebrew, which sets up the CLI automatically.
brew install --cask darrylmorley/whatcable/whatcable
This installs the menu bar app and symlinks the whatcable CLI into your PATH.
If you don't want the menu bar app, install just the command-line tool:
brew install darrylmorley/whatcable/whatcable-cli
Same signed and notarised binary, packaged on its own. Useful in terminal-only or scripting environments. Pick one of the two Homebrew installs (both ship the same whatcable binary).
Homebrew 6 may warn about untrusted third-party taps on first install. If an existing install starts complaining about an untrusted tap, run brew trust darrylmorley/whatcable or see https://docs.brew.sh/Tap-Trust for details.
A whatcable binary ships alongside the menu bar app, driven by the same diagnostic engine:
$ whatcable
USB-C Port 1
✓ Charging well at 96W
Cable: 5A, 100W, USB4 40 Gbps
Charger: 5V / 9V / 15V / 20V PDOs
USB-C Port 2
! Cable is limiting charging speed
Cable: 3A, 60W, USB 2.0
Device: External SSD, USB 10 Gbps
Flags:
whatcable # human-readable summary of every port
whatcable --json # structured JSON, pipe into jq
whatcable --watch # stream updates as cables come and go (Ctrl+C to exit)
whatcable --raw # include underlying IOKit properties
whatcable --report # open a pre-filled GitHub issue for the connected cable
whatcable --test-kit # run diagnostic probes and submit anonymised data
whatcable --no-usb-probe # skip deep USB probing (for KVM switches and hubs that misbehave)
whatcable --desktop # launch the GUI app in Dock mode
whatcable --popover # launch the GUI app in menu bar mode
whatcable --version
whatcable --help
Pro from the command line:
whatcable --monitor # Pro: live power telemetry (Ctrl+C to exit)
whatcable --monitor-json # Pro: live power telemetry as newline-delimited JSON
whatcable --dashboard # Pro: full-screen TUI dashboard (Tab cycles screens, q quits)
whatcable --activate XXXX-XXXX-XXXX-XXXX # validate and store a Pro licence
whatcable --licence # show current licence status
whatcable --deactivate # remove the stored licence
whatcable --pro # show Pro features, open purchase page
The CLI prints a one-line Pro hint at the end of plain text output for unlicensed users. Run whatcable --silence-pro-hints to hide it (or --show-pro-hints to bring it back). Suppressed automatically when output is piped, redirected, or used with --json.
If you installed the .app manually rather than via Homebrew, the CLI lives at WhatCable.app/Contents/Helpers/whatcable. Symlink it into your PATH if you want it on the shell:
ln -s /Applications/WhatCable.app/Contents/Helpers/whatcable /usr/local/bin/whatcable
The Homebrew install does this for you automatically.
WhatCable reads four families of IOKit services. No entitlements, no private APIs, no helper daemons:
| Service | What it gives us |
|---|---|
AppleHPMInterfaceType10/11/12 (M3-era), AppleHPMInterfaceType18 (MacBook Neo A-series), AppleTCControllerType10/11 (M1 / M2) |
Per-port state: connection, transports, plug orientation, e-marker presence. Type11 is what M2 MacBook Air uses for its MagSafe 3 port. |
IOPortFeaturePowerSource |
Full PDO list from the connected source, with the live "winning" PDO |
IOPortTransportComponentCCUSBPDSOP, ...SOPp, ...SOPpp |
PD Discover Identity VDOs from the port partner (SOP), the cable's near-end e-marker (SOP'), and the far-end e-marker (SOP'') if present |
| XHCI controller subtree | Each connected USB device is paired to its physical port via the XHCI port node's UsbIOPort registry path, falling back to a bus-index derived from the controller's locationID upper byte and the port's hpm SPMI ancestor on machines that don't expose UsbIOPort. |
Cable speed and power decoding follow the USB Power Delivery spec (aligned to USB-PD R3.2 V1.2, March 2026). Vendor names come from a bundled SQLite database (whatcable.db) that merges USB-IF's published vendor list, the community usb.ids list, and a curated set of cable fingerprints reported by users.
swift build # compile everything
swift run WhatCable # run the menu bar app (dev mode, no widget or bundle structure)
swift run whatcable-cli # run the CLI
swift test # run the test suite
Requires Swift 5.9+ (Xcode 15+). Note: swift run WhatCable launches a working dev build but without the widget extension or proper .app bundle. For a distributable build, use the build scripts below.
./scripts/smoke-test.sh
Builds, signs, notarises (if configured), and smoke-tests the app. Produces dist/WhatCable.app and dist/WhatCable.zip. Safe to run on any branch, any time. Does not touch the Homebrew tap.
Modes:
| Configuration | Result |
|---|---|
No .env |
Ad-hoc signed. Works locally; Gatekeeper warns on other Macs. |
.env with DEVELOPER_ID |
Developer ID signed + hardened runtime. |
.env with DEVELOPER_ID + NOTARY_PROFILE |
Full notarisation + stapled ticket. Gatekeeper-clean for everyone. |
Cutting a release:
# write release-notes/v<version>.md first, then:
./scripts/release.sh <version>
The wrapper does the whole pipeline: bumps the version, runs build-app.sh
(which builds, signs, notarises, smoke-tests, and bumps the local cask),
tags and pushes the commit, creates the GitHub release with the notes
file, verifies the uploaded asset's sha matches the local zip, copies the
notes into the tap, and pushes the tap. Use --dry-run first to validate
state. Requires gh (auth'd) and the env vars from .env.example.
One-time setup for full notarisation:
# 1. Find your signing identity
security find-identity -v -p codesigning
# 2. Store notarytool credentials in the keychain
xcrun notarytool store-credentials "WhatCable-notary" \
--apple-id "[email protected]" \
--team-id "ABCDE12345" \
--password "<app-specific-password>" # generate at appleid.apple.com
# 3. Create your .env from the template
cp .env.example .env
# ...and fill in DEVELOPER_ID
@abrauchli built a Rust port for Linux called usbeehive. Install it with cargo install usbeehive. It reads from the kernel's typec sysfs interface rather than IOKit, so it's an independent implementation rather than a fork. It started life as a whatcable crate on crates.io before being renamed to avoid confusion with this repo. He's also working on [usbee](http