Skip to main content

A controller for Clash

Project description

Clash Controller

一个使用 InquirerPy 构建的、功能丰富的 clash 文本用户界面(TUI)控制器。它可以让您方便地通过命令行管理和监控一个或多个 clash 实例。

功能特性

  • 交互式 TUI 界面: 友好的菜单驱动操作,无需记忆复杂命令。
  • 多端点管理:
    • 自动保存连接过的 Clash 端点(地址和密钥)。
    • 启动时可从已保存列表中快速选择。
    • 支持添加新的端点。
    • 支持 HTTP 和 Unix Domain Socket 连接。
  • 实时监控面板:
    • 概览 (Overview): 实时显示上/下行流量、内存使用和内核版本。
    • 连接 (Connections): 实时展示当前的活动连接列表、总连接数和累计流量。
  • 强大的设置菜单:
    • 模式切换: 循环切换 规则 / 全局 / 直连 模式,并开关 TUN 模式。
    • 重载与重启: 独立地重载配置文件、GEO 数据库,或重启 Clash 核心。
    • 一键升级: 在线升级内核、UI 面板和 GEO 数据库。
    • 查看完整配置: 显示当前 Clash 的全部运行配置。

安装

pip install clash-controller

使用方法

安装后,可以通过以下命令启动程序:

clashctl

程序启动后,会提示您选择一个已保存的 Clash 端点或添加一个新的端点。

开发者安装

如果你想要从源代码运行或者参与开发:

git clone https://github.com/Moha-Master/clash-controller.git
cd clash-controller

# 创建虚拟环境 (推荐)
python -m venv venv
source venv/bin/activate  # 在 Windows 上使用 venv\Scripts\activate

# 安装依赖
pip install -r requirements.txt

# 运行程序
python -m clash_controller

要求

  • Python 3.8+
  • 运行中的 Clash 实例,已开启外部控制 API

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clash_controller-0.0.2.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clash_controller-0.0.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file clash_controller-0.0.2.tar.gz.

File metadata

  • Download URL: clash_controller-0.0.2.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for clash_controller-0.0.2.tar.gz
Algorithm Hash digest
SHA256 543a657bd189bc6215498832c2fe869e0e32a0f3d2064c93d271e4ab0ad3b420
MD5 44f81dcf8998ecf9a1bf8d5e265b78ff
BLAKE2b-256 e404a06624d762516e2faad0e8299230c0349d80857c99fd834360879108dde8

See more details on using hashes here.

File details

Details for the file clash_controller-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for clash_controller-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60f26ea018fea253cbdf68249c6a6819891c34c719968ab9fdf685e4c8e17316
MD5 93d97dee276cbbaeee24b83e39da1d05
BLAKE2b-256 17506ddf3fa6e0bad4237c64aba3fbf49e54e001db6524bf205684e9e2a45176

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page