OnlineCompiler.io is a code execution API. You send source code and a compiler id, and get the output back from a fresh sandbox with no network, 512 MB of memory by default (up to 2 GB on the Pro and Business plans) and a 30 second limit. It runs 46 languages, can judge a program against test cases, and is also available as an MCP server, a WebSocket, an embeddable editor, and Judge0-, Piston- and Jobe-compatible endpoints.
Free up to 100,000 runs a month, commercial use included, no credit card. Get a key at https://api.onlinecompiler.io/compilers/api-keys/ .
curl -X POST https://api.onlinecompiler.io/api/run-code-sync/ \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"compiler": "python-3.14", "code": "print(1 + 1)"}'| Repository | What it is |
|---|---|
| onlinecompiler-mcp | The MCP server, for Claude, ChatGPT, Gemini CLI, Cursor, Codex and others |
| onlinecompiler-python | The Python client: pip install onlinecompiler |
| onlinecompiler-node | The Node client: npm install onlinecompiler |
| react-code-editor | A React code editor with a Run button |
| online-judge-starter | A LeetCode-style practice site in Next.js |
| classroom-autograder | A GitHub Classroom autograding replacement |