ai-setup 6 min read

Freestyle – Sandboxes for Coding Agents

Freestyle gives AI coding agents their own Linux VMs with git-backed persistence, sub-second provisioning, and GitHub sync. Open-source option available.

By
Share: X in
Freestyle product thumbnail

TL;DR

TL;DR: Freestyle provisions real Linux VMs for AI coding agents in under 600ms, with git-backed persistence, instant clone/hibernate, and GitHub sync built in. Adorable brings the same idea to an open-source browser-based AI app builder.

What Is Freestyle?

Freestyle is a cloud VM platform purpose-built for running AI coding agents at scale. Each agent gets a persistent Linux VM with a real filesystem, git history, and network access — not a container or a toy sandbox.

The key pitch: real Linux VMs that provision in under 600ms from API request to ready machine, with git-backed persistence so agents never lose state between sessions.

Two related products under the Freestyle umbrella:

  • Freestyle — the VM platform for AI agents (this post focuses on it)
  • Adorable — an open-source AI app builder that runs on Freestyle VMs (MIT-licensed, 776 stars on GitHub)

The original HN launch was titled “Launch HN: Freestyle – Sandboxes for Coding Agents” and hit 322 points.

Source and Accuracy Notes

⚠️ This section is MANDATORY. All links must be verified from actual source, not guessed.

Setup Workflow

Step 1: Get an Account

Sign up at freestyle.sh. The platform offers API access with VM provisioning in under 600ms.

Step 2: Provision a VM via API

curl -X POST https://api.freestyle.sh/v1/vms \
  -H "Authorization: Bearer $FREESTYLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"region": "us-east-1", "size": "standard"}'

VMs provision synchronously — the API call returns a ready machine.

Step 3: Connect GitHub

Configure webhooks per repository in the Freestyle dashboard. Filter by branch, path, or event type. The sync is bidirectional between Freestyle and GitHub.

Step 4: Give an Agent a VM

Each agent gets a real working tree backed by Freestyle Git. Clone a running VM without pausing it — full copies in milliseconds. Hibernate and resume exactly where you left off, paying nothing while paused.

Adorable – Open-Source Alternative

If you want the same agent VM concept but self-hosted or open-source, check Adorable:

git clone https://github.com/freestyle-sh/adorable
cd adorable
cp .env.example .env.local  # add your API keys
npm install
npm run dev

Adorable is an open-source AI app builder (MIT license). Describe what you want in natural language and it builds the app in real time inside a Freestyle VM, complete with live preview and terminal. Projects are backed by git repositories with full conversation history preserved.

Tech stack: Next.js (App Router, TypeScript, Turbopack), Vercel AI SDK with OpenAI and Anthropic support, assistant-ui for chat, Tailwind CSS + shadcn/ui.

Deeper Analysis

Why Freestyle Over Containers?

Standard container sandboxes have fixed filesystems, no real git history per agent, and limited snapshot semantics. Freestyle’s differentiation:

  • Sub-600ms provisioning — not cold-start VMs, but pre-initialized VMs ready in under a second
  • Freestyle Git — every agent gets branchable filesystem with commits, diffs, rollback, and review built in
  • No pause tax — hibernate a VM, pay nothing; resume exactly where you left off
  • Instant clone — clone a running VM without pausing it, useful for branching experiments

Pricing

Freestyle is a commercial SaaS. The HN launch thread and docs indicate a free tier for development, with paid plans for production agent workloads. Check freestyle.sh/pricing for current rates.

How It Compares

| Feature | Freestyle | Docker Containers | cloud IDE VMs | |---|---|---|---| | Provisioning speed | Under 600ms | Seconds | Minutes | | Git-backed persistence | Built-in (Freestyle Git) | Via volume mounts | Via sync services | | Instant clone | Yes | Manual | Manual | | Hibernate / resume | Yes | No (must commit) | Limited | | Agent-scale pricing | Per-VM | Per-container | Per-user |

Practical Evaluation Checklist

  • [ ] VM provisions in under 1 second from API call
  • [ ] Agent state persists across sessions via Freestyle Git
  • [ ] VM can be cloned without downtime
  • [ ] Hibernate/resume works without losing state
  • [ ] GitHub sync is bidirectional and filterable
  • [ ] Adorable runs locally with npm run dev

Security Notes

  • Freestyle VMs are real Linux machines with network access — agents can make outbound HTTP requests, clone repos, run scripts
  • API keys are required for VM provisioning; rotate them regularly
  • Freestyle Git stores repository data on their infrastructure; review their data handling policy if self-hosting is required
  • For production use, consider network policies and egress filtering for agent VMs

FAQ

Q: How is Freestyle different from GitHub Codespaces or Replit? A: Codespaces and Replit are human-facing IDE environments. Freestyle is agent-first — VMs are designed to be operated programmatically, with git persistence and instant provisioning as first-class features for AI workflows.

Q: Can I self-host Freestyle? A: Freestyle itself is a SaaS. The open-source alternative is Adorable (github.com/freestyle-sh/adorable), which you can run on your own infrastructure and connect to Freestyle VMs or other sandbox backends.

Q: What languages and tools are pre-installed in the VMs? A: The base image includes a standard Linux development environment. Specific toolchain versions depend on the image variant you select at provisioning time.

Q: Does Freestyle support GPU VMs? A: The core platform targets CPU workloads for coding agents. GPU support may be available on higher-tier plans — check the product docs for current capabilities.

Conclusion

Freestyle solves the state persistence and instant provisioning problem for AI coding agents. Each agent gets a real Linux VM with git history, not a container with a fixed filesystem. Adorable brings the same model to an open-source browser-based app builder (776 stars, MIT) for teams that want to self-host or extend the platform.

If you’re building agentic coding tools and containers aren’t cutting it, Freestyle is worth evaluating. The sub-second VM provisioning alone makes it architecturally distinct from every container-as-a-service offering.