Skip to content
Projects

About

Zephyr: A modern, lightweight, and secure Mihomo / Clash Meta GUI client built with Tauri and Rust.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
+2
in 7 days
+3
in 15 days
+6
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_en.md

Original

Zephyr - Modern Mihomo GUI Client Logo

Secure by Design · Light by Nature · Beautiful by Choice

A Mihomo GUI.

Stars Release License Platform Downloads Security Rust Tests JS Tests Tauri Rust

English | 简体中文


Quick Start

5 minutes to get started:

  1. Download — Get the latest release from GitHub Releases
  2. Install — Run the installer (or extract Portable version)
  3. Import — Add your subscription via URL or file
  4. Select — Choose a proxy node from the list
  5. Enable — Toggle System Proxy or TUN Mode

That's it. Your traffic is now routed through the selected proxy.

Transparency Notice: All content in this project is AI-generated (including this text). Security measures are implemented—see Security Design—but should not be assumed to be fully verified. Please assess risks before use. If you discover security issues, please submit an Issue.


Demo Video

https://github.com/user-attachments/assets/b933c9b7-d91a-4f80-8bca-10b7cd706358


Why Zephyr?

Zephyr was born from frustration. None of the Mihomo GUIs on the market matched my aesthetics. So I started "vibe coding".

Visual Experience. Frosted glass cards. Gradient icons. Dark mode. Animation details. Typography that breathes. A proxy client that feels designed, not assembled.

Security Boundaries. Explicit constraints on subscriptions, configs, scripts, files, updates, and deep links. Defense in depth.

Rule Capabilities. Prism Engine brings declarative rule patches, smart node selection, and script sandbox. More power, less complexity.

See FEATURES.md for the complete feature list.


Growing Community

Zephyr is gaining attention from developers and users.


Features

Core Capabilities

  • Mihomo Core Management — Start, stop, restart the proxy core
  • Multi-Config Management — Create, edit, switch YAML configurations
  • Subscription Management — URL, file, drag-and-drop import, Base64 auto-decoding
  • Proxy Mode Switching — Rule, Global, Direct modes
  • System Proxy — Native system proxy management for Windows / macOS / Linux
  • TUN Mode — System-level proxy
  • Connections & Traffic — Real-time connection list, connection termination, up/down speeds, historical trends

Prism Engine

Zephyr includes a rule engine based on clash-prism-* crates to enhance Mihomo configuration:

Feature Description
Declarative Rule Patches .prism.yaml supports $prepend, $append, $filter, $override, and __when__ conditions
Rule Library Management CRUD operations, grouping, import, auto-apply, file watching
Smart Node Selection EMA scoring and adaptive scheduling based on latency, success rate, stability
Failover Automatic node switching on failure, with thresholds, cooldown, and rollback strategies
Script Sandbox QuickJS execution environment with time, memory, string length, loop, and recursion limits
Plugin System Plugin discovery, loading, lifecycle hooks, and fine-grained permission control
Override System Prism DSL + JavaScript dual-engine config overrides, global/per-profile scope, drag-reorder, import/export
KV Storage Persistent key-value storage capabilities

Security Design

Zephyr implements defense-in-depth security measures:

Layer Protection Implementation
Encryption Machine-bound encryption Hardware fingerprint-derived keys for subscription metadata; proxy configs support optional encryption (v2.3.7+)
Network SSRF Protection DNS validation before subscription/rule URL downloads; redirects to private addresses blocked
Network DNS Leak Prevention TUN mode auto-injects dns-hijack, capturing all DNS traffic to Mihomo
Config Config Sanitization Recursive removal of dangerous YAML fields, provider path traversal limits
Script Permission Control Script execution constrained by resource limits and permission restrictions
Input Input Validation IPC command entry points with length, format, and UTF-8 safety checks
Rate Limit Dual Rate Limiting Fixed cooldown for standard commands + sliding window for Prism commands
File File Security Secure permissions, UUID temp files, archive path traversal protection, symlink rejection, zip bomb detection
Update Update Integrity SHA256 verification + Minisign Ed25519 signature verification, trusted host restrictions, atomic updates with auto-rollback
Deep Link Deep Link Security Restricted clash:// protocol entry points and URL schemes
Build CSP & Hardening Limited script and connection sources; release builds with LTO, strip, panic=abort

