@e2b/code-interpreter
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

e2b logo

What is E2B?

E2B is an open-source infrastructure that allows you run to AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.

Run your first Sandbox

1. Install SDK

npm i @e2b/code-interpreter

2. Get your E2B API key

  1. Sign up to E2B here.
  2. Get your API key here.
  3. Set environment variable with your API key.
E2B_API_KEY=e2b_***

3. Execute code with code interpreter inside Sandbox

import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()
await sbx.runCode('x = 1')

const execution = await sbx.runCode('x+=1; x')
console.log(execution.text)  // outputs 2

4. Check docs

Visit E2B documentation.

5. E2B cookbook

Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.9-beta.720rc
1.0.4842latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.4842
1.0.36,243
1.0.2133
1.0.19
0.0.9-beta.720
0.0.9-beta.710
0.0.9-beta.700
0.0.9-beta.690
0.0.9-beta.680
0.0.9-beta.670
0.0.9-beta.660
0.0.9-beta.6525
0.0.9-beta.640
0.0.9-beta.630
0.0.9-beta.620
0.0.9-beta.610
0.0.9-beta.600
0.0.9-beta.590
0.0.9-beta.580
0.0.9-beta.570
0.0.9-beta.560
0.0.9-beta.550
0.0.9-beta.540
0.0.9-beta.530
0.0.9-beta.520
0.0.9-beta.5189
0.0.9-beta.500
0.0.9-beta.490
0.0.9-beta.480
0.0.9-beta.470
0.0.9-beta.460
0.0.9-beta.450
0.0.9-beta.440
0.0.9-beta.430
0.0.9-beta.420
0.0.9-beta.410
0.0.9-beta.400
0.0.9-beta-df.50
0.0.9-beta-df.40
0.0.9-beta-df.30
0.0.9-beta.390
0.0.9-beta.380
0.0.9-beta.370
0.0.9-beta.360
0.0.9-beta.350
0.0.9-beta.340
0.0.9-beta.330
0.0.9-beta.320
0.0.9-beta.310
0.0.9-beta.300
0.0.9-beta.290
0.0.9-beta.280
0.0.9-beta.270
0.0.9-beta.260
0.0.9-beta.250
0.0.9-beta.240
0.0.9-beta.2389
0.0.9-beta.220
0.0.9-beta.210
0.0.9-beta.203
0.0.9-beta.190
0.0.9-beta.180
0.0.9-beta.170
0.0.9-beta.160
0.0.9-beta.150
0.0.9-beta.140
0.0.9-beta.130
0.0.9-beta.120
0.0.9-beta.110
0.0.9-beta.100
0.0.9-beta.90
0.0.9-beta.80
0.0.9-beta.70
0.0.9-beta.60
0.0.9-beta.50
0.0.9-beta.40
0.0.9-beta.31,611
0.0.9-beta.20
0.0.9-beta.10
0.0.9-beta.00
0.0.9-multikernel-code-interpreterer.186
0.0.9-multikernel-code-interpreterer.00
0.0.8-multikernel-code-interpreterer.10
0.0.82,716
0.0.8-multikernel-code-interpreterer.00
0.0.728
0.0.60
0.0.53,977
0.0.40
0.0.30
0.0.2324
0.0.10
0.0.1-prerelease.20
0.0.1-prerelease.10
0.0.1-prerelease.00
0.0.1-rc.00

Package Sidebar

Install

npm i @e2b/code-interpreter

Homepage

e2b.dev

Weekly Downloads

15,328

Version

1.0.4

License

MIT

Unpacked Size

119 kB

Total Files

9

Last publish

Collaborators

  • jakbuno
  • mlejva
  • valentatomas