Launch HN: Freestyle – Sandboxes for Coding Agents
Sandboxes for
Coding Agents
1// Like Lovable, Bolt, V02import{ freestyle,VmSpec}from"freestyle-sandboxes";3import{VmBun}from"@freestyle-sh/with-bun";4import{VmDevServer}from"@freestyle-sh/with-dev-server";5
6// Create repo from template7const{ repoId }=await freestyle.git.repos.create({...});8
9const{ vm }=await freestyle.vms.create({10with:{11 devServer:newVmDevServer({12 devCommand:"bun run dev",13 runtime:newVmBun(),14 repo: repoId
15}),16},17});1// Like Devin, Cursor Agent2import{ freestyle,VmSpec}from"freestyle-sandboxes";3import{VmBun}from"@freestyle-sh/with-bun";4
5const{ vm }=await freestyle.vms.create({6 git:{7 repos:[8{ repo:"https://github.com/user/repo.git"},9]10}11});12
13const{ forks }=await vm.fork({ count:3});14
15awaitPromise.all([16ai(forks[0],"Build the API endpoints"),17ai(forks[1],"Build the frontend UI"),18ai(forks[2],"Write the test suite"),19]);1// Like Code Rabbit, Greptile2import{ freestyle }from"freestyle-sandboxes";3import{VmBun}from"@freestyle-sh/with-bun";4
5const{ vm }=await freestyle.vms.create({6 git:{7 repos:[{ repo: repoUrl, rev: branchRev }],8},9});10
11const{ stdout: lint }=await vm.exec("bun run lint");12const{ stdout: test }=await vm.exec("bun test");13const review =awaitai(vm,"Review the diff for bugs");14
15await github.pulls.createReview({16 body: review,17 event: test.includes("FAIL")?"REQUEST_CHANGES":"APPROVE",18});1// Like OpenClaw, Claude, Cowork2import{ freestyle }from"freestyle-sandboxes";3
4const{ vm }=await freestyle.vms.create({5 persistence:{ type:"persistent"},6// Pauses after 60s idle — $0 cost, resumes on next exec7 idleTimeoutSeconds:60,8});9
10while(true){11const userMessage =awaitgetNextMessage();12const result =awaitai(vm, userMessage);13awaitrespond(result);14}Agent Scale Infrastructure
Sandboxes made for running tens of thousands of agents
Instant Startup
VMs provision in under 700ms from API request to ready machine.
Live Forking
Clone a running VM without pausing it — get full copies in milliseconds.
Pause & Resume
Hibernate VMs and resume exactly where you left off — pay nothing while paused.
Manage Agent Code
Git repos for your agents.
Granular Webhooks
Configure webhooks per repo, filter by branch, path, or event type.
Sync with GitHub
Bidirectional sync between Freestyle and GitHub repositories.
Deploy from Git
Push to deploy with Freestyle Deployments or clone into a VM.
The Most Powerful Sandboxes
Not containers. Full Linux VMs with real root access.
Nested Virtualization
Run VMs inside VMs, Docker, or any virtualization stack your agents need. Full KVM support.
Users, Groups, Services
Sealed Linux users, systemd services and groups; multi-user isolation inside every VM.
Full Networking Stack
The full Linux networking stack with real root access.