Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 11, 2026·2 min de lecture

E2B — Secure Sandboxes for AI Code

E2B runs AI-generated code in isolated cloud sandboxes. Install the Python/JS SDK, set `E2B_API_KEY`, then execute commands safely inside a sandbox.

Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Stage only · 29/100Stage only
Surface agent
Tout agent MCP/CLI
Type
Script
Installation
Single
Confiance
Confiance : Established
Point d'entrée
README.md
Commande CLI universelle
npx tokrepo install d5ecafac-0501-4f42-adec-5d8b2ac6141a
Introduction

E2B runs AI-generated code in isolated cloud sandboxes. Install the Python/JS SDK, set E2B_API_KEY, then execute commands safely inside a sandbox.

  • Best for: agent builders who need to execute untrusted code with isolation (CI-like sandboxes) instead of running directly on the host machine
  • Works with: Python SDK (pip install e2b) or JS SDK (npm i e2b), E2B API key, sandbox command execution (repo examples)
  • Setup time: 12 minutes

Quantitative Notes

  • Install: pip install e2b (repo)
  • Setup time ~12 minutes
  • GitHub stars (verified): see Source & Thanks

Practical Notes

Use E2B to separate reasoning from execution. Let your LLM plan the steps, but run risky commands in a sandbox with clean state. This is especially useful for agents that generate code, install packages, or process untrusted data. In production, standardize images/templates and capture logs + artifacts for auditability.

Safety note: Isolation reduces risk, but you still need secret management—never bake API keys into prompts or artifacts.

FAQ

Q: Is E2B self-hostable? A: The README links to a self-hosting guide and infrastructure repo for running E2B on your own cloud.

Q: What can I run inside a sandbox? A: Commands and code execution via SDK methods; start with shell commands, then add a code-interpreter SDK if needed (repo mentions).

Q: How do I control cost? A: Reuse sandboxes when possible, keep jobs short, and scope execution to minimal steps per task.


🙏

Source et remerciements

GitHub: https://github.com/e2b-dev/E2B Owner avatar: https://avatars.githubusercontent.com/u/129434473?v=4 License (SPDX): Apache-2.0 GitHub stars (verified via api.github.com/repos/e2b-dev/E2B): 12,146

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires