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: 0 = no HTTP port; TCP-only mode with --tcp-ports) |
-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) - SSH ProxyCommand: Use
aitun ssh-proxy host.t.aitun.cc 22to wrap SSH in TLS for subdomain routing
License
MIT
Metadata
Release files for aitun 4.12.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aitun-4.12.7.tar.gz | 32.3 MB | Without provenance | Details for aitun-4.12.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aitun-4.12.7-py3-none-any.whl | Python 3 | none | any | Details for aitun-4.12.7-py3-none-any.whl |
Total release size: 65.2 MB
Release files / aitun-4.12.7.tar.gz
| Download URL | aitun-4.12.7.tar.gz |
|---|---|
| Size | 32.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbf552f374e17ebd6a7c485d8be030d57499d6065331b9016e1ece79e078adfd
|
|
BLAKE2b-256 checksum How to use checksums |
59fe0e23ae1053c9cd415677df824aa647e214a9b548c5a4879ba327eb8006fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / aitun-4.12.7-py3-none-any.whl
| Download URL | aitun-4.12.7-py3-none-any.whl |
|---|---|
| Size | 32.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
631c5bb4a033e57fcfdabdcc4a749baee2e6d29e5c4834417372c26df592c739
|
|
BLAKE2b-256 checksum How to use checksums |
e63f7401a781a2073982a0c72aafd4c71fdf6c326c80e45b3ff12a3160514c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for aitun 4.12.7
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.