SwitchHosts lets you maintain several hosts file setups and activate one or more at a time. It runs on macOS, Windows, and Linux.
Overview
SwitchHosts is a desktop program for editing the system hosts file and jumping between saved configurations. You can keep separate schemes for local work, staging, or other environments and enable them from the main window or the system tray.
Schemes can combine local entries with lists fetched from URLs, and remote content can refresh on a schedule. The editor highlights IPs, domains, and comments, supports find and replace, and lets you comment lines quickly from the keyboard.
Folders and groups organize many profiles when projects multiply. Export and import make it easy to back up setups or move them to another machine. On macOS, an Alfred workflow can trigger switches without opening the app.
The interface offers light and dark themes, including following the system appearance. Installers are published for the three desktop platforms, with optional package-manager installs on Windows.
Key features
- Group local and remote host entries
- Switch profiles from window or tray
- Syntax-highlighted hosts editor
- Scheduled refresh for remote lists
- Import and export scheme backups
- Combine multiple active schemes
- Alfred workflow on macOS
- Light, dark, or system theme
Use cases
- Swap hosts setups between dev environments
- Merge several host schemes for testing
- Sync team hosts files via export
- Pull shared host lists from a URL
- Toggle entries without manual file edits