---
title: "Deploy kosa8 code runner"
description: "Run AI-written code in sealed kosa8 microVM sandboxes via HTTP"
category: "AI/ML"
url: https://railway.com/deploy/kosa8-code-runner
---

# Deploy kosa8 code runner

Run AI-written code in sealed kosa8 microVM sandboxes via HTTP

**[Deploy kosa8 code runner on Railway](https://railway.com/template/kosa8-code-runner)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/kosa8-code-runner/manifest.json

- **Creator:** drvt69talati's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### railway-kosa8 https://kosa8.com/assets/mark-512.png

- **Source:** kosa8ai/railway-kosa8
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# 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

```bash
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.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/kosa8-code-runner
