Named profiles, one-click switching, a menu-bar shortcut, syntax highlighting and a real CLI. Cast a spell on your hosts file — on macOS and Windows.
Everything GasMask did, then a lot more — polished, cross-platform, and actually maintained.
Save as many host configs as you want, group them into named folders, switch with one click.
Change environment from the menu bar or a global shortcut — it shows the active profile so you never forget.
IP addresses in colour, invalid lines flagged in red, find & replace built in.
Dark, light or system — or “dark magic / white magic” when you flip on the playful wording.
English and Italian out of the box, more coming — plus an Elvish easter egg. 🧝
Automatic backups with one-click restore, and a GasMask importer to bring your old files over.
Others tell developers to leave the terminal. We bring you in. The CLI shares the same profiles as the app — switch, script, automate.
Free for everyone. If it saves you time, leave what you feel it's worth.
Hostwitcher is a free hosts file editor that lets you manage /etc/hosts without the terminal. Instead of typing sudo nano /etc/hosts, you create named profiles, edit them in a highlighted editor, and switch between them with one click or a keyboard shortcut.
It's built for developers who juggle local, staging and production environments: point a domain to a different IP, activate the profile, and Hostwitcher writes the hosts file and flushes the DNS cache for you. You can also use it to block websites, ads and trackers by routing domains to 0.0.0.0.
If you used GasMask and miss it, or find SwitchHosts too bare, Hostwitcher is the modern, maintained alternative — cross-platform (macOS and Windows), with a built-in GasMask importer, automatic backups, a menu-bar shortcut and a command-line tool that shares the same profiles as the app.
Install Hostwitcher, create a profile, edit your entries and click Activate. It writes /etc/hosts for you and flushes the DNS cache — no sudo nano required.
Yes — free and pay-what-you-want, with no ads and no tracking.
Yes. It covers what they do — multiple hosts profiles, quick switching, remote lists — in a polished, maintained, cross-platform app, and it can import your old GasMask files.
Yes. Point unwanted domains to 0.0.0.0 in a profile and activate it to block them system-wide.
macOS today, Windows coming soon — from a single codebase, plus a cross-platform CLI.
Because Hostwitcher is distributed independently (no paid Apple account), your system asks for one confirmation the first time.