{"id":13455986,"url":"https://github.com/e2b-dev/code-interpreter","last_synced_at":"2025-05-13T17:04:30.607Z","repository":{"id":227160355,"uuid":"770633006","full_name":"e2b-dev/code-interpreter","owner":"e2b-dev","description":"Python \u0026 JS/TS SDK for running AI-generated code/code interpreting in your AI app ","archived":false,"fork":false,"pushed_at":"2025-05-01T09:34:41.000Z","size":1660,"stargazers_count":1705,"open_issues_count":12,"forks_count":137,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-05-01T10:33:26.812Z","etag":null,"topics":["ai","ai-data-analysis","anthropic","code-interpreter","cohere","gpt","javascript","jupyter","jupyter-notebook","llm","openai","python","typescript"],"latest_commit_sha":null,"homepage":"https://e2b.dev","language":"MDX","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":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-11T22:08:25.000Z","updated_at":"2025-04-30T18:34:56.000Z","dependencies_parsed_at":"2024-04-20T15:39:45.909Z","dependency_job_id":"5534de27-6fcb-409f-9634-141d625bf8e6","html_url":"https://github.com/e2b-dev/code-interpreter","commit_stats":{"total_commits":163,"total_committers":7,"mean_commits":"23.285714285714285","dds":"0.44171779141104295","last_synced_commit":"a9e1639136f2c0e03f9a931a620823bc57480e3f"},"previous_names":["e2b-dev/code-interpreter"],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fcode-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fcode-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fcode-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e2b-dev%2Fcode-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e2b-dev","download_url":"https://codeload.github.com/e2b-dev/code-interpreter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990458,"owners_count":21995773,"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":["ai","ai-data-analysis","anthropic","code-interpreter","cohere","gpt","javascript","jupyter","jupyter-notebook","llm","openai","python","typescript"],"created_at":"2024-07-31T08:01:14.426Z","updated_at":"2025-05-13T17:04:30.584Z","avatar_url":"https://github.com/e2b-dev.png","language":"MDX","readme":"\u003c!-- \u003cp align=\"center\"\u003e\n  \u003cimg width=\"100\" src=\"https://raw.githubusercontent.com/e2b-dev/E2B/refs/heads/main/readme-assets/logo-circle.png\" alt=\"e2b logo\"\u003e\n\u003c/p\u003e --\u003e\n\n![E2B Code Interpreter Preview](/readme-assets/e2b-code-interpreter-light.png#gh-light-mode-only)\n![E2B Code Interpreter Preview](/readme-assets/e2b-code-interpreter-dark.png#gh-dark-mode-only)\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 run to 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## 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 sbx = await Sandbox.create()\nawait sbx.runCode('x = 1')\n\nconst execution = await sbx.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":["What is E2B?","Python","MDX","typescript","NLP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2Fcode-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe2b-dev%2Fcode-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe2b-dev%2Fcode-interpreter/lists"}