> ## 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.

# Stacks

> Deploy a group of services together

A stack is an interactive canvas for deploying a group of services together. Apps in a stack share secrets, network, and configuration.

## Create and Manage a Stack

Open **Stacks** in the dashboard and add your apps. You can also use [MCP](https://docs.beam.cloud/v2/operations/mcp.md):

| Tool | Inputs | Effect |
| - | - | - |
| `list_stacks` | None | List stacks in the workspace |
| `create_stack` | `name`, optional `apps` (app names) | Create a group of apps |
| `update_stack` | `name`, optional `add` and `remove` (app names) | Change membership |
| `delete_stack` | `name` | Remove the stack; keep its apps |

For example: “Create a stack called store with store-web, store-api, and store-db.”

## Connect Services

Connect apps using [environment references](https://docs.beam.cloud/v2/hosting/references.md) or MCP's `connect_services` tool. Deleting a stack keeps its apps and data.

You can also manage stacks through the [REST API](https://docs.beam.cloud/v2/reference/platform-api.md). There is no `beam stack` CLI command.


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