Skip to main content

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 -k and --tcp-ports)
  • SSH ProxyCommand: Use aitun ssh-proxy host.t.aitun.cc 22 to wrap SSH in TLS for subdomain routing

License

MIT

Metadata

Release files for aitun 4.12.6

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

Source distribution (sdist)

Source distribution for aitun 4.12.6
File Size Uploaded
aitun-4.12.6.tar.gz 32.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for aitun 4.12.6
File Interpreter ABI Platform
aitun-4.12.6-py3-none-any.whl Python 3 none any Details

Total release size: 65.1 MB

Release files / aitun-4.12.6.tar.gz

Download URL aitun-4.12.6.tar.gz
Size 32.3 MB
Tags Source
SHA-256 checksum
How to use checksums
efe163903e7b3e5e2af9239936f01ed895bbfe2d15a841a6bc98b01374766570
BLAKE2b-256 checksum
How to use checksums
564de9063823aa5b4505190769d3d611dba1be31ff014cb89ad8f1b43a8830e0
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.6-py3-none-any.whl

Download URL aitun-4.12.6-py3-none-any.whl
Size 32.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f7b98aa895a91f0094e359a74ffaa11e8254436325ea4b18a6dc7ee1211070a0
BLAKE2b-256 checksum
How to use checksums
2759c47313ff4ed54e5009854ebb4a3ff135f5bddb1cea8d8eb3a2184fcf29a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4
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