SwitchHosts
oldj / SwitchHosts contributors · Manage and switch local, remote and grouped hosts-file configurations with syntax highlighting, scheduled refresh, import/export and a system tray interface.
brew install --cask switchhosts- 30-day installs
- 296
- #595 in App
- 1-year installs
- 3.8K
- Last 365 days
- Latest version
- 5.0.3
- Download size
- 4.7MB
- dmg
- Release cadence
- Irregular
- 0 releases in 30 days
About
SwitchHosts is a free, open-source hosts-file manager maintained in oldj/SwitchHosts. The official project uses Tauri, React, Jotai and Mantine and is distributed under the Apache license. It helps maintain separate hostname mappings instead of repeatedly editing the system hosts file by hand.
Manage and apply configurations
Organize system, local, remote, group and folder entries. Switch configurations from the main window or system tray, edit with syntax highlighting, and find or replace text across entries. Remote hosts can refresh manually, on a schedule or at startup. Import and export hosts data, including backups from a URL, and use the trashcan to restore or permanently delete removed entries.
Preferences and backups
Preferences cover write mode, proxy settings, update checks, launch at login, post-apply commands and the local HTTP API. The v5 layout stores the hosts tree, entry content, trashcan, configuration and history separately under ~/.SwitchHosts. Copy that whole directory for a complete manual backup; the in-app JSON export includes hosts data but not preferences or history.
macOS installation and version scope
Homebrew installs SwitchHosts.app from the official 5.0.3 Apple-silicon DMG, with separate Intel artifacts. Version 5.0 migrated the backend from Electron to Tauri; 5.0.1 added a macOS privileged Helper to reduce repeated administrator prompts for /etc/hosts writes. The latest three recorded versions are 5.0.3, 5.0.2 and 5.0.1.
Sources
- https://github.com/oldj/SwitchHosts
- https://raw.githubusercontent.com/oldj/SwitchHosts/master/README.md
- https://github.com/oldj/SwitchHosts/releases/tag/v5.0.2
- https://github.com/oldj/SwitchHosts/releases/tag/v5.0.1
- https://github.com/oldj/SwitchHosts/releases/tag/v5.0.0
- https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/s/switchhosts.rb
At a glance
- Price
- Free
- Chip
- Apple silicon · Intel
- Auto-updates
- No
- Repository
- Open source · Apache-2.0 · Updated 11 days ago★27.5K
- Developer
- oldj / SwitchHosts contributors
- Homebrew
- Available; updated by Homebrew
- Also known as
- switchhosts
- Homepage
- switchhosts.vercel.app
- Token
- switchhosts
Checked
What’s new in 5.0.3
New OpenNavo editorial
Adds batch DoH resolution, import previews and history controls, with macOS tray and hosts-switching fixes.
How to install SwitchHosts on Mac
Homebrew installs the app in your Applications folder.
Install without Homebrew
Download the file Homebrew uses for your chip: Install Details
Uninstall SwitchHosts and optional data cleanup
brew uninstall --cask switchhostsA regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask switchhosts--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about SwitchHosts
Is SwitchHosts safe?
SwitchHosts is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 296 times through Homebrew in the last 30 days.
Is SwitchHosts free?
Yes, SwitchHosts is free to use. Source: raw.githubusercontent.com/oldj/SwitchHosts/master/README.md, checked Oct 21, 2026.
Is SwitchHosts open source?
SwitchHosts’s source code is public on GitHub (oldj/SwitchHosts) under the Apache-2.0 license.
How do I completely uninstall SwitchHosts on a Mac?
Run brew uninstall --cask switchhosts. To delete its settings and caches as well, run brew uninstall --zap --cask switchhosts. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 7 files and folders, including ~/.
Does SwitchHosts run on Apple silicon (M1 and later) Macs?
Yes. Homebrew downloads separate builds for Apple silicon and Intel Macs.
Where does SwitchHosts store its settings and data?
Its settings are in ~/. Its data is in ~/ and ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of SwitchHosts?
The latest version is 5.0.3, added to Homebrew on Oct 20, 2026. Run brew upgrade --cask switchhosts to update it.
Similar Apps
- Royal TSXA Mac connection manager organizing remote desktops, terminals, file transfers and credentials in reusable documents.
- WindscribeA VPN client with multiple connection protocols, firewall leak protection, split tunneling, custom configurations, DNS filtering and command-line controls.
- Jump Desktop ConnectThe host component that makes a Mac available for authenticated remote viewing and control through Jump Desktop.
- Remote Desktop ManagerCentralizes remote connections, credentials and administrative tools in one workspace, with RDP, SSH, VNC, shared vaults and access controls.