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

# API Overview

Beam exposes several APIs for different workflows:

| API | Base URL | Use |
| - | - | - |
| [Workspace REST](https://docs.beam.cloud/v2/reference/platform-api.md) | `https://app.beam.cloud/api/v1` | Manage apps, databases, deployments, tasks, and observability |
| Gateway HTTP | `https://app.beam.cloud/api/v1/gateway` | Low-level gateway, sandbox, image, volume, and disk operations |
| [Hosted inference](https://docs.beam.cloud/v2/endpoint/hosted-models.md) | `https://app.beam.cloud/v1` | Call models from the endpoint catalog |
| Deployed application | URL returned by deployment | Call your own endpoint, queue, or web service |

Send `Authorization: Bearer <token>` for authenticated operations. Public application URLs and public model discovery are exceptions; never assume a newly exposed sandbox or container URL is protected by workspace authentication. See [authentication](https://docs.beam.cloud/v2/getting-started/authentication.md) and each workload's authorization option.

Check the operation's response fields as well as HTTP status. Some gateway operations report `ok: false` inside a successful HTTP response. The [workspace API guide](https://docs.beam.cloud/v2/reference/platform-api.md#handle-errors-at-both-layers) explains the distinction.


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