百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

SwitchHosts

> 开发工具
开源

快速切换主机!

27.0K stars0 点赞3 次浏览
访问官网GitHub

工具介绍

快速切换主机!


SwitchHosts

  • Polski
  • 简体中文
  • 繁體中文

Homepage: https://switchhosts.vercel.app

SwitchHosts is an App for managing hosts file, it is based on Tauri, React, Jotai, Mantine, etc.

Screenshot

Features

  • Manage system, local, remote, group, and folder hosts entries
  • Switch hosts quickly from the main window or system tray
  • Syntax highlighting for hosts files
  • Find and replace across hosts entries
  • Refresh remote hosts manually, on a schedule, or at startup
  • Import/export hosts data, including importing backups from a URL
  • Move entries to the trashcan and restore or delete them later
  • Preferences for write mode, proxy, update checks, launch at login, post-apply commands, and the local HTTP API

Install

Download

You can download the source code and build it yourself, or download the built version from following links:

  • SwitchHosts Download Page (GitHub release)

You can also install the built version using the package manager Chocolatey:

powershell
choco install switchhosts

Backup

SwitchHosts 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 history

For 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.

Develop and build

Prerequisites

  • Node.js
  • Rust
  • Tauri system dependencies, see Tauri Prerequisites

Development

  • Run npm install to install dependencies
  • Run npm run tauri:dev to start the app in development mode

Build and package

  • Run npm run tauri:build to create a production build
  • The packaged files will be in ./src-tauri/target/release/bundle/
bash
# development
npm run tauri:dev

# production build
npm run tauri:build

Copyright

SwitchHosts is a free and open source software, it is released under the Apache License.

Issues· 431 开放

查看全部 Issues在 GitHub 打开
  • #1054

    新图标在小图标状态下会显示格子状

    更新于 2026年9月20日
  • #1048

    MacOS 26 托盘操作 bug

    更新于 2026年9月17日
  • #1049

    MacOS 支持 Homebrew 安装

    更新于 2026年9月16日
  • #1050

    2 年以来的上万个历史记录项,大小达几十 MB。

    更新于 2026年9月16日
  • #1046

    为远程主机添加忽略 TLS 证书校验的选项

    更新于 2026年9月8日
  • #1044

    新功能建议

    更新于 2026年9月5日
  • #1043

    查询功能完全是个 bug

    更新于 2026年9月4日
  • #759

    一直请求管理员密码

    更新于 2026年9月4日
  • #1041

    视窗

    更新于 2026年9月2日
  • #295

    建议将导入设置为增量导入,不要全量覆盖。

    Feature RequestTodo更新于 2026年9月1日

> 标签

Rustelectronhostshostseditorhostsfile

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月30日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具