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

1.1.0 • 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
1.1.021,382latest
1.2.0-beta.2516beta
1.0.5-autopause.04autopause
0.0.9-beta.721rc

Version History

VersionDownloads (Last 7 Days)Published
1.2.0-beta.2516
1.1.021,382
1.0.5-autopause.04
1.2.0-beta.17,469
1.2.0-beta.07
1.0.5-beta.321
1.0.5-beta.12
1.0.414,233
1.0.32,354
1.0.2103
1.0.18
0.0.9-beta.721
0.0.9-beta.711
0.0.9-beta.701
0.0.9-beta.691
0.0.9-beta.681
0.0.9-beta.672
0.0.9-beta.661
0.0.9-beta.655
0.0.9-beta.641
0.0.9-beta.631
0.0.9-beta.621
0.0.9-beta.611
0.0.9-beta.601
0.0.9-beta.591
0.0.9-beta.582
0.0.9-beta.571
0.0.9-beta.561
0.0.9-beta.551
0.0.9-beta.541
0.0.9-beta.531
0.0.9-beta.523
0.0.9-beta.513
0.0.9-beta.501
0.0.9-beta.491
0.0.9-beta.481
0.0.9-beta.471
0.0.9-beta.461
0.0.9-beta.451
0.0.9-beta.442
0.0.9-beta.431
0.0.9-beta.421
0.0.9-beta.411
0.0.9-beta.401
0.0.9-beta-df.51
0.0.9-beta-df.41
0.0.9-beta-df.31
0.0.9-beta.391
0.0.9-beta.381
0.0.9-beta.371
0.0.9-beta.361
0.0.9-beta.351
0.0.9-beta.341
0.0.9-beta.331
0.0.9-beta.321
0.0.9-beta.312
0.0.9-beta.301
0.0.9-beta.291
0.0.9-beta.281
0.0.9-beta.271
0.0.9-beta.261
0.0.9-beta.251
0.0.9-beta.241
0.0.9-beta.231
0.0.9-beta.221
0.0.9-beta.211
0.0.9-beta.201
0.0.9-beta.191
0.0.9-beta.181
0.0.9-beta.171
0.0.9-beta.161
0.0.9-beta.151
0.0.9-beta.141
0.0.9-beta.131
0.0.9-beta.121
0.0.9-beta.111
0.0.9-beta.101
0.0.9-beta.91
0.0.9-beta.81
0.0.9-beta.71
0.0.9-beta.61
0.0.9-beta.51
0.0.9-beta.41
0.0.9-beta.355
0.0.9-beta.21
0.0.9-beta.11
0.0.9-beta.01
0.0.9-multikernel-code-interpreterer.15
0.0.9-multikernel-code-interpreterer.01
0.0.8-multikernel-code-interpreterer.11
0.0.81,434
0.0.8-multikernel-code-interpreterer.02
0.0.79
0.0.61
0.0.54,109
0.0.43
0.0.32
0.0.230
0.0.11
0.0.1-prerelease.21
0.0.1-prerelease.11
0.0.1-prerelease.01
0.0.1-rc.01

Package Sidebar

Install

npm i @e2b/code-interpreter

Homepage

e2b.dev

Weekly Downloads

51,877

Version

1.1.0

License

MIT

Unpacked Size

119 kB

Total Files

9

Last publish

Collaborators

  • jakbuno
  • mlejva
  • valentatomas
  • mishushakov