In short.
E2B’s template quickstart is a guide for application and agent developers preparing reusable code execution environments, but actual startup speed and operating costs remain unknown. It documents CLI and SDK routes, development and production template tags, startup-process capture and shared-base layering. The manual route requires SDK 2.3.0 or newer. Concrete build limits are supplied, although the JavaScript/TypeScript sandbox-creation example needs a variable-name correction if both calls are used together. Nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete selected page at [https://docs.e2b.dev/template/quickstart.md], including its documentation-index notice, CLI and manual SDK routes, examples, scaling guidance, layering and build limits. The linked documentation index, CLI instructions, startup/readiness reference, snapshots page, SDK reference and billing page are excluded. Commands and examples were read as source text only. Installation, builds, sandbox creation, performance, readiness and security behavior were not tested.
The overview
identity
This is E2B’s Template quickstart documentation at [https://docs.e2b.dev/template/quickstart.md]. It teaches developers to define a reusable sandbox configuration, build it under a template name and create new sandboxes from that name.
The resource is a feature tutorial. It includes CLI instructions and parallel Python and JavaScript/TypeScript examples, rather than a complete application or a general introduction to the E2B platform.
assessment
The guide is useful when repeated environments need the same dependencies, files or startup process. It supplies a concrete path from defining a template to creating a sandbox, plus an approach for customer-specific variants.
Its value is strongest as an implementation starting point. The page does not establish application reliability, security isolation guarantees or measured startup performance. The labels development and production distinguish template tags; the examples do not demonstrate a production deployment process.
users
The documented use cases include separate environments for customers, projects and agent runs. Developers maintaining many similar environments can use a shared base template and add customer-specific configuration.
Beginners need enough Python or JavaScript/TypeScript familiarity to install packages, edit files and run scripts. Experienced developers get resource settings, build logging and template layering, but runtime versions and broader application integration are not explained.
capabilities
Templates can specify a base image, environment variables, copied files, setup commands and a startup command. The documented startup command runs during the build, and its process state is captured so a sandbox can begin with that process already prepared.
The SDK examples configure CPU count, memory and build-log output. The page also describes running Docker containers during template setup and deriving templates from an existing template through fromTemplate in JavaScript/TypeScript or from_template in Python.
Using it
requirements
The manual route requires E2B SDK version 2.3.0 or newer. The page specifies installing e2b and dotenv, then placing an E2B_API_KEY value in a .env file. It does not explain how to obtain the key or specify supported Python or Node.js versions.
The CLI route requires the E2B CLI, but installation details are delegated to a linked page. The TypeScript build commands use npx tsx. The examples do not pin exact package versions.
mechanism
A template moves environment preparation into a build step. According to the documentation, its startup command runs during that build and the process is captured in a snapshot. New sandboxes then use the named template and its prepared process state.
The page attributes faster starts than E2B snapshots to restarting the guest operating system before capturing the long-running process and to more effective prefetching. It supplies no measurements for this comparison.
For related templates, fromTemplate reuses an existing template and its cached base setup. The example adds customer files and an environment variable to a shared base, avoiding a fresh definition of all shared setup.
setup
For CLI scaffolding, install the E2B CLI, run e2b template init and follow its prompts. The generated README contains the subsequent build and usage instructions; those generated contents are not supplied on this page.
For manual setup, install the packages, configure the API key and create template.ts or template.py. Add separate development and production build scripts that load the environment file, import the template and call Template.build with a template name and build logger.
The documented build commands are npx tsx build.dev.ts and npx tsx build.prod.ts for TypeScript, or python build_dev.py and python build_prod.py for Python. Both configurations use CPU count 1 and memory 1024 MB. Create a sandbox using template-tag-dev or template-tag after the corresponding build.
example
The minimal example starts from E2B’s base image, sets HELLO to Hello, World! and configures echo $HELLO as the startup command. It supplies waitForTimeout(5_000) in JavaScript/TypeScript or wait_for_timeout(5_000) in Python as the waiting helper.
This demonstrates the configuration syntax, but a fixed wait and a short echo command do not demonstrate readiness for a long-running application server.
The layering example starts from my-base-template, copies ./customers/acme into /app/config and sets CUSTOMER_ID to acme. It illustrates customer-specific configuration without supplying a complete customer application.
Assessment & evidence
limitations
Builds are limited to one hour and are terminated if they exceed it. Hobby limits are 8 vCPUs, 8 GiB memory and 10 GiB disk. For Pro, the page lists 8+ vCPUs, 8+ GiB memory and 20+ GiB disk without exact upper bounds. Hobby and Pro permit 20 concurrent builds; Enterprise limits are custom.
The JavaScript/TypeScript sandbox-creation snippet declares const sandbox twice in the same scope. As written, those declarations conflict. Use one call, different variable names or separate scopes. This is a visible source-code issue; no execution was performed.
The claim of zero waiting time has no supporting timings on the page. Sandbox lifetime, cleanup, network controls, secret handling and application-specific readiness are not explained sufficiently to assess operational suitability.
reasoning
The documented design is a reasonable candidate when environments repeatedly perform the same setup: preparing that state during a template build can reduce work needed during later launches. This is an inference from the mechanism, not a measured speed improvement.
Shared-base layering is particularly relevant when customer environments differ mainly in files or configuration. The page supports understanding that pattern, while the decision to rely on it for a real application still depends on workload measurements, readiness behavior and confirmed operating costs.
alternatives
Within this guide, the CLI offers prompted project creation, while the manual SDK route exposes the template and build scripts directly. Both lead to named templates used when creating sandboxes.
The page also identifies E2B snapshots as an alternative and recommends templates for large numbers of customer or project environments. Its performance comparison is vendor guidance without quantitative results. The linked snapshots documentation and competing providers were not assessed.
evidence
The evidence is the complete captured E2B documentation page at [https://docs.e2b.dev/template/quickstart.md]. It contains concrete commands, SDK examples, resource settings, layering guidance and build limits.
The captured source revision is sha256:bacbd78218b40ad6150161f4604d6e5bcb132d01cf9659b89a5d18bf95672ffd. No execution logs, benchmark results or application deployment results are supplied. Nothing was installed, built or run.
Access & freshness
costs
Actual costs are unknown. The page names Hobby, Pro and Enterprise plans but supplies no subscription prices, build charges, sandbox runtime rates or billing examples. The Hobby name does not establish that usage is free.
At capture, the page states there is no limit on the number of templates and says charges for total template storage may be introduced later. Its description of low overhead is not a cost estimate. Pricing details are linked at [https://docs.e2b.dev/billing.md#plans], whose contents are outside this resource’s scope.
rights
The supplied page does not state a license or redistribution permission for its documentation or code examples. Rights to redistribute those materials are therefore unknown from this evidence.
The page also does not establish service terms, ownership conditions for uploaded files or templates, or data-retention terms.
freshness
The page was captured on 13 November 2026 at 06:56:14.254 UTC. No publication or last-updated date appears in the supplied text. The minimum SDK version is 2.3.0, but no exact validated release or CLI version is identified.
Template-count policy and plan limits describe the captured page, rather than a guarantee of future availability. The page explicitly leaves open the possibility of future storage pricing.
actions
Choose CLI scaffolding for the prompted setup or the manual SDK route for direct control of the definition and scripts. Confirm the required SDK version and API key, then begin with the development template tag.
When adapting the example, replace echo with the intended application process and establish an application-specific readiness condition. Correct the duplicate JavaScript/TypeScript variable declarations if using both sandbox-creation calls.
Before depending on the template for users, measure build duration and sandbox readiness with the intended workload. Confirm applicable prices, resource limits, sandbox lifecycle behavior and service terms; these are not established by the quickstart alone.
