---
title: "Quickstart"
description: "Install Freestyle and create your first VM."
url: "/docs/quickstart"
---

Freestyle gives AI products the infrastructure to run and store code they did not write: fast Linux VMs for execution, and multi-tenant Git for storage.


## Install

```bash pnpm
pnpm add freestyle
```

```bash bun
bun add freestyle
```

```bash npm
npm install freestyle
```

```bash yarn
yarn add freestyle
```

Set your API key before calling the API:

```bash
export FREESTYLE_API_KEY="your-api-key"
```


## Create A VM

```ts
import { freestyle } from "freestyle";

const { vm } = await freestyle.vms.create();

const result = await vm.exec("echo 'hello from freestyle'");
console.log(result);
```


## Next Steps

- [Freestyle CLI](https://www.freestyle.sh/docs/cli) for terminal commands.
- [Freestyle VMs](https://www.freestyle.sh/docs/vms) for VM lifecycle, files, SSH, and client sessions.
- [Freestyle Git](https://www.freestyle.sh/docs/git) for repository storage, API access, search, triggers, and GitHub sync.
