AiTun
AiTun - Secure tunnel service that exposes local servers to the public internet, supporting IPv6/IPv4 P2P and relay modes.
Installation
pip install aitun
Usage
# Quick start - expose local port 8080 (free tunnel, no sign-up)
aitun -p 8080
# With explicit server
aitun -s aitun.cc:6639 -p 8080
# With auth token (registered subdomain)
aitun -k YOUR_TOKEN -p 8080
# With TCP forwarding (SSH + MySQL)
aitun -k YOUR_TOKEN -p 8080 --tcp-ports 22,3306
# Run as daemon
aitun -p 80 --daemon
# Stop daemon
aitun --stop
CLI Flags
| Flag | Description |
|---|---|
-p PORT |
Local service port (default: 8080) |
-k TOKEN |
Auth token for registered subdomain (omit for free tunnel) |
-s SERVER |
Server address (default: aitun.cc:6639) |
--host HOST |
Local service address (default: localhost) |
--tcp-ports PORTS |
TCP forwarding ports, comma-separated (requires -k) |
--p2p |
Enable P2P direct connection (default: enabled) |
--no-p2p |
Disable P2P, force server relay mode |
--daemon |
Run as background daemon |
--stop |
Stop running daemon |
Modes
- Free Tunnel: Instant proxy URL like
aitun.cc/abc123(no sign-up, 24h validity) - Subdomain: Custom subdomain like
myapp.t.aitun.cc(HTTPS, requires sign-in) - Short Domain: Short subdomain like
myapp.aitun.cc(requires sign-in) - TCP Forwarding: Forward SSH, MySQL, etc. via SNI routing (requires
-kand--tcp-ports)
License
MIT
Release files for aitunnel 4.9.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aitunnel-4.9.16.tar.gz | 28.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aitunnel-4.9.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.9 MB
Release files / aitunnel-4.9.16.tar.gz
| Download URL | aitunnel-4.9.16.tar.gz |
|---|---|
| Size | 28.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b903e1bd7b77b5bb05038a3b838a226ce3104aa5ff65833d9c6e69cefb13e93
|
|
BLAKE2b-256 checksum How to use checksums |
151e8c0cbfe9c2ad7f64251eca45705edaf78a15199256dff952095fedf376a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / aitunnel-4.9.16-py3-none-any.whl
| Download URL | aitunnel-4.9.16-py3-none-any.whl |
|---|---|
| Size | 28.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80476731449d743555d561bf7e896298deaa8e168b6c44d492971a2ea867d673
|
|
BLAKE2b-256 checksum How to use checksums |
4fa034685093e423a5843c44ae06e0cf3544cee3be2aefc0b0504a9e119818bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|