A code execution sandbox that compiles and runs user-submitted code in secure, isolated environments using Isolate.
We use isolate (A sandbox for securely executing untrusted programs) to execute program in isolated environment using linux feature such as CgroupV2, namespace. The current version of the isolate uses linux cgroupV2, and it highly recommended to use cgroupV2.
Currently we are only supporting these languages, we will add more in future.
- C,
- C++,
- Python
- JavaScript
- TypeScript
- Java
- Go
- Rust
- Clone the repo:
git clone https://github.com/AandALabs/CodeRunr- Add AUTH_TOKEN in .env
AUTH_TOKEN="coderunr_4a9f*******d3ef****7"- Run the docker compose to start and run the project
docker compose up -d --buildThe API will be available at http://localhost:8080.
- Docs — http://localhost:8000/docs
- Health —
GET /api/v1/health
All API endpoints except docs, OpenAPI, and health require an API token.
Set AUTH_TOKEN in your .env file and send it on each protected request using either:
X-API-Key: <your-auth-token>