Skip to content

A secure service for running untrusted code inside isolated Docker containers via a simple HTTP API

License

Notifications You must be signed in to change notification settings

ToolKitHub/rce-engine

Repository files navigation

rce-engine

rce-engine is a secure service for running untrusted code inside isolated Docker containers via a simple HTTP API. See supported languages

View full documentation

Why Use rce-engine?

  • 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

Quick Start

Requirements:

  • Ubuntu 22.04+
  • Docker installed

Installation

For installation instructions, see:

Basic Usage

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": ""
}

Documentation

License

See License

About

A secure service for running untrusted code inside isolated Docker containers via a simple HTTP API

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •