{"id":13379285,"url":"https://github.com/e2b-dev/E2B","last_synced_at":"2025-03-13T05:30:43.912Z","repository":{"id":149314883,"uuid":"609539715","full_name":"e2b-dev/E2B","owner":"e2b-dev","description":"Secure open source cloud runtime for AI apps \u0026 AI agents","archived":false,"fork":false,"pushed_at":"2024-10-28T21:11:47.000Z","size":115081,"stargazers_count":6913,"open_issues_count":46,"forks_count":450,"subscribers_count":64,"default_branch":"main","last_synced_at":"2024-10-29T09:08:01.553Z","etag":null,"topics":["agent","ai","ai-agent","ai-agents","code-interpreter","copilot","development","devtools","gpt","gpt-4","javascript","llm","nextjs","openai","python","react","software","typescript"],"latest_commit_sha":null,"homepage":"https://e2b.dev/docs","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e2b-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T13:41:18.000Z","updated_at":"2024-10-29T05:56:49.000Z","dependencies_parsed_at":"2023-12-14T23:27:12.030Z","dependency_job_id":"ae1fa3a8-cb9f-4912-a1f4-8680c4e3a6c7","html_url":"https://github.com/e2b-dev/E2B","commit_stats":{"total_commits":3240,"total_committers":29,"mean_commits":"111.72413793103448","dds":0.512962962962963,"last_synced_commit":"da94e153d8b27d2e92e0c8247f3184092ad4becd"},"previous_names":[],"tags_count":340,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2FE2B","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2FE2B/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2FE2B/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2FE2B/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e2b-dev","download_url":"https://codeload.github.com/e2b-dev/E2B/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243350986,"owners_count":20276893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","ai-agent","ai-agents","code-interpreter","copilot","development","devtools","gpt","gpt-4","javascript","llm","nextjs","openai","python","react","software","typescript"],"created_at":"2024-07-30T07:02:28.336Z","updated_at":"2025-03-13T05:30:43.906Z","avatar_url":"https://github.com/e2b-dev.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"100\" src=\"/readme-assets/logo-circle.png\" alt=\"e2b logo\"\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/e2b/\"\u003e\n    \u003cimg alt=\"Last 1 month downloads for the Python SDK\" loading=\"lazy\" width=\"200\" height=\"20\" decoding=\"async\" data-nimg=\"1\"\n    style=\"color:transparent;width:auto;height:100%\" src=\"https://img.shields.io/pypi/dm/e2b?label=PyPI%20Downloads\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/e2b\"\u003e\n    \u003cimg alt=\"Last 1 month downloads for the JavaScript SDK\" loading=\"lazy\" width=\"200\" height=\"20\" decoding=\"async\" data-nimg=\"1\"\n    style=\"color:transparent;width:auto;height:100%\" src=\"https://img.shields.io/npm/dm/e2b?label=NPM%20Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/h4\u003e\n\n\u003c!---\n\u003cimg width=\"100%\" src=\"/readme-assets/preview.png\" alt=\"Cover image\"\u003e\n---\u003e\n## What is E2B?\n[E2B](https://www.e2b.dev/) is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our [JavaScript SDK](https://www.npmjs.com/package/@e2b/code-interpreter) or [Python SDK](https://pypi.org/project/e2b_code_interpreter).\n\n\u003e [!NOTE]\n\u003e This repository contains the core E2B SDK that's used in our main [E2B Code Interpreter SDK](https://github.com/e2b-dev/code-interpreter).\n\n## Run your first Sandbox\n\n### 1. Install SDK\n\nJavaScript / TypeScript\n```\nnpm i @e2b/code-interpreter\n```\n\nPython\n```\npip install e2b-code-interpreter\n```\n\n### 2. Get your E2B API key\n1. Sign up to E2B [here](https://e2b.dev).\n2. Get your API key [here](https://e2b.dev/dashboard?tab=keys).\n3. Set environment variable with your API key\n```\nE2B_API_KEY=e2b_***\n```     \n\n### 3. Execute code with code interpreter inside Sandbox\n\nJavaScript / TypeScript\n```ts\nimport { Sandbox } from '@e2b/code-interpreter'\n\nconst sandbox = await Sandbox.create()\nawait sandbox.runCode('x = 1')\n\nconst execution = await sandbox.runCode('x+=1; x')\nconsole.log(execution.text)  // outputs 2\n```\n\nPython\n```py\nfrom e2b_code_interpreter import Sandbox\n\nwith Sandbox() as sandbox:\n    sandbox.run_code(\"x = 1\")\n    execution = sandbox.run_code(\"x+=1; x\")\n    print(execution.text)  # outputs 2\n```\n\n### 4. Check docs\nVisit [E2B documentation](https://e2b.dev/docs).\n\n### 5. E2B cookbook\nVisit our [Cookbook](https://github.com/e2b-dev/e2b-cookbook/tree/main) to get inspired by examples with different LLMs and AI frameworks.\n","funding_links":[],"categories":["MDX","HarmonyOS","HTML","Python","🤖 AI \u0026 Machine Learning","TypeScript","[↑](#table-of-contents)Tools \u003ca name=\"tools\"\u003e\u003c/a\u003e","ai","Learning","🚀 AI Tools for Vim, Neovim, and Terminal","**4\\. In-Depth Platform Profiles**","Runtime","AI Infrastructure \u0026 Compute","Agent Integration \u0026 Deployment Tools","Agent Categories","Agent Runtime Infrastructure","3）参考实现与开源工具（GitHub）","Cloud \u0026 DevOps","⚙️ Agent Operations"],"sub_categories":["Windows Manager","Execution Sandboxing for Agent Code","Repositories","**4.1. e2b: The AI Agent Sandbox Runtime**","Sandbox","Cloud-native Agent Platforms \u0026 Managed Stacks","AI Agent Deployment","\u003ca name=\"Unclassified\"\u003e\u003c/a\u003eUnclassified","Codex Resources","沙箱、可观测与评测","🚀 Deployment"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2FE2B","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe2b-dev%2FE2B","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2FE2B/lists"}