rce-engine is a secure service for running untrusted code inside isolated Docker containers via a simple HTTP API. See supported languages
- Security First: Run untrusted code safely in isolated containers
- Language Support: Execute code in 41 programming languages
- Simple API: Easy integration with a straightforward REST API
- Fast Execution: Optimized container startup (250-2200ms)
- Resource Control: Configure memory, CPU, and execution time limits
Requirements:
- Ubuntu 22.04+
- Docker installed
For installation instructions, see:
Run a Python program:
curl --request POST \
--header 'X-Access-Token: your-token-here' \
--header 'Content-Type: application/json' \
--data '{
"image": "toolkithub/python:latest",
"payload": {
"language": "python",
"files": [{"name": "main.py", "content": "print(\"Hello world!\")"}]
}
}' \
--url 'http://localhost:8080/run'
Response:
{
"stdout": "Hello world!\n",
"stderr": "",
"error": ""
}
See License