System Integration

  • System tray status icon and quick menu
  • Global hotkeys: Window show, system proxy, TUN, proxy mode switching
  • clash:// deep link subscription import
  • Windows UWP loopback exemption
  • Mihomo core, GeoIP/GeoSite data, and Zephyr client updates
  • Auto-start on boot, system notifications, config directory access

Network Optimization

  • Three-layer optimization: Mihomo config defaults (tcp-concurrent, keep-alive, fake-ip persistence) + OS TCP tuning (Fast Open, ECN, buffer) + DNS optimization
  • Standalone UI: manual Apply / Revert / Status view
  • Linux persistence to /etc/sysctl.d/

Lightweight Mode

  • Destroys WebView on window close to free memory, keeps only system tray
  • Settings entry: Settings → General → Lightweight Mode

UI / UX

  • Transparent frameless window with custom title bar
  • UI Scaling: 1x - 1.5x interface scaling for different resolutions
  • Virtual scrolling logs with level filtering and regex search
  • CodeMirror 6 editor with Prism DSL highlighting and completion
  • Proxy node card 3D interaction effects
  • Theme system: preset themes and custom colors
  • i18n: 14 languages (en, zh, ja, ko, ru, es, fa, tk, my, ar, ur, sw, tr, vi), RTL layout support, CLDR plural rule validation
  • Frontend event bus, centralized state, and caching layer

Tech Stack

Layer Technology Description
Desktop Framework Tauri v2 Lightweight desktop application framework
Backend Rust 1.95+ IPC, system integration, core management, security boundaries
Frontend Native JavaScript No frontend framework dependencies
Styling UnoCSS presetWind4 Instant atomic CSS engine
Editor CodeMirror 6 Prism DSL editing experience
Rule Engine clash-prism-* Rule patches, plugins, script sandbox, smart selection
Package Manager pnpm workspace apps/* + packages/* monorepo
Proxy Core Mihomo Clash Meta core

Installation

System Requirements

Platform Architecture Minimum Version
Windows x64 / ARM64 Windows 10 1809+
macOS x64 / ARM64 (Apple Silicon) macOS 10.13 (High Sierra)+
Linux x64 / ARM64 glibc 2.31+ (Ubuntu 20.04+, Debian 11+, Fedora 34+)

Hardware: ~300MB RAM, ~50MB disk space (Full version)

Download

Get the appropriate package from GitHub Releases.

Type Description Use Case
Full Includes Mihomo core and GeoIP/GeoSite data First-time install, offline use
Lite Smaller size, no core resources Already have local core resources
Portable Unzip and run, data stored in program directory USB drive use, multi-device use

Portable Version Usage

  1. Download Zephyr_x64-portable.zip / Zephyr_arm64-portable.zip or Zephyr-linux-x64-portable.tar.gz / Zephyr-linux-arm64-portable.tar.gz
  2. Extract to any directory
  3. Create an empty file named .portable in the directory (or it will be auto-created on first run)
  4. Run the executable

Portable Limitations: No auto-start on boot or in-client updates. See PORTABLE.md for details.


Running from Source

Prerequisites

  • Rust 1.95 or higher (the repository pins toolchain 1.100.1)
  • Node.js 22.13+, 24.x, or 26+
  • pnpm 12 (pinned via packageManager; needs Corepack 0.34.5+ — Node 26+ no longer bundles it, so run npm i -g corepack then corepack enable, or install pnpm 12.23.0 directly)
  • Platform-specific Tauri system dependencies

Development Mode

pnpm install
pnpm run dev

Build

pnpm run build

Verification Commands

pnpm run typecheck
pnpm run test
pnpm run lint
pnpm run check:i18n

Desktop package commands:

pnpm --filter @zephyr/desktop typecheck
pnpm --filter @zephyr/desktop test
pnpm --filter @zephyr/desktop lint
pnpm --filter @zephyr/desktop build:frontend   # CSS + CodeMirror bundle (src/cm6.bundle.js is committed)

Rust-side verification:

cd apps/desktop/src-tauri
cargo check
cargo test
cargo clippy --all-targets --all-features

Project Structure

.
├── apps/
│   └── desktop/                 # Tauri desktop application
│       ├── src/                 # Native JS frontend, styles, UI modules
│       └── src-tauri/           # Rust backend, IPC, system integration, Prism capabilities
├── crates/
│   ├── core/                    # zephyr-core — cross-platform pure business logic (rlib)
│   │   └── build_ios.sh         # iOS XCFramework build script
│   └── core-ffi/                # zephyr-core-ffi — UniFFI mobile binding entry (cdylib)
├── packages/
│   ├── shared/                  # Frontend shared code
│   ├── scripts/                 # Project scripts, e.g., i18n check
│   └── tokens/                  # Design Token system (Style Dictionary)
│       └── src/                 # Primitive / Semantic / Component token definitions
├── FEATURES.md                  # Feature list
├── package.json                 # Workspace root scripts
└── pnpm-workspace.yaml          # pnpm workspace configuration

FAQ

Is it safe to use?

Zephyr implements defense-in-depth security: SSRF protection, script sandboxing, update integrity verification, and more. The codebase is scanned by CodeQL and Semgrep in CI. See Security Design for details.

However, all content is AI-generated. Security, stability, and performance should not be assumed to be fully verified—please assess risks before use. If you discover security issues, please refer to SECURITY.md.

Will my PR be merged?

This project serves personal use cases first. PRs are not guaranteed to be merged. If you have different needs, forking and modifying directly is usually faster.

What's the difference between Full and Lite?

Full includes Mihomo core and GeoIP/GeoSite data—ready for first-time install or offline use. Lite is smaller but requires existing local core resources.


Community

Note: This project serves personal use cases first. PRs are not guaranteed to be merged. For specific needs, forking is often faster.


Contributing

Welcome contributions:

  • Reproducible bug reports
  • Security issue feedback
  • Clear, well-scoped small fixes
  • Quality improvements that don't change project direction

License

This project uses MIT License.


Sponsors

SignPath Free code signing provided by SignPath.io, certificate by SignPath Foundation.
Windows release binaries are digitally signed via SignPath Foundation. See Code Signing Policy.
Mergestorm Free AI code review provided by Mergestorm.
Every pull request is reviewed by Mergestorm before it merges.

Acknowledgments

Contributors

Juwan-Hwang MatrixNeoKozak meta-muse-ai[bot] google-ai-studio[bot] codebuddy-connector[bot] gemini-code-assist[bot] traeagent
coderabbitai[bot] sourcery-ai[bot] qodo-code-review[bot] qodo-free-for-open-source-projects[bot] chatgpt-codex-connector[bot] Copilot greptile-apps[bot]
gitar-bot[bot] mergestorm-vortex[bot] cubic-dev-ai[bot] llamapreview[bot] graphite-app[bot] sonarqubecloud[bot] snyk[bot]
gitguardian[bot] github-advanced-security[bot] pre-commit-ci[bot] codecov[bot] dependabot[bot] imgbot[bot] allcontributors[bot]
google-integrations[bot] fossa-integration[bot] qoderai[bot] tencent-buddy-agent[bot] opencode-console[bot] trae-ai[bot] google-labs-jules[bot]
copilot-swe-agent[bot]


Conjured by Juwan

Back to Top

Explore related projects

Loading…