AI Development Library
3.8k 2026-04-21
shroominic/codeinterpreter-api
An open-source Python library providing a LangChain-compatible implementation of the ChatGPT Code Interpreter for sandboxed code execution.
Core Features
Sandboxed Python code execution with internet access and auto package installation.
Handles `text + files` input and returns `text + files` output.
Supports advanced tasks like dataset analysis, charting, and image manipulation.
Maintains conversation memory for contextual responses.
Offers local execution for development and CodeBox API for production scaling.
Quick Start
pip install "codeinterpreterapi[all]"Detailed Introduction
The Code Interpreter API is an open-source Python library that replicates the powerful code execution capabilities of ChatGPT's Code Interpreter. Built on LangChain and utilizing CodeBoxes for secure, sandboxed Python environments, it enables developers to integrate advanced functionalities like data analysis, charting, and file manipulation into their LLM applications. It supports both local development and scalable production deployments, allowing LLMs to interact with code and data dynamically.