In this article
Unattached prewarming is documented as free, while attachment, expiry and active work define separate operational boundaries.
October separated setup from session creation
The API changelog records Agents API sandbox prewarming on October 9, 2026. The prewarm guide describes installing dependencies and preparing files before attaching the environment to an agent session.
The potential latency benefit comes from moving setup earlier, such as while a user selects a dataset. Attaching an environment before it is ready does not eliminate setup: the agent’s workspace access still waits for preparation to finish.
Free preparation has a limited unattached lifetime
The guide says prewarming is free, including container usage before attachment. Unattached environments expire after 5 minutes. A preparation that expires before use therefore does not support the intended latency benefit, even though this documented phase is not billed as paid idle compute.
After attachment, standard container pricing applies. The October change separately says hosted compute is billed during active turns, without idle-between-turn charges. Do not substitute elapsed wall time for the actual billing boundary.
Templates and running workspaces differ
The hosted-sandbox guide says templates save configuration rather than a running workspace. The prewarm guide describes newly created standalone environments that multiple sessions can share, with common files and processes but separate conversation histories. Older environments can retain their original lifecycle.
Reuse therefore needs an explicit workload boundary. Sharing a workspace is not the same as isolated task state, and saving a template is not evidence that setup has already run for the next request.
Measure readiness and useful completion
For an illustrative reporting application, record whether the environment was ready when the task arrived, whether setup failed and whether the final report was accepted. The benchmark methodology guide helps keep the user-wait interval distinct from total work.
Software stack reproducibility supports retaining the prepared dependencies. Include model usage separately from container usage, and avoid assuming a free preattachment phase makes the entire agent task free. No environment was created for this article.
Possible next capability: arrival-aware preparation
Through May 6, 2027, a plausible editorial scenario is application-side preparation timed to likely task arrival, using readiness events and expiry to avoid preparing too early. Current environment IDs and prewarm readiness provide the mechanism.
This is not an announced scheduler or guaranteed saving. It needs predictable dependencies, safe workspace separation and actual arrival observations. Frequent expiry before use or shared-state contamination would contradict the benefit. The possible expansion is lower setup wait for accepted work, with honest billing and lifecycle boundaries rather than invented idle charges.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.