OnlineCompiler.io
ActiveHosted code-execution and judging API for 46 languages, with a fresh gVisor container per run, no network and an MCP server for agents.
- Metered unit
- per run (or per submission judged) inside a monthly plan allowance
- Free Tier · Subscription
- Idle billing
- Usage-metered
- 137 listings meter active runtime
- State kept on pause
- Nothing survives
- Resume: No session to resume; every run starts a fresh container
Overview
OnlineCompiler.io is a hosted execution and judging API from RunCode Inc., and it sits in the Judge0 and Piston market rather than the agent-computer one: send source, language and optional input, get stdout, stderr, exit code, time and memory back in one call. The security story is more explicit than most competitors: every run gets a new container under gVisor with networking off, an unprivileged user, a read-only image, a 256 MB in-memory workspace and hard process and time limits, and the docs state plainly that there is no fallback to a weaker runtime. Around the runner it adds what grading products need: per-test verdicts with hidden tests, stored problems, pytest, Jest, JUnit and xUnit suites, signed receipts and webhooks, Judge0- and Piston-compatible endpoints, and an embeddable editor. For agents there is a hosted MCP server with list_compilers, run_code, run_tests and judge_problem, plus official Python and Node.js clients. The limits are equally clear: it is hosted only, with no self-hosted option, and the company says it holds no SOC 2 or ISO 27001 certification and has published no third-party audit. Each run is short-lived, so this is a tool-call executor rather than a workspace an agent keeps.
Key capabilities
- 46 languages on current runtime versions
- Fresh gVisor container per run, deleted afterwards
- No network, non-root user, read-only image, dropped capabilities
- Per-test verdicts, hidden tests, scores and signed receipts
- Hosted MCP server with list_compilers, run_code, run_tests and judge_problem
- Judge0- and Piston-compatible endpoints
- Official Python and Node.js clients
- Embeddable editor, WebSocket streaming and signed webhooks
- 100,000 runs a month free with commercial use included
onlinecompiler.sh
curl -X POST https://api.onlinecompiler.io/api/run-code-sync/ \
-H "Authorization: $ONLINECOMPILER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"compiler": "python-3.14", "code": "print(\"Hello, World!\")"}'
# Or give an agent the same runner over MCP
claude mcp add onlinecompiler https://api.onlinecompiler.io/mcp \
--transport http --header "Authorization: Bearer $ONLINECOMPILER_API_KEY"Similar alternatives
Technical specifications
- Runtime architecture
- A fresh container per run under gVisor (runsc), deleted when the run ends
- Runtime notes
- No fallback: if gVisor is unavailable the run fails instead of starting in a weaker runtime
- Cold-start boot time
- Not published; a fresh container is created for each run
- Max vCPU
- 2 CPUs per run
- Max memory
- 512 MB by default, with memory_limit up to 2 GB on Pro and above
- Storage model
- 256 MB in-memory workspace plus 128 MB for temporary files, discarded when the run ends
- Network isolation
- Networking is disabled, so a program reaches neither the internet nor the service's own network; a test suite gets its own loopback so it can reach a server it started. Code runs as uid 65534 with every capability dropped and privilege escalation off, on a read-only language image with no setuid or device files, capped at 16 processes by default and 30 seconds, and the container is deleted afterwards.
Lifecycle & capabilities
- Filesystem persistence
- Not supported
- Memory / disk snapshot
- Not supported
- Instant forking
- Not supported
- GPU acceleration
- Not supported
- GUI desktop / VNC
- Not supported
- Mobile / cloud phone
- Not supported
- Browser automation
- Not supported
- Network egress control
- Supported
- Pause / auto-sleep
- Not supported
- MCP protocol server
- Supported
- REST API & SDKs
- Supported
- Idle billing
- Usage-metered
- State kept on pause
- Nothing survives
- Resume latency
- No session to resume; every run starts a fresh container
- Session limit
- 30 seconds per run, compile included, with 16 processes by default; monthly run allowance set by the plan
- SDKs
- Python, TypeScript
Pricing model
Official VerifiedRate read 23 Nov 2026.
Free is $0 with 100,000 runs a month, commercial use included and no card. Starter is $10 a month for 150,000 runs, Pro $49 for 1,000,000, Business $199 for 4,000,000 and Platform $499 for 10,000,000; paid plans pause at their limit rather than billing overage, and yearly billing gives two months free. Judging draws on the same allowance: the Free plan also covers 10,000 submissions judged on ten tests, with up to 32 tests per request on Free and 60 or more on paid plans. All plans include 46 languages, the REST and WebSocket APIs, the Judge0- and Piston-compatible endpoints, the widget and MCP.