# Quickstart

Install Freestyle and create your first VM.

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 add freestyle
```

```bash
bun add freestyle
```

```bash
npm install freestyle
```

```bash
yarn add freestyle
```

Set your API key before calling the API:

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

## Create A VM

```javascript
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](/content/docs/cli/index.html) for terminal commands.
- [Freestyle VMs](/content/docs/vms/index.html) for VM lifecycle, files, SSH, and client sessions.
- [Freestyle Git](/content/docs/git/index.html) for repository storage, API access, search, triggers, and GitHub sync.
