Quick Start

1. Create an account

Sign up at aitaohoo.com/register. All new accounts include a 14-day Pro trial with full access to all features.

2. Install the CLI

terminal
# Linux / macOS
curl -fsSL https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-linux-amd64 -o mojigateway
chmod +x mojigateway
sudo mv mojigateway /usr/local/bin/

# Windows (PowerShell)
Invoke-WebRequest -Uri https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-windows-amd64.exe -OutFile mojigateway.exe

3. Authenticate

terminal
mojigateway auth login
# Enter your API key from the dashboard Settings page

4. Start a tunnel

terminal
# Expose a local web server on port 3000
mojigateway tunnel http 3000

# With a custom subdomain (Pro tier)
mojigateway tunnel http 3000 --subdomain myapp

Installation

Supported Platforms

AI Tao Hoo CLI is available for Linux (x86_64, ARM64), macOS (Intel, Apple Silicon), and Windows (x86_64). Pre-built binaries are available on the download page.

Linux x86_64

terminal
curl -fsSL https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-linux-amd64 -o mojigateway
chmod +x mojigateway
sudo mv mojigateway /usr/local/bin/

Linux ARM64

terminal
curl -fsSL https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-linux-arm64 -o mojigateway
chmod +x mojigateway
sudo mv mojigateway /usr/local/bin/

macOS (Intel)

terminal
curl -fsSL https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-darwin-amd64 -o mojigateway
chmod +x mojigateway
sudo mv mojigateway /usr/local/bin/

macOS (Apple Silicon)

terminal
curl -fsSL https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-darwin-arm64 -o mojigateway
chmod +x mojigateway
sudo mv mojigateway /usr/local/bin/

Windows

terminal
Invoke-WebRequest -Uri https://storage.googleapis.com/aitaohoo-releases/cli/latest/mojigateway-windows-amd64.exe -OutFile mojigateway.exe
# Add to PATH or move to a directory in your PATH

Authentication

API Keys

API keys are used to authenticate the CLI with the AI Tao Hoo server. You can create and manage API keys from the Settings page in the dashboard. Each key has a "moji_" prefix for identification.

Login with CLI

terminal
# Interactive login
mojigateway auth login

# Login with API key directly
mojigateway auth login --key moji_your_api_key_here

Check auth status

terminal
mojigateway auth status

Tunnels

HTTP Tunnels

HTTP tunnels expose a local web server through a public URL with automatic SSL termination. This is the most common tunnel type.

terminal
# Basic HTTP tunnel
mojigateway tunnel http 3000

# With custom subdomain
mojigateway tunnel http 3000 --subdomain myapp
# Access at: https://myapp.gateway.aitaohoo.com

TCP Tunnels (Pro+)

TCP tunnels forward raw TCP traffic, useful for databases, game servers, SSH, or any non-HTTP protocol.

terminal
# TCP tunnel for a database
mojigateway tunnel tcp 5432

# TCP tunnel for SSH
mojigateway tunnel tcp 22

Managing Tunnels

Active tunnels are displayed in the dashboard under the Tunnels page. You can monitor real-time traffic, see connection counts, and close tunnels from the web UI or by pressing Ctrl+C in the terminal.

Custom Subdomains

How Subdomains Work

Every tunnel gets a subdomain under gateway.aitaohoo.com. Free tier users get random subdomains (e.g. swift-fox-123). Pro and Enterprise users can reserve custom subdomains.

Reserving a Subdomain

Reserve subdomains from the dashboard Subdomains page. Reserved subdomains are permanently linked to your account and can be used across tunnel sessions.

Using a Reserved Subdomain

terminal
mojigateway tunnel http 3000 --subdomain myapp
# Always accessible at: https://myapp.gateway.aitaohoo.com

Analytics

Dashboard Analytics

The Analytics page shows real-time and historical data for all your tunnels including total requests, bandwidth usage, average response time, and status code breakdown.

Metrics Available

Requests per minute, total bandwidth (upload/download), response time percentiles, HTTP status code distribution, geographic distribution of clients, and top paths by request count.

Need more help?

Check out the API reference or reach out to support.