Skip to main content

mihomo-py

Your server's proxies. One terminal.

Subscriptions, nodes and logs — without leaving SSH.

PyPI Python Platform

English · 简体中文

TUI: subscriptions, core controls and server status

A mihomo client for Linux servers. Add a subscription, start the core, and manage it with your mouse or keyboard. The core and default GEO databases ship with the package.

The screenshots below use the Chinese locale; the same screens are available in English from the language button.

Install. Open. Done.

python -m pip install mihomo-py
mihomo-py

Requires Python 3.11+, Linux kernel 5.3+ with pidfd support, and x86_64 / aarch64. Works with system Python and Conda. Recommended terminal size: 80 × 24 or larger. The TUI follows the system language on first launch and supports Chinese and English; use the language button to switch between Follow system, Chinese, and English.

  1. Click Add, or press Ctrl+A. Enter a name and a subscription URL or local YAML path.
  2. Select the subscription and press Enter to use it.
  3. Click Start. Your HTTP/SOCKS proxy is ready at 127.0.0.1:7897 by default.

Subscriptions must be complete Clash/mihomo YAML configurations. Base64 node lists and individual proxy links are not supported.

Find a node. Switch. Test.

TUI: proxy groups, node selection and latency testing

Press 2 for nodes, select a proxy group, and press / to search. In a manual group, Enter switches the selected node immediately; Test latency measures one node. Node choices survive core restarts.

Follow logs. Keep your place.

TUI: live logs with pause and resume controls

Press 3 for logs. Scroll up to pause; press End to resume following. Press q to leave the TUI — the core keeps running.

1 / 2 / 3 switch tabs · i opens details · ? shows shortcuts. Full TUI guide →

Prefer a browser?

Web: subscription management using the same configuration as the TUI

Install the optional Web resources with python -m pip install 'mihomo-py[web]', then click Enable Web in the TUI. The gateway runs as a separate service on port 9091 by default, uses the configured management bind address, and stays running after the TUI exits. Click Web for the address and login key; Settings can rotate the shared login key. The same gateway manages subscriptions and embeds the node dashboard. Setup →

Go further

CLI & scripting · TUI guide · Documentation · Offline installation

The proxy listens on 127.0.0.1:7897 by default. The authenticated management API listens on 0.0.0.0:9090; the optional Web gateway listens on 0.0.0.0:9091. Use a trusted network or change the bind address in Settings. TUN and automatic system proxy setup are outside the current scope.

Screenshots use an isolated local demo: direct routes, a local latency target, and no real subscription credentials. Bundled resources retain their upstream notices.

Metadata

Release files for mihomo-py 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mihomo-py 0.1.5
File Size Uploaded
mihomo_py-0.1.5.tar.gz 40.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for mihomo-py 0.1.5
File Interpreter ABI Platform
mihomo_py-0.1.5-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64, Linux glibc 2.17+ x86-64 Details
mihomo_py-0.1.5-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64, Linux glibc 2.17+ ARM64 Details

Total release size: 95.5 MB

Release files / mihomo_py-0.1.5.tar.gz

Download URL mihomo_py-0.1.5.tar.gz
Size 40.3 MB
Tags Source
SHA-256 checksum
How to use checksums
b20efd72238ab2d1cd70a160fe02da066d3c42d112c65df79ab7d7da57e51cee
BLAKE2b-256 checksum
How to use checksums
24d0efcf56adaaeaaa6567fa9c8f34ed1ce3d4b9dd40c1140a133f735852c3d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mihomo_py-0.1.5-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl

Download URL mihomo_py-0.1.5-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
Size 28.3 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
be5a6d7a742739abff23dc7a329ddfd176a294bb9adc905e09876a0c01b6189d
BLAKE2b-256 checksum
How to use checksums
528a9cade351692786925b17914a028e9b4f3b3258b7d8c8346212f5587574ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mihomo_py-0.1.5-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl

Download URL mihomo_py-0.1.5-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
Size 27.0 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
32f5510e8b0d3c90646704ec9cecf30de93d7aef67dd6284974e3d02c76574f7
BLAKE2b-256 checksum
How to use checksums
21ea76d50ac87238f238ab07051f4d5e6068e04d831b4c46310fae94a93d53a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.5 This release

3 release files

0.1.4

3 release files

0.1.3

3 release files

0.1.2

3 release files

0.1.1

3 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page