Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update readme

Tereza Tizkovab5a6f4958eaf
diff --git a/packages/python-sdk/README.md b/packages/python-sdk/README.md
index 7d32abddc..68f639584 100644
--- a/packages/python-sdk/README.md
+++ b/packages/python-sdk/README.md
@@ -83,15 +83,15 @@ E2B Sandbox is a secure cloud environment that allows AI agents and apps. You ca
> Please visit [documentation](https://e2b.dev/docs) to get started.
-To create and control a sandbox, you use our SDK:
+**Python**
-### Install SDK
+1. Install SDK
```bash
pip install e2b
```
-### Start sandbox
+2. Start sandbox
```py
from e2b import Sandbox
@@ -105,3 +105,26 @@ sandbox = Sandbox()
# Close sandbox once done
sandbox.close()
```
+
+**JavaScript & TypeScript**
+
+1. Install SDK
+
+```bash
+npm install e2b
+```
+
+2. Start sandbox
+
+```js
+import { Sandbox } from "e2b";
+
+// Create sandbox
+const sandbox = await Sandbox.create();
+
+// Let an LLM use the sandbox here
+// Visit https://e2b.dev/docs/sandbox/overview to learn more about sandboxes.
+
+// Close sandbox once done
+await sandbox.close();
+```
\ No newline at end of file