
Deploy kosa8 code runner
Run AI-written code in sealed kosa8 microVM sandboxes via HTTP
railway-kosa8
Just deployed
Deploy and Host kosa8 code runner on Railway
kosa8 code runner is a small HTTP API your AI agents call to run code they wrote. Each request runs in a fresh kosa8 microVM sandbox with its own Linux kernel, and the sandbox is deleted afterwards, so untrusted or AI-written code never runs inside your Railway project, its variables or its network.
About Hosting kosa8 code runner
The service is one Node.js file with no dependencies. Railway builds it from the kosa8ai/railway-kosa8 repository, gives it a public HTTPS domain and checks /health before each deploy goes live. You paste a kosa8 Cloud API key (free Starter account at app.kosa8.com, no card) and Railway generates RUNNER_TOKEN, the bearer token callers send. POST /run with code and a language; the answer is the output, exit code and files from the sandbox. The page at / lets you try it in a browser.
Common Use Cases
- Run code written by an AI coding agent or chat assistant without trusting it
- Give LLM tool calls a safe Python, Node or shell interpreter
- Grade or test user-submitted code in an isolated sandbox
Dependencies for kosa8 code runner Hosting
- A kosa8 Cloud API key (KOSA8_API_KEY)
- Node.js 20 or later (Railway provides it)
Implementation Details
curl -s https://YOUR-SERVICE.up.railway.app/run \
-H "Authorization: Bearer $RUNNER_TOKEN" -H "Content-Type: application/json" \
-d '{"code": "print(2 + 2)", "language": "python"}'
Why Deploy kosa8 code runner on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying kosa8 code runner on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
railway-kosa8
kosa8ai/railway-kosa8KOSA8_API_KEY
Your kosa8 Cloud API key: app.kosa8.com, API keys (Starter is free, no card)

