In short.
This is E2B's short quickstart for developers who want to start a first E2B Sandbox from JavaScript/TypeScript or Python, and its main catch is that it needs an E2B account and API key and gives no pricing beyond a $100 starter credit. The five steps are: create an account, put the API key in a .env file, install @e2b/code-interpreter (npm) or e2b-code-interpreter (pip), write about ten lines of code that call Sandbox.create(), run Python with runCode()/run_code() and list files at '/', then run the script with npx tsx or python. The page shows no expected output. It does not cover limits, sandbox lifetime, shutdown, the security model, pricing after the credits, SDK versions or a publication date, and it states no licence or service terms.
Researched and written by an AI model and checked by a second AI model. How it works
The E2B quickstart page at [https://docs.e2b.dev/quickstart.md] contains five steps: creating an account, adding E2B_API_KEY to a .env file, installing the Code Interpreter SDK with npm or pip, writing a short JavaScript/TypeScript or Python script that creates a sandbox, runs Python and lists the root directory, and running that script. It also says new accounts get $100 in credits, notes that the core e2b package is enough for projects that only need shell commands and files, and mentions a public docs MCP server at [https://docs.e2b.dev/mcp]. Account sign-up and API key retrieval happen on linked pages whose steps the quickstart does not reproduce. The quickstart provides no expected output, states no licence or service terms, and gives no pricing beyond the $100 starter credit.
The overview
What this resource is
This is the E2B documentation page titled Running your first Sandbox, at [https://docs.e2b.dev/quickstart.md]. It is a getting-started guide, not the SDK itself. It shows how to start an E2B Sandbox using the Code Interpreter SDK in JavaScript/TypeScript or Python.
The page does not define what a Sandbox is beyond showing that you can execute Python inside it, list files in it and (per a note) run shell commands and work with files. It names no author, version or publication date.
Overall assessment
As a first-run guide it is compact and concrete. The installation, example-code and script-running steps provide commands or code blocks, and both languages are covered side by side. A developer with Node.js or Python already installed can follow the steps in order, but creating an account and copying the API key depend on the linked sign-up and dashboard pages, and the page shows no expected output to confirm that the setup worked.
It is a minimal hello-world. It deliberately stops after printing logs and a file listing. It says nothing about cleaning up the sandbox, limits, error handling, security or cost after the starter credit. Treat it as an entry point, not as a basis for production decisions.
Who it is for
It suits developers who want to run code in an E2B Sandbox from a Node.js/TypeScript or Python project and need the shortest path to a working example. The code assumes comfort with environment variables, npm or pip, and running a script from a terminal.
It is not aimed at non-programmers. It also does not say what kinds of projects E2B is meant for, so it will not help someone deciding whether E2B fits a particular use case.
What the guide shows
The example demonstrates three capabilities: creating a sandbox session (Sandbox.create()), executing Python code inside it (runCode() in JavaScript/TypeScript, run_code() in Python) and listing files at the root directory (sbx.files.list('/')). The code comment describes the session as persistent.
A note on the page says the Code Interpreter SDK's Sandbox also supports shell commands and files, and that the core e2b package is enough if a project only needs shell commands and files. The examples demonstrate file listing through sbx.files.list('/'); shell-command execution is mentioned but not illustrated.
The page also says the E2B docs run a public MCP server at [https://docs.e2b.dev/mcp] that needs no authentication and can search the docs. The quickstart gives no further detail about that server.
Using it
Requirements
Stated requirements: an E2B account, an E2B API key stored as E2B_API_KEY in a .env file, and the SDK packages. For JavaScript/TypeScript that is @e2b/code-interpreter and dotenv. For Python it is e2b-code-interpreter and python-dotenv.
The page does not list Node.js or Python versions, operating systems, or network requirements. The run command for JavaScript/TypeScript uses npx tsx, but tsx is not in the install step. The example also uses top-level await, so it needs a runner that supports that. The guide gives no guidance if your project is set up differently. Minimum supported runtime versions are unknown.
How it works
The code loads the API key from .env (dotenv / python-dotenv), imports Sandbox from the Code Interpreter SDK, creates a sandbox, sends it a snippet of Python (print hello world), prints the execution logs, and lists files from the sandbox's root directory.
The page does not explicitly say where the sandbox runs or how it is isolated. The account, API key and credit model imply a hosted service, but that is an inference. How the SDK talks to E2B, how the runtime is built, and what the sandbox image contains are not described.
Setup steps
Step 1: sign up for an E2B account through the link on the page. Step 2: copy the API key from the E2B dashboard [https://console.e2b.dev/?tab=keys] into a .env file as E2B_API_KEY=e2b_***. Step 3: install the SDK with npm i @e2b/code-interpreter dotenv or pip install e2b-code-interpreter python-dotenv. Step 4: save the example as index.ts or main.py. Step 5: run npx tsx ./index.ts or python main.py.
The page gives no troubleshooting section, no expected output, and no way to confirm the setup worked beyond the printed logs and file list. Package versions are unpinned. Keep the .env file out of version control; the page does not mention this.
Worked example
The Python version is about ten lines: load_dotenv(), import Sandbox from e2b_code_interpreter, sbx = Sandbox.create(), execution = sbx.run_code("print('hello world')"), print(execution.logs), then files = sbx.files.list("/") and print(files). The TypeScript version does the same with await and import 'dotenv/config'.
The page does not show the output. It does not show closing or killing the sandbox, so what happens to the sandbox after the script ends (and whether it keeps running or being billed) is not stated. Check E2B's other documentation before leaving scripts like this running unattended.
Assessment & evidence
Limitations and gaps
The page does not cover: sandbox lifetime or timeouts, shutting a sandbox down, concurrency or resource limits, supported languages beyond Python in the example, installing packages inside the sandbox, security and data handling, regions, error handling, or pricing beyond the credit.
It also gives no SDK version, no compatibility information, no expected output and no publication or update date. Account creation and API key retrieval rely on the linked sign-up and dashboard pages, whose steps the quickstart does not reproduce.
Why this assessment
The quickstart is useful because it is concrete. It gives exact npm and pip install commands, a .env line naming the E2B_API_KEY variable, and matching JavaScript/TypeScript and Python examples that use the core calls (Sandbox.create(), runCode()/run_code() and files.list('/')) in a few lines. A developer can see the basic shape of the SDK without opening reference documentation, and the note on the core e2b package helps them choose between the two packages.
The gaps limit how far the guide can be relied on. With no expected output, a reader cannot tell from the page alone what a successful run should print. With no shutdown step, no sandbox lifetime or limits and no pricing beyond the $100 credit, the example says nothing about running sandboxes safely, cheaply or at scale. The page also never says outright that the sandbox runs on a hosted service; the account, API key and credits only imply it. Other E2B documentation may cover these topics, but the quickstart does not.
Alternatives
The quickstart names no competing services and makes no comparison with other sandbox or code-execution services. Within E2B, it points to the core e2b package as enough for projects that only need shell commands and files. Options a reader might consider outside E2B include running code in local containers or virtual machines. Whether E2B is better or worse than those for a given job cannot be judged from this page.
Evidence base
The source is the quickstart page at [https://docs.e2b.dev/quickstart.md]. It contains the five steps, the .env example, the npm and pip install commands, side-by-side JavaScript/TypeScript and Python examples, the run commands, the $100 credit statement, and notes about the core e2b package and the docs MCP server.
The page includes no SDK source code, package metadata, changelog, pricing details, licence or terms of use, and it shows no example output.
Access & freshness
Costs
The page states that every new E2B account gets $100 in credits. That is the only cost information. It does not say how long the credits last, whether a card is required, what a sandbox costs per unit of time or resource, or what happens when credits run out. Pricing beyond the starter credit is unknown.
The page promises $100 in credits for new accounts, but does not say whether this example deducts credits or how much running it costs.
Rights and licence
The page states no licence or terms of use for the documentation, the SDK packages or the service. Use of the E2B service is tied to an account and API key, and the governing service terms are not shown on the page. Licences of the npm and PyPI packages are unknown from this page.
Freshness
The page carries no publication date, update date, version number or changelog, so how current its package names and API calls are cannot be confirmed from the page. Unpinned install commands mean the SDK you get may differ from the one the page was written against. Check the package versions and the live docs before relying on the code.
Suggested next steps
If you want to try E2B, read the pricing and terms before signing up, as the quickstart does not give them. Store the API key only in .env or a secrets manager and keep it out of version control. Run the example in a throwaway project, pin the package versions you end up with, and confirm in the E2B docs how to close sandboxes and what limits apply before building on it.
For a project that only needs shell commands and files, the page says the core e2b package is enough; check its own documentation for the API.
