Switch hosts quickly!
Homepage: https://switchhosts.vercel.app
SwitchHosts is an App for managing hosts file, it is based on Tauri, React, Jotai, Mantine, etc.
You can download the source code and build it yourself, or download the built version from following links:
You can also install the built version using the package manager Chocolatey:
choco install switchhostsSwitchHosts stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home
path on Windows). In the v5 data layout:
~/.SwitchHosts/manifest.json stores the hosts tree~/.SwitchHosts/entries/ stores local and remote hosts content~/.SwitchHosts/trashcan.json stores trashcan entries~/.SwitchHosts/internal/config.json stores preferences~/.SwitchHosts/internal/histories/ stores system hosts and command run historyFor a complete manual backup, copy the whole ~/.SwitchHosts folder. The in-app export creates a hosts data backup JSON; it does not include preferences or histories.
npm install to install dependenciesnpm run tauri:dev to start the app in development modenpm run tauri:build to create a production build./src-tauri/target/release/bundle/# development
npm run tauri:dev
# production build
npm run tauri:buildSwitchHosts is a free and open source software, it is released under the Apache License.
新图标在小图标状态下会显示格子状
MacOS 26 托盘操作 bug
MacOS 支持 Homebrew 安装
2 年以来上万个历史记录项,高大几十 MB。
为 Remote Hosts 增加忽略 TLS 证书校验的选项
新功能建议
查询功能完全是个bug
一直请求管理员密码
优化Windows下UAC的提示频率
建议导入设置成增量式导入,不要全量覆盖