E2B
Hosted Python code interpreter sandbox.
Hosted Python code intrepreter sandbox which is really useful for data analysis, flexible code execution, and advanced reasoning on-the-fly.
- package:
@deepagent/e2b - exports:
function e2b - env vars:
E2B_API_KEY - source
- e2b api docs
Install
npm install @deepagent/e2b @e2b/code-interpreteryarn add @deepagent/e2b @e2b/code-interpreterpnpm add @deepagent/e2b @e2b/code-interpreterUsage
import { e2b } from '@deepagent/e2b'
const res = await e2b({ code: 'print("Hello, World")' })