What is Runner Codes?
Runner Codes is a secure execution environment for running code snippets generated by Large Language Models (LLMs) inside Firecracker microVMs. It provides strong isolation, fast boot times, and support for multiple programming languages.
Open Source: https://github.com/andrebassi/runner-codes
Why Firecracker?
Firecracker is a Virtual Machine Monitor (VMM) developed by AWS that provides:
- Strong isolation: Full VM-level isolation, not just container namespaces
- Minimal footprint: ~5MB memory overhead per microVM
- Fast startup: Boots a VM in ~125ms
- Security-first design: Built with a minimal device model and seccomp filters
Key Features
Supported Languages
See the full Languages Reference for detailed information on each language.
Quick Example
Here's a simple example of executing Python code in a Firecracker microVM:
infra.operator run --lang python --code "print('Hello from Firecracker!')"
infra.operator api --port 8080
curl -X POST http://localhost:8080/api/v1/execute \
-H "Content-Type: application/json" \
-d '{"language": "python", "code": "print(\"Hello from Firecracker!\")"}'
Output:
{
"stdout": "Hello from Firecracker!\n",
"stderr": "",
"exit_code": 0,
"load_time": "209ms",
"exec_time": "45ms"
}
Open Source
Runner Codes is fully open source under the MPL-2.0 license. The entire codebase, including the CLI, HTTP API, guest runner, and documentation, is available on GitHub. We welcome contributions, bug reports, and feature requests from the community.
GitHub: https://github.com/andrebassi/runner-codes
Next Steps
- Quickstart Guide - Get started in 5 minutes
- Architecture - Learn how it works
- CLI Reference - Command reference
- API Reference - HTTP API documentation