CLI for Agents
Daemon Mode
Run a tunnel in the background as a detached process that survives terminal close. Same metered pricing as foreground (1 credit per connected hour, capped at 10/day) — the --ttl flag is a safety auto-stop, not a price.
bash
npx otterkit tunnel <port> --daemon [--ttl <duration>]| Flag | Meaning | Default |
|---|---|---|
| --daemon | Detach and keep running after the terminal closes | off |
| --ttl <duration> | Auto-stop after e.g. 45m, 4h, 3d (max 7d) | 24h |
bash
# Background tunnel, auto-stops after 24h (default)
npx otterkit tunnel 3000 --daemon
# Auto-stop after 4 hours
npx otterkit tunnel 8080 --daemon --ttl 4h
# Long-running: auto-stop after 3 days
npx otterkit tunnel 8080 --daemon --ttl 3d