Home / Tools / judge0.execute_code

Judge0 CE Code Execution Sandbox (71 Languages)

Free

Tool ID: judge0.execute_code

Execute code in an isolated sandbox across 71 languages (Python, Node.js, TypeScript, Bash, Go, Rust, C++, Java, Ruby, SQL) and return stdout, stderr, exit status, time, and memory.

Provider
judge0
Category
Developer, Security & Registries
Pricing
Free public sandbox ($0.00)
Replaces Signup
Replaces separate sandbox/runner accounts for quick code execution
Get API Key ($0.50 Free Credit) Browse All 223 Tools

Input Parameters

ParameterTypeRequiredDescription
source_codestringRequiredSource code to execute in the sandbox
languagestringOptionalLanguage name (python, javascript, typescript, bash, go, rust, cpp, c, java, ruby, sql); defaults to python if neither language nor language_id is given
language_idintegerOptionalOptional explicit Judge0 language_id (overrides language; e.g. 109=Python 3.13, 102=Node 22, 46=Bash, 107=Go 1.23)
stdinstringOptionalOptional standard input
cpu_time_limitnumberOptionalMax CPU seconds (default 5, max 15)

Call via REST API

curl -X POST https://helve.dev/v1/tools/call \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tool_id": "judge0.execute_code",
  "arguments": {
    "language": "python",
    "source_code": "print(sum(range(1, 11)))"
  }
}'

Call via MCP (call_tool)

{
  "name": "call_tool",
  "arguments": {
    "tool_id": "judge0.execute_code",
    "arguments": {
      "language": "python",
      "source_code": "print(sum(range(1, 11)))"
    }
  }
}

Related Developer, Security & Registries Tools