# E2B 2.67.0 adds localhost port exposure control and paused sandbox retention

published: 2026-11-30T11:05:27.602Z
topic: infrastructure
source: https://github.com/e2b-dev/E2B/releases/tag/e2b%402.67.0
url: https://aiagentnews.io/stories/e2b-2-67-0-adds-localhost-port-exposure-control-and-paused-sandbox-retention

E2B has released version 2.67.0 of its package, adding a network option that controls whether services bound only to loopback addresses can be reached through sandbox URLs. The same release lets developers set how long a paused sandbox can sit unused before it is deleted.

The first change adds an exposeLocalhostPorts network option, which is expose_localhost_ports in Python. Setting it to false on create keeps services listening only on loopback addresses such as 127.0.0.1, localhost and ::1 unreachable through sandbox URLs, while services listening on all interfaces stay reachable. When the option is omitted, the project's default applies, and the false setting requires a template built with envd 0.12.0 or newer.

The second change adds paused sandbox retention, which sets how long a paused sandbox may stay unused before it is deleted. Developers can set it on create with lifecycle.pausedRetentionMs, or in Python with lifecycle["paused_retention"] in seconds. The setPausedRetention() method, or set_paused_retention() in Python, changes or removes the value later and also works on sandboxes that are already paused.

Sandbox info now reports the retention setting and a pausedExpiresAt field, paused_expires_at in Python, that shows when a paused sandbox will be deleted. List results include the same field. The release was published on GitHub on 30 November.

## Why it matters if you build agents

Agents that run services on localhost inside a sandbox can keep them off sandbox URLs by setting the option to false, but only on templates built with envd 0.12.0 or newer. Workflows that pause sandboxes between steps can set a retention window so paused environments are removed on a schedule they control. Check existing templates before relying on the false setting.
