@liveport/cli
v0.1.0
Published
CLI client for LivePort - secure localhost tunnels for AI agents
Downloads
86
Maintainers
Readme
@liveport/cli
Command-line interface for creating secure localhost tunnels with LivePort.
Installation
npm install -g @liveport/cli
# or
pnpm add -g @liveport/cliQuick Start
# Connect a local port (e.g., a dev server on port 3000)
liveport connect 3000 --key YOUR_BRIDGE_KEY
# Check tunnel status
liveport status
# Disconnect
liveport disconnectCommands
liveport connect <port>
Create a tunnel to expose a local port.
Options:
-k, --key <key>- Bridge key for authentication-s, --server <url>- Tunnel server URL-r, --region <region>- Server region
Example:
liveport connect 3000 --key bk_abc123liveport status
Show current tunnel status including URL and connection details.
liveport disconnect
Disconnect active tunnel.
Options:
-a, --all- Disconnect all tunnels
liveport config
Manage CLI configuration.
# Set default bridge key
liveport config set key bk_abc123
# Set default server (optional - defaults to tunnel.liveport.dev)
liveport config set server https://tunnel.liveport.dev
# View config
liveport config list
# Get specific value
liveport config get key
# Delete config value
liveport config delete keyEnvironment Variables
LIVEPORT_KEY- Default bridge keyLIVEPORT_SERVER_URL- Default tunnel server URL
How It Works
- Run
liveport connect <port>to establish a WebSocket connection to the LivePort tunnel server - The server assigns a unique subdomain (e.g.,
abc123.liveport.online) - Incoming requests to that URL are proxied through the tunnel to your local port
- AI agents can discover your tunnel using the
@liveport/agent-sdk
License
MIT
