track_sessions
Send your agent's running sandbox sessions (up to 200; call it on a heartbeat, e.g. every 5 minutes) and get back which are idle past your threshold or over their max lifetime, the dollars idle time has cost at the hourly rates you pass, and what to do. Pro acts: returns a ready-to-run kill call per idle sandbox for its provider (E2B kill, Vercel Sandbox stop, Daytona stop, Modal terminate) and POSTs one alert per sandbox to your webhook. Free watch-only returns would_kill and sends nothing. We never hold provider keys and never kill anything ourselves: your agent runs the call with its own key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fleet | No | A stable name for this group of sandboxes, e.g. "my-agent". State and rules are kept per fleet. | |
| sessions | Yes | ||
| idle_minutes | No | Idle minutes before a sandbox counts as idle. Default 15 (or your saved Pro rule). | |
| alert_webhook | No | https URL Pro posts the idle alert (with the kill call) to. | |
| rates_per_hour | No | Optional default USD per hour by provider, e.g. {"e2b": 0.17}. Your own numbers; per-session rate_per_hour wins. | |
| max_lifetime_minutes | No | Optional: flag sandboxes running longer than this, idle or not. |