Skip to main content

anytls-py cli

借助 mihomo 构建 AnyTLS 容器服务,具备如下特性:

  1. 支持配置域名,自动申请证书
  2. 通过 Compose 管理容器服务,实现安全的自启和持久化运行
  3. 遵循最佳实践的轻量化部署

速通指南

uv

uv installation

(可选)确保环境中存在 uv:

curl -LsSf https://astral.sh/uv/install.sh | sh

(可选)To add $HOME/.local/bin to your PATH, either restart your shell or run:

source $HOME/.local/bin/env (sh, bash, zsh)
source $HOME/.local/bin/env.fish (fish)

Installation

使用 uv 以 tool 的方式安装 anytls-py:

uv tool install anytls-py

Startup

一键安装指令:

uv run anytls install -d [DOMAIN]
必选参数 简介
--domain, -d 绑定的域名
可选参数 简介
--password, -p 手动指定连接密码 (可选,默认随机生成)
--ip 手动指定服务器公网 IPv4 (可选,默认自动检测)
--port 指定监听端口 (可选,默认 8443)
--image 指定托管镜像(可选,默认 metacubex/mihomo:latest)

下一步

移除所有项目依赖:

uv run anytls remove

升级脚本:

uv run anytls self update

根据正在运行的服务配置生成 mihomo client outbound 配置:

uv run anytls check

探索其他指令:

uv run anytls --help

image-20250615192420892

Metadata

Release files for anytls-py 0.1.14

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

Source distribution (sdist)

Source distribution for anytls-py 0.1.14
File Size Uploaded Provenance
anytls_py-0.1.14.tar.gz 92.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for anytls-py 0.1.14
File Interpreter ABI Platform
anytls_py-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 123.7 kB

Release files / anytls_py-0.1.14.tar.gz

Download URL anytls_py-0.1.14.tar.gz
Size 92.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ddfae73c15009d509efe1acfc9915ce7af8124f62b76df0449338e174a831715
BLAKE2b-256 checksum
How to use checksums
0dfb77f7606b60c7263e89a3aa4a7eca0519770d0c41f6c87fa7649bf3a32048
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Release files / anytls_py-0.1.14-py3-none-any.whl

Download URL anytls_py-0.1.14-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32720b4e4aeb1c399d75a5ff4421c76723db14ed34d0a9bf60ef933f6b1a5b82
BLAKE2b-256 checksum
How to use checksums
824a89588c7d6a62a53959b0e9698df783dd739e00d23aba0abeab86581c5d9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Security for anytls-py 0.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files No provenance

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