> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beam.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Beam CLI, sign in, and connect coding agents to the Beam MCP server with `curl -fsSL https://www.beam.cloud/install | sh`. To also create a VM, run `curl -fsSL https://www.beam.cloud/install | sh -s -- --vm`.
> VMs are persistent Linux machines without GPUs. Defaults: 4 CPUs, 8 GiB of RAM, a 50 GiB disk, Ubuntu 24.04, and a browser desktop. A running VM accrues usage until you stop, pause, or remove it, or until an idle timeout puts it to sleep.
> Stopping a VM keeps its disk and discards RAM and processes. Pausing keeps both, and resuming restores them. To pause after 5 idle minutes and wake on access, run `beam vm update NAME --ttl 300 --idle-action pause --auto-resume`.
> Core VM commands: `beam vm new NAME`, `beam vm ssh NAME`, `beam vm sync NAME ./dir`, `beam vm exec NAME -- CMD`, `beam vm expose NAME PORT --protected`, `beam vm fork NAME NEW_NAME`, `beam vm pause NAME`, `beam vm stop NAME`, `beam vm rm NAME`.
> For GPUs, use a sandbox or a deployed endpoint. Sandboxes are disposable environments that boot in seconds and fork from snapshots.
> Current rates are at https://www.beam.cloud/pricing.

# Set Up Coding Agents

> Connect your coding agent to Beam, then create its first VM

## Get Started

```bash theme={null}
curl -fsSL https://www.beam.cloud/install | sh
```

This installs or upgrades the CLI, signs you in through the browser, installs the Beam skill, and registers the Beam MCP server with each supported agent it finds. It doesn't create any resources.

Restart your agent after setup. Cursor, Claude Code, Codex, Windsurf, and Claude Desktop are supported.

## Create a First VM

To also create a [VM](https://docs.beam.cloud/v2/vm/overview.md) for your agent, add `--vm`:

```bash theme={null}
curl -fsSL https://www.beam.cloud/install | sh -s -- --vm
```

Setup checks credits, asks before creating a VM with 4 CPUs, 8 GiB of RAM, a 50 GiB disk, and a browser desktop, and then verifies that commands run in it. If funding is needed, complete checkout in the browser; setup resumes when credits arrive. Running the command again resumes the same VM.

Add `--no-desktop` to skip the desktop, `--name NAME` to name the VM, or `--yes` to approve creation without a prompt. With the CLI already installed, `beam setup vm` does the same.

Other starting points use the same `sh -s --` form:

| Starting point | Option |
| - | - |
| CLI and agent tools only | Default |
| Virtual machine | `--vm` |
| Sandbox | `--sandboxes` |
| Inference endpoint | `--inference` |
| Function | `--functions` |

## Configure an Existing Installation

```bash theme={null}
beam login
beam setup agent --client cursor --client claude-code
beam mcp status
```

Omit `--client` to detect installed clients. Use `--context NAME` for another workspace profile.

For remote clients, connect directly with [OAuth](https://docs.beam.cloud/v2/operations/mcp.md#connect-with-oauth).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.