A free Mac app for cafe Wi-Fi

Free refills for cafe Wi-Fi.

The cafe's Wi-Fi logs you out every hour, and nothing loads until you find its login page and press the button again. Wi-Fi Refill presses it for you.

Free and open source. macOS 14 or later, Apple silicon and Intel.

A Mac at a cafe with a document open. The Wi-Fi Refill menu hangs below the cup in the menu bar and says VLAN233: logged in, above Check Now, Networks, Pause, Open at Login, Check for Updates, About and Quit.

The hourly routine, gone

Without it

  1. A page stops loading halfway through a sentence.
  2. You open neverssl.com so the login page shows up.
  3. You press the button, find your tab, and wait for the next hour.

With Wi-Fi Refill

  1. It learns how long a session lasts, from the login page or from the network's own logouts, checks when it is due to end, and every five minutes in case the router ends it early.
  2. It presses the login button, the same one you would press.
  3. You keep working. The cup in your menu bar is all you see.

Watch it work

The session ends, the login page appears, and Wi-Fi Refill logs you back in. 15 seconds, no sound.

Quiet, and only where it's needed

  • Your KeychainIt only types what you taught it, when you ticked Remember what I type, keeps that in your Keychain on this Mac, and never asks for an account.
  • Asks firstThe first time a known login page appears on a network, it reads the page, then asks before logging in. Teaching it a page allows that network. Turn any network off from the menu.
  • Quiet elsewhereOn a network without a login page it looks every five minutes for three hours, then stops until your Mac joins another one.
  • No analyticsIt talks to Apple's check page, the login page, the cafe's router and its update feed, and to GitHub only if you send a report. When the internet stops, it also asks your router and name server which step broke. A page you taught runs in a private web view that keeps nothing.

Every request it makes, in one table

Which login pages work

Wi-Fi Refill knows Ruijie Cloud login pages with a One-click Login button (portal-…ruijienetworks.com) Awing Free Wi-Fi pages (v1.awingconnect.vn), as at Highlands Coffee, MikroTik HotSpot pages with a free trial, served by the router itself, and UniFi guest portals that need no password or voucher.

For any other page that only needs button presses, choose Teach Wi-Fi Refill This Login Page… in the menu and log in once in its window. It remembers the buttons you pressed and presses them each time the network logs you out, waiting for adverts and countdowns the way you did. Share This Login Page… sends what it learned, never anything you typed, so the next version knows the page for everyone.

Page asks you to type a phone number, a room number or a voucher? Tick Remember what I type on this page while you teach it. Wi-Fi Refill types it again for you each time, and keeps it in your Keychain, never in a shared page.

Login pages that show a CAPTCHA or send a code by text message are not supported.

Get started

Three steps

  1. Download Wi-Fi Refill, open the disk image and drag the app to Applications.
  2. Open it. Look for the cup at the top right of your screen.
  3. At the cafe, choose Log In Automatically when it asks, and Allow when macOS asks about your local network. That's the last time you press anything.

Questions

Why does cafe Wi-Fi log me out?

The cafe's router gives each login a fixed time, often an hour. When it runs out, the router sends every web request to the login page again, while your Mac still shows a working Wi-Fi connection.

How quickly does it log me back in?

It checks when the session is due to end, then every two seconds until the router ends it, and logs in right away. If the router ends a session early, the next check comes within five minutes, or sooner if macOS notices the change.

What if the internet stops on another network?

The menu says which step broke: the Wi-Fi, the router, a login page, the network's name server, the router's internet, or your VPN. Wi-Fi Refill looks at all of them at once, over the Wi-Fi itself, within a few seconds, and says Offline when what it sees doesn't settle it. Show the Way to the Internet… draws the stops with coffee beans carrying the traffic and the broken one marked. Recent Problems in the menu lists the last ten, with how long each lasted, and on an iPhone's hotspot the menu shows how much data your Mac has used. When the Wi-Fi's internet is gone, Use the Hotspot on … turns your iPhone's Personal Hotspot on over Bluetooth and joins it in a few seconds, or let Wi-Fi Refill switch by itself after 20 seconds.

What does the steam on the cup mean?

Your Wi-Fi: one to three waves for the signal, rising faster while the network is busy. The cup fills while you are logged in at a cafe, drips while Wi-Fi Refill logs you back in, and shows an exclamation mark when something is broken. It reads your Mac's own Wi-Fi and sends nothing. Animate the Cup in the menu turns it off, and Cup on the Desktop puts a bigger one on your desktop, which a little kettle refills when Wi-Fi Refill logs you back in.

Can it help me find a better seat?

Yes. Find a Better Seat… shows the signal live while you carry your Mac around, with the best spot so far and how many networks share your channel, and ticks faster where it is stronger. Test Speed runs macOS's own speed test over the Wi-Fi and says whether the line is good for video calls.

Why does it need local network access?

The last step of the login is a request to the cafe's Wi-Fi router or controller, which sits on the local network, and telling which step broke means asking your router. macOS asks you once.

Does it work with a VPN?

Yes, including one that carries all traffic, such as Tailscale with an exit node. While the login page holds the network, a VPN can't reach anything, so Wi-Fi Refill reaches the login page over the Wi-Fi itself, the way macOS does.

Can I turn it off for one network?

Yes. Open Networks in the menu and turn off Log In Automatically, or choose Pause to stop everywhere.

Can I install it with Homebrew?

Yes: brew tap hweihwang/wifi-refill, then brew trust --tap hweihwang/wifi-refill, then brew install --cask wifi-refill. Homebrew asks you to trust taps outside its own repositories.

Does it update itself?

Yes. It looks for updates once a day and installs them when you agree. Updates are signed, so nobody else can ship one.