[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110111":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},110111,"tailsplit","idy\u002Ftailsplit","idy","A routing client based on sing-box rule lists. Switch between multiple Tailscale networks and access the internet through your chosen Tailscale exit node.","http:\u002F\u002Ftailsplit.idy.dev\u002F",null,"Go",153,10,65,1,0,7,45,6,53.12,"GNU General Public License v3.0",false,"main",true,[],"2026-11-19 18:11:42","2026-11-23 10:49:37","# TailSplit\n\nChoose which traffic goes through your Tailscale exit node and which stays direct.\nTailSplit uses sing-box routing rules, can use exits in several Tailscale networks\nat once, and lets you configure routing by domain and IP.\n\n[Website](https:\u002F\u002Ftailsplit.idy.dev\u002F) · [Download](https:\u002F\u002Fgithub.com\u002Fidy\u002Ftailsplit\u002Freleases\u002Flatest) · [Guide](docs\u002Fguide.md) · [Discord](https:\u002F\u002Fdiscord.gg\u002FRY7ktfh8Pr)\n\n## Install\n\n| Platform | Available packages |\n| --- | --- |\n| macOS 14+, Apple Silicon or Intel | Desktop app (`.dmg` \u002F `.zip`) and CLI |\n| Windows 10+ x64 or Windows 11 ARM64 | Desktop Setup EXE and CLI ZIP |\n| Linux amd64 or arm64 | CLI archive and `.deb` |\n\nGet desktop installers from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fidy\u002Ftailsplit\u002Freleases\u002Flatest).\nmacOS and Linux also support the installer below, which selects your platform\nand verifies the release's SHA-256 checksums:\n\n```sh\ncurl -fsSL https:\u002F\u002Ftailsplit.idy.dev\u002Finstall.sh | sh\n```\n\nmacOS users can also use the [Homebrew tap](https:\u002F\u002Fgithub.com\u002Fidy\u002Fhomebrew#install).\nFor a user-local CLI, pass `sh -s -- --cli --no-sudo` after the pipe.\nSee [installer options](docs\u002Fguide.md#install) for other destinations and versions.\nWindows executables are unsigned; verify the release checksums before installation.\n\n## Get connected\n\n1. Open TailSplit and use **Add exit** to authorize a device in your chosen Tailnet, or sign in to an existing saved exit. Then choose its exit node.\n2. Review your routing rules in the configuration panel.\n3. Choose a default gateway and connect when ready. Signing in alone does not connect. New configurations enable automatic connection on later launches once a gateway is configured.\n\nThe **Exit Nodes** page lists your saved exits; its top-right switch starts or\nstops the connection. Above the list, **Add exit** sits on the left and the current\ndefault exit on the right; no saved-exit count is shown. Each added exit is a separate embedded device in the same or a\ndifferent Tailnet and needs its own authorization. Each device's login is saved\nlocally and reused after restarting the app. Authorizing another exit does not\nsign out existing devices. Adding an exit disconnects an active session, opens\nbrowser sign-in to choose the network, then opens the node picker, without asking\nfor a name first. In active Global mode, a confirmation explains that this stops\nKill-Switch protection and restores system networking. Cancel or Escape changes\nnothing. After confirmation the app stays disconnected, including after a save\nor login failure, until you explicitly reconnect. Add requires the desktop app;\nthe standalone configuration page cannot authorize or add devices. Confirming the first node binds\nthe exit's Tailnet guard and names it `\u003Cexit-device-name>@\u003Cnetwork name>`.\nAutomatically named profiles keep `auto_name: true`, so later node choices update\nthe label without changing the profile ID or device identity. Existing custom\nnames are retained. Open any exit to choose its node and test nodes with\nTailscale Ping individually. Node\nchanges require confirmation; saving reconnects an active session or leaves an\nidle app stopped.\n\nOn **Exit Nodes**, the current Split default proxy exit or Global exit is shown\nin a compact text dropdown at the top right of the card list, or **Not set** if\nnone is configured. Choose a gateway directly in that dropdown to save it, without\nan edit dialog. A disconnected app stays disconnected; an active Split session\nreconnects. Switching devices during active Global mode first asks for consent\nto stop protection, then disconnects and saves the selection while staying stopped\nuntil you reconnect manually. Signing in to another saved device follows the\nsame consent rule; active Global settings, node and DNS-metadata applies also\nrequire that separate disconnect. Exact no-op saves keep the current session.\nNative actions without confirmation require disconnecting first. Recovery of the\ncurrent device's pending authorization keeps its helper. Turning on without a default\nstill opens a selection dialog with no preselected option. Choose an\nexit and confirm to save it and connect; Cancel or Escape changes nothing. A\nfailed or stale save never starts traffic. Settings drafts must be resolved\nfirst. An existing offline default is retained rather than silently replaced.\n\nClick the menu-bar or tray icon for a compact popup with connection status,\na connect\u002Fdisconnect switch, and read-only routing mode and traffic exit details. Open\nTailSplit from the popup to manage exits and settings; clicking outside, pressing\nEscape or clicking the tray icon again dismisses it. Right-click the icon for a\nminimal native menu with Open, connection status, Connect\u002FDisconnect and Quit.\nThe popup follows the app's language and system appearance. It shows the actual\nrunning traffic device, including an additional exit when the primary is signed out.\nIts Connect action checks the displayed configuration revision before starting;\nconfiguration changes require a refresh. Explicit Connect keeps the same traffic\nhelper waiting through any required browser authorization and continues after\nsign-in; automatic startup never opens that browser. Valid direct-only Split\npolicies can connect without a default gateway or signing in to optional devices. On macOS, if the local panel cannot start,\nthe native menu offers **Edit Configuration**. The full window's **TailSplit**\napplication menu and native fallback menu retain **Uninstall Network Service**,\nwhich finishes connection cleanup before opening the bundled removal installer,\neven when the panel cannot open. Each connection snapshot holds an OS file lock\nfor its lifetime. On the next launch, snapshots with released locks are reclaimed\neven if an old PID has been reused; locked snapshots, unrecognized files and links\nare preserved. Snapshot creation and cleanup share a short directory lock so an\nin-progress write cannot be mistaken for an orphan.\n\nThe titlebar routing dropdown chooses **Rule-based** or **Global (Kill-Switch)**.\nIt saves immediately and reconnects active traffic. Global\u002FTUN mode blocks\ntraffic if its exit goes offline; Rule-based restores Split without deleting\nsaved rules. Manual disconnect or quitting restores system networking.\nDuring connection preflight, incomplete peer discovery is shown as checking the\nexit rather than asking for a replacement; the same connection continues once\nits selected node becomes ready. Refresh sits\nto the right of both switches. With an active session, first configure the target\nmode's gateway before switching; unsaved settings drafts block the shortcut.\n\nIn **Settings › Routing rules**, choose Split or Global and save to apply it.\nSplit's default proxy exit (`rules.default_exit`) is independent of the\nunmatched-traffic setting (`rules.final`). It carries proxy matches from the\nbuiltin or custom rule source, `proxy_domains`, `proxy_ips`, `final: proxy`, and\nbare Tailnet addresses without a more specific route. Rule groups can send\ndomains and CIDRs through other exits; unmatched traffic can go direct, use the\ndefault proxy exit, or use any configured exit, including `main`. Global runs only the device\nselected by `rules.global_exit` for all captured traffic. Split rules remain\nsaved while hidden in Global. Connection preflight checks node availability for\nthe default gateway, explicit final exit and nonempty rule groups. Other retained\nendpoints with an identity guard must authenticate to their configured Tailnet,\nbut their nodes need not be online. Signed-out optional devices with known DNS\nsuffixes are omitted from the running core, and their private names are refused\nwithout changing saved profiles or blocking the selected gateway. If an optional\ndevice has neither a saved private suffix nor authenticated live DNS metadata,\nconnection is refused: refresh or sign in to that device before retrying. Removing\nan endpoint alone cannot protect an unknown namespace. Reconnecting reevaluates\nthem. The selected traffic device keeps its interactive login session alive until sign-in\ncompletes. If another required final or rule-group exit needs login, preflight\nstops with a recoverable sign-in error: open that saved exit, sign in, then retry\nconnecting. Initial device states, including Starting, Stopped and missing status,\nhave a 45-second readiness budget. Optional devices without an identity guard\nalso get that opportunity to report their login state and private DNS suffix;\nafter the budget, unavailable optional endpoints can be isolated only when their\nprivate namespaces are known, and required gateways must still be ready.\nOnly the selected device's interactive authentication pauses the\navailability timeout; other backend transitions preserve its deadline.\n\nAn extra's `tailnet` is its login identity guard; `magic_dns_suffix` stores the\nactual DNS suffix independently of its display network name. Traffic preflight\nchecks both the network guard and saved suffix metadata. After a legitimate DNS\nsuffix change, refresh the saved device and explicitly apply its new DNS metadata\nin the picker; the node and account guard stay unchanged. DNS and traffic\nuse the same longest-suffix ownership order, with the primary winning exact\nduplicates. Exit IDs `main`, `direct`, `proxy` and Windows device basenames such\nas `con`, `nul`, `com1` and `lpt1` are reserved. Pending or missing owners of live\nprivate-name policy must be configured before connecting; their rules never\nsilently fall through to another resolver or gateway.\n\nThe legacy `tailscale` profile has logical ID `main`; it is optional and\nremovable. Additional exits keep their IDs and device state under\n`state_dir\u002Fexits\u002F\u003Cid>\u002Ftailscale`, even when `main` is removed. **Remove exit** at\nthe bottom of every picker also supports the last exit. After confirmation it\ndisconnects, signs out only that device, and revision-checks removal of the local\nprofile. Selectors that reference it become explicitly unset (`\"-\"`), so the next\nconnection asks for a new choice. Explicit `rules.final` and route-group references\nremain as dormant policy: choose replacements or explicitly edit those rules\nbefore another Split connection can start, even when the default is still ready.\nAdding a different device remains possible without deleting the retained policy.\nThe app stays stopped. The\nremote device record remains in the Tailnet admin console; TailSplit has no\nmanagement authority to delete it. There are no separate switch-network or\nsign-out controls; use Add exit to choose another network. Removing the last\nexit retains the remaining routing policy as a draft. Adding again creates a\nnew additional profile and leaves both traffic exit selections unset until confirmed.\n\n**Application proxy** lets individual applications use the local HTTP\u002FSOCKS\nlisteners. **System routing** captures system traffic when `tun.enabled` is set.\nBoth modes create a DNS TUN and require the privileged network service:\nWindows Setup installs it; macOS requests administrator approval on first connection.\n\nConfiguration and device state are retained across normal updates. The network\nservice checks import eligibility per device, reads only still-needed CLI or\nfallback copies, and holds their ordinary-user state lease through cleanup. An\nunused primary remains eligible after another device initializes the new service\ncache. Existing service-owned or logged-out devices retain authority, and legacy\ninitialization markers are interpreted conservatively. If a service channel\nfails, the helper reconnects to confirm that its registered session has finished\nbefore releasing the lease. A slow disconnect reports cleanup in progress and\nkeeps the helper alive; the desktop does not force-kill it after its stop timeout.\nOlder services without session recovery must be updated before connecting.\n\nNew desktop profiles use [config.default.yaml](config.default.yaml): direct Internet\nIPv6 off, FakeIP and system TUN on, MTU 1400, Split\u002Fbuiltin rules, unmatched traffic\ndirect, system DNS for direct traffic and `8.8.8.8` for proxy DNS. Auto-connect is\non once a gateway is configured. The template has no saved devices or account\nidentity. Existing files, including their omitted-field behavior, are preserved.\nThe CLI example uses the same portable preferences with an illustrative exit.\n\nThe local configuration page includes a [Peetty](https:\u002F\u002Fgithub.com\u002Fidy\u002Fpeetty)\nMiru companion that walks and jumps between safe page edges. Drag it to move it,\nor hover for actions. **Settings › General › Page companion** hides or restores\nit immediately; the preference is saved with the app's UI preferences and survives\nrestarts and updates. The companion runs locally with bundled assets, respects reduced motion, and\nrequires no AI connection or API key.\n\n## CLI\n\nStart from [config.example.yaml](config.example.yaml). Replace its placeholder\nexit with an approved gateway from your Tailnet before running:\n\n```sh\ntailsplit init -c config.yaml\ntailsplit check -c config.yaml\nsudo tailsplit run -c config.yaml\n```\n\nRun the Windows CLI from an Administrator terminal when connecting.\nSee [CLI configuration](docs\u002Fguide.md#cli-configuration) for DNS, rule lists,\nnetwork privileges, and configuration migration.\n\n## Rule sources\n\nChoose **Builtin rules**, a **Custom URL or file**, or **No rule list** under\n**Settings → Routing rules**. The equivalent YAML setting is:\n\n```yaml\nrules:\n  source: builtin\n```\n\nCustom sources support Base64 and plain-text domain lists, including lists\nwithout an AutoProxy header. Builtin rules download on first use and are cached\nfor offline reuse. See [rule sources](docs\u002Fguide.md#rule-sources) for URL and file\nexamples.\n\n## Community\n\nJoin the [TailSplit channel in IDY Community](https:\u002F\u002Fdiscord.gg\u002FRY7ktfh8Pr) for\nquestions, routing examples, and feature ideas. Use the **ideas** and\n**bug-reports** forums with the **TailSplit** tag to track feedback.\nFor reproducible bugs, [open a GitHub issue](https:\u002F\u002Fgithub.com\u002Fidy\u002Ftailsplit\u002Fissues)\nwith your version, platform, and reproduction steps.\n\n## Development\n\nRequires Go 1.27.3+ and Python 3.11+. From the repository root:\n\n```sh\nmake test check\npython3 -B -m unittest discover -s tests\u002Finstaller\npython3 -B -m unittest discover -s tests\u002Fpackaging\n```\n\nmacOS app builds also need Xcode Command Line Tools and Swift.\nSee the [build guide](docs\u002Fguide.md#build-and-test) for platform-specific commands.\n\nThe production macOS and Windows desktop uses MyGo v0.8.3 for its window and\ntray. Its entry point is `cmd\u002Ftailsplit-tray`, with `internal\u002Fdesktopwindow` and\n`internal\u002Fdesktoptray` hosting the existing configuration UI and controls.\nOn macOS, `make run-tray` builds the CLI helper and `bin\u002Ftailsplit-tray`, then\nopens the configuration window with automatic connection disabled for that launch.\n`make test` checks the desktop packages in the root module. See the\n[build guide](docs\u002Fguide.md#build-and-test) for launch options and Windows packaging.\n\n| Path | Contents |\n| --- | --- |\n| `cmd\u002F`, `internal\u002F` | CLI, desktop controls, network service, and configuration UI |\n| `config.default.yaml` | Shared new-desktop defaults, without saved devices |\n| `config.example.yaml` | CLI starter with the same preferences and a placeholder exit |\n| `packaging\u002F`, `scripts\u002F` | Installers, release tools, and development helpers |\n| `site\u002F` | Public website |\n| `tests\u002F` | Installer, packaging, and website checks |\n\n## Documentation\n\n- [Desktop setup and controls](docs\u002Fguide.md#macos-app)\n- [Windows desktop and CLI](docs\u002Fguide.md#windows-desktop)\n- [Updates and older-version migration](docs\u002Fguide.md#desktop-updates)\n- [CLI configuration and DNS](docs\u002Fguide.md#cli-configuration)\n- [Releases and signing](docs\u002Fguide.md#ci-releases)\n- [Website preview](docs\u002Fguide.md#website-preview)\n\n## License\n\n[GPL-3.0-or-later](LICENSE). See [third-party notices](THIRD_PARTY_NOTICES.md).\n","TailSplit 是一款基于 sing-box 规则的路由客户端，用于在多个 Tailscale 网络间动态切换，并通过指定的 Tailscale 出口节点（exit node）转发选定流量。它支持按域名和 IP 地址精细化配置分流规则，可同时管理多个 Tailnet 中的出口设备，具备本地持久化登录状态、自动重连与 Kill-Switch 保护等特性。适用于需要灵活控制网络出口路径的个人开发者、远程团队及隐私敏感场景，如跨境研发协作、多租户网络隔离或安全代理中继。",2,"2026-11-24 04:38:07","CREATED_QUERY"]