API

Provision Daemon Tunnel

Provision a daemon (background) tunnel. Same metered pricing as foreground — 1 credit per connected hour, capped at 10/day. The ttl query parameter sets the auto-stop time, not the price.

POST/api/agent/tunnels/daemon?ttl=4h

Query parameters:

ParameterRequiredValues
ttlNo (default: 24h)e.g. 45m, 4h, 3d — max 7d

Response (200):

json
{
  "subdomain": "agent-f7e8d9c0",
  "publicUrl": "https://agent-f7e8d9c0.otterkit.app",
  "connectUrl": "wss://otterkit.app/ws/connect?subdomain=agent-f7e8d9c0",
  "mode": "daemon",
  "pricing": {
    "hourlyCredits": 1,
    "dailyCapCredits": 10,
    "note": "Charged per connected hour; first hour charged now."
  },
  "autoStopAt": "2026-07-15T09:00:00.000Z",
  "cost": 1,
  "balance": 49
}