About
The Python Code Sandbox is a robust server designed to execute Python code in secure, isolated Docker containers. It offers both one-shot ephemeral runs for quick scripts and persistent sessions for multi-step tasks, ensuring a clean environment every time. With automatic on-the-fly pip dependency installation and efficient caching, users can rapidly test and run code requiring various libraries. Enhanced security features like controlled resource limits, non-root execution, and automatic file and image retrieval make it an ideal solution for safely running untrusted or experimental Python code, particularly when integrated with AI agents or desktop applications.