Full Linux VMs that start in under a second, pause and resume instantly, and can be forked mid-execution. Built for AI agents, development environments, and browser automation at scale.
import { freestyle } from "freestyle-sandboxes";
import { VmNodeJs } from "@freestyle-sh/with-nodejs";
import { VmPython } from "@freestyle-sh/with-python";
const { vm } = await freestyle.vms.create({
with: {
js: new VmNodeJs(),
python: new VmPython(),
},
});
// Execute code in any language
await vm.js.runCode(`console.log("Hello!")`);
await vm.python.runCode(`print("Hello!")`);
// Fork the VM to explore different paths
const { vm: forked } = await vm.fork();Many sandbox platforms restrict what you can run. Freestyle VMs are full Linux environments with low-level access: SSH, systemd, multiple users, and configurable networking.
Multi-tenant Git hosting designed for applications managing code on behalf of users. Create repos programmatically, control access with fine-grained permissions, and trigger deployments on push.
Manage thousands of repositories across users and organizations without infrastructure overhead.
Create identities for CI/CD, team members, or end users with granular access control.
Bidirectional sync with GitHub repositories. Maintain code on both platforms automatically.
Call webhooks or deploy automatically when code is pushed to specific branches.
import { freestyle } from "freestyle-sandboxes";
// Create a new repository
const { repo, repoId } = await freestyle.git.repos.create();
// Set up a deployment trigger
await repo.triggers.create({
trigger: {
event: "push",
branches: ["main"],
globs: ["src/**"]
},
action: {
action: "webhook",
endpoint: "https://api.example.com/deploy"
}
});
// Create an identity with write access
const { identity } = await freestyle.identities.create();
await identity.permissions.git.grant({
repoId,
permission: "write"
});
// Generate a token for cloning
const { token } = await identity.tokens.create();
console.log(`git clone https://x-access-token:${token}@git.freestyle.sh/${repoId}`);Deploy Node.js applications with automatic scaling. Built for platforms that deploy on behalf of users—AI coding assistants, app builders, and tools that spin up preview environments on demand.
From API call to live production URL in under one second. No containers—we cache your dependencies across deploys.
Point your customers' domains at Freestyle, we provision SSL automatically. Wildcard certs for preview deploys included.
Auto-detects Next.js, Vite, Expo, and more. TypeScript works out of the box—no compile step needed.
Timeouts based on last TCP packet, not HTTP request. WebSockets stay alive as long as you ping—no workarounds needed.
import { freestyle } from "freestyle-sandboxes";
// Deploy from a Git repository
const { deployment, domains } = await freestyle.serverless.deployments.create({
repo: "https://github.com/user/repo",
domains: ["app.example.com"],
build: true
});
// Or deploy raw code with dependencies
const { deployment } = await freestyle.serverless.deployments.create({
code: `
import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => c.text("Hello!"));
app.fire();
`,
nodeModules: { hono: "4.11.1" }
});import { freestyle } from "freestyle-sandboxes";
const { result, logs } = await freestyle.serverless.runs.create({
code: `
import { z } from 'zod';
const User = z.object({
name: z.string(),
email: z.string().email()
});
export default () => {
return User.parse({
name: "Alice",
email: "[email protected]"
});
};
`,
config: {
nodeModules: { zod: "3.22.4" },
timeout: 3000
}
});Send code, get results. No deployment, no HTTP server—cold starts under 10ms, median execution just 84ms total. Pay only for the milliseconds your code actually runs.
API-first design means you can automate everything. No CLI required, no dashboard clicking—just code.
Best-in-class TypeScript SDK with full type safety. Strong-typed operations with discoverable APIs.
Connect your AI to Freestyle in minutes. Tools for listing files, executing commands, and more.
Control VMs from the client with access tokens. Granular permissions without server hops.
These APIs started as our internal infrastructure. We use them every day.
Join platforms building the next generation of AI-powered development. Deploy your first app in minutes.

