Vercel Sandbox adds session lifecycle webhooks
Vercel Sandbox now emits real-time webhook events when microVM sessions start, near expiration, or terminate with resource usage metrics. AI agents and background workflows can listen via Vercel MCP or Workflow SDK to auto-extend execution times without polling.
Long-running AI coding agents constantly fight arbitrary execution timeouts, making polling compute loops expensive and brittle. Shifting session lifecycle management to push-based webhooks turns sandboxed microVMs into dependable, self-sustaining runtimes for autonomous agents.
- –The `sandbox.session.expiring` webhook fires with configurable lead time, giving agents an automated hook to call `extend_session_timeout` only while actively computing.
- –Stop webhooks return active CPU duration and network transfer metrics, enabling precise per-agent billing and performance attribution instead of paying for idle VM time.
- –Direct support in Vercel MCP allows LLMs to manage their own execution environments via native tool calling.
- –Pairing lifecycle events with Vercel Workflows removes polling infrastructure, reducing API rate limit contention and serverless compute overhead across multi-step agent pipelines.
DISCOVERED
3h ago
2026-11-30
PUBLISHED
3h ago
2026-11-30
RELEVANCE
AUTHOR
vercel_dev