Metadata-Version: 2.4
Name: aitun
Version: 3.0.1
Summary: AiTun - Secure tunnel service that exposes local servers to the public internet, supporting IPv6/IPv4 P2P and relay modes
Author-email: AiTun <admin@aitun.cc>
License: MIT
Project-URL: Homepage, https://aitun.cc
Project-URL: Documentation, https://aitun.cc
Project-URL: Repository, https://github.com/ctz168/aitun
Keywords: tunnel,ngrok,nat-traversal,p2p,reverse-proxy,aitun
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: Proxy Servers
Classifier: Topic :: System :: Networking
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# AiTun

AiTun - Secure tunnel service that exposes local servers to the public internet.

## Installation

```bash
pip install aitun
```

## Usage

```bash
# Quick start - expose local port 8080
aitun -s aitun.cc:6639 -l 8080

# With custom subdomain
aitun -s aitun.cc:6639 -l 8080 --subdomain myapp

# With TCP forwarding (SSH)
aitun -s aitun.cc:6639 -l 80 --subdomain myapp --tcp-ports 22

# Connect to a remote tunnel
aitun-connect -s aitun.cc:6639 -t <tunnel-id>
```

## Modes

- **Path Proxy**: Free instant tunnel via `aitun.cc/s/<code>`
- **Subdomain**: Custom subdomain like `myapp.aitun.cc` (HTTPS)
- **Subdomain TCP**: TCP forwarding via SNI routing (shared ports, no port waste)
- **AiTun Connect**: Connect to remote tunnel TCP services from any machine

## License

MIT

