AiTun for AI Agents
Let AI agents expose their locally-built web pages to the public internet with a single command. AiTun provides instant secure tunnels that give local services a public URL, making it easy for AI agents to share their work.
🤖 How It Works
When an AI agent (like OpenClaw, Claude, or ChatGPT) builds a web page locally, it typically has no way to share it publicly. AiTun solves this by creating an instant secure tunnel that gives the local page a public URL. The agent simply installs aitun, starts a tunnel, and shares the URL with the user. No configuration, no sign-up required for basic tunnels.
Quick Integration
pip install aitun
curl -fsSL https://aitun.cc/install.sh | bash
irm https://aitun.cc/install.ps1 | iex
python3 -m http.server 8080 --directory /path/to/site
aitun -p 8080
aitun -k TOKEN --tcp-ports 22
API Integration for AI Agents
AiTun provides a simple REST API that AI agents can use programmatically to check subdomain availability and register custom domains for permanent URLs.
curl https://aitun.cc/aitun-api/subdomain/check/myapp
curl -X POST https://aitun.cc/aitun-api/subdomain/register -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" -d '{"name":"myapp","domain_base":"t.aitun.cc"}'
🌐 Custom Subdomain
Register your own subdomain. Active for 30 days (renewable). Requires sign-in.
myapp.t.aitun.cc
⚡ Free Tunnel
No sign-up needed. Instant proxy URL (path-based routing), valid for 24 hours, auto-renewed on restart.
aitun.cc/abc123
🔒 Token-Based Auth
Use -k TOKEN flag with your auth token. Tokens can be renewed from the dashboard.
aitun -k TOKEN -p 8080
🔌 TCP-Only Mode
Forward SSH, RDP, or databases without a local HTTP port. Omit -p and use --tcp-ports only.
aitun -k TOKEN --tcp-ports 22
🔄 P2P + Relay
Supports P2P direct connection with automatic relay fallback. Low latency, high reliability.
aitun -p 8080 --p2p
🤖
ClawHub Skills for AI Agents
AiTun publishes 9 specialized skills on ClawHub, the skill registry for OpenClaw AI agents. Install the skill matching your use case, and your AI agent can expose local services to the internet with a single command.
clawhub install aitun-tunnel
clawhub install sendfile
clawhub install webhook-receiver
🚇
aitun-tunnel
Expose local web pages and HTTP services to the public internet. The core tunneling skill for sharing any local service.
View on ClawHub →
📁
sendfile
Send files to users in chat via temporary download links. P2P or relay delivery, no size limits, works in any browser.
View on ClawHub →
🔗
webhook-receiver
Receive external webhooks and callbacks in real time. GitHub, Stripe, OAuth, form submissions — all routed to your local handler.
View on ClawHub →
👀
live-preview
Share a live preview of a website under development with hot-reload support. Users see your changes as you iterate.
View on ClawHub →
🔌
remote-api
Expose a local API service for external testing and integration. Share REST, GraphQL, or any HTTP API instantly.
View on ClawHub →
✏️
collab-edit
Real-time collaborative editing and whiteboarding. Co-edit code, documents, or drawings with users in real time.
View on ClawHub →
📡
iot-bridge
Bridge IoT devices to the cloud. Expose local MQTT brokers, device dashboards, and HTTP APIs so remote devices can connect, report data, and receive commands.
View on ClawHub →
🖥️
sshtunnel
Expose local SSH servers for remote access via TCP tunnel. Provide SSH access to dev machines, servers, or containers behind NAT/firewall.
View on ClawHub →
💻
rdptunnel
Expose local RDP (Remote Desktop) servers for remote desktop access via TCP tunnel. Connect to Windows machines, xrdp Linux desktops, or VDI instances behind NAT/firewall from anywhere on the internet.
View on ClawHub →
📧
Agent Email Skill — One-Command Email for AI Agents
Agent Email is an open REST API for agents that need to receive sign-up / verification emails.
Every xxx@aitun.cc mailbox has its own aitm_ key — with it, one command returns the latest
10 emails (or the latest n with ?n=N). Storage is text-only with attachments
auto-purged, so verification codes are always machine-readable.
curl -s -H "Authorization: Bearer aitm_XXX" "https://aitun.cc/aitun-api/mail/recent?n=10"
curl -s -H "Authorization: Bearer aitm_XXX" "https://aitun.cc/aitun-api/mail/message/{EMAIL_ID}"
🔑 aitm_ mailbox key
Per-mailbox token. Read-only: fetch the latest 10 (or n) emails and full message text. Manage it in the dashboard Mailboxes tab.
🤖 aitagt_ agent key
Account-level agent token. With mailbox:create / mailbox:delete / mailbox:read scopes, agents can register and manage mailboxes on your behalf.
🔒 Receive-only & safe
No outbound mail exists in the system. Latest 10 text emails kept per mailbox, attachments stripped automatically.
📱
Agent SMS Skill — Receive-Code Phones for AI Agents
Agent SMS lets an AI agent receive SMS verification codes through a real phone number you own.
Register your number on the Agent SMS page, install the open-source aitunSMS Android app on the phone, and every
incoming SMS is pushed to aitun.cc — deduplicated, rolling 10-message storage. Each phone gets its own
atsms_ key: one command returns the latest verification texts, ready for sign-up flows that require a phone.
curl -s -H "Authorization: Bearer atsms_XXX" "https://aitun.cc/aitun-api/sms/recent?n=20"
curl -s -H "Authorization: Bearer atsms_XXX" "https://aitun.cc/aitun-api/sms/message/{SMS_ID}"
🔑 atsms_ phone key
Per-phone token. Fetch the latest 10 (or n) SMS and full message text. Also used by the aitunSMS Android app to push new messages.
🤖 aitagt_ agent key
Account-level agent token. With sms:create / sms:read / sms:delete scopes, agents can register phones and read received codes on your behalf.
📱 Your own number
This is NOT a virtual-number rental — it is your real SIM. The phone runs aitunSMS and pushes only what it receives; you can revoke the key anytime.
What the Skill Does for AI Agents
1️⃣
Install & Detect
Agent downloads the aitun client binary and verifies it is available on the system PATH.
2️⃣
Start Local Server
Agent spins up a local HTTP server to serve the built web page or application.
3️⃣
Create Tunnel
Agent runs aitun -p 8080 to get an instant public URL. For TCP-only (SSH/RDP), use aitun -k TOKEN --tcp-ports 22. No registration required for free tunnels.
4️⃣
Share with User
Agent delivers the public URL to the user, who can open it in any browser on any device.
Common Use Cases
Web Development
Share locally built websites with clients for instant preview and feedback.
API Testing
Expose local APIs for webhook testing and third-party integration development.
AI Agent Demos
Let AI agents showcase their generated applications in real-time to users.
IoT & Devices
Access IoT device dashboards and services running on local networks remotely.