a year ago
developer-toolsA secure Python code execution service designed to integrate with LLMs like GPT and Claude, providing a self-hosted alternative to OpenAI's Code Interpreter. Now with MCP server.
Overview
what is CodeBox-AI?
CodeBox-AI is a secure Python code execution service that provides a self-hosted alternative to OpenAI's Code Interpreter, designed to integrate seamlessly with large language models (LLMs) like GPT and Claude.
how to use CodeBox-AI?
To use CodeBox-AI, clone the repository, install dependencies, and start the server. You can then create sessions and execute Python code via API calls.
key features of CodeBox-AI?
- Session-based Python code execution in Docker containers
- IPython kernel for rich output support
- Dynamic package installation with security controls
- State persistence between executions
- Code security validation with AST-based analysis
- Support for plotting and visualization
- Integration with the Model Context Protocol (MCP) for LLM applications
use cases of CodeBox-AI?
- Running Python scripts in a secure, isolated environment.
- Integrating with LLMs for interactive coding sessions.
- Educational purposes for teaching Python programming.
FAQ from CodeBox-AI?
- Is CodeBox-AI secure?
Yes! Code execution is containerized using Docker, ensuring isolation and security.
- Can I use it for production?
It is a prototype implementation and not intended for production use without additional security measures.
- What are the prerequisites?
You need Python 3.9+, Docker, and the uv package for installation.