Skip to main content
Run your first function on Beam in a few minutes. Follow For Humans if you’re setting things up by hand, or For Agents if you’re a coding agent working on a user’s behalf.

For Humans

1

Set up

Create a free account at platform.beam.cloud — you’ll get $30 in free credit. Copy your token from Settings → API Keys, then install the SDK and authenticate:
This saves your credentials to ~/.beam/config.ini — without them, the next command will stop and prompt you instead of running your code. See Installation for Homebrew, Windows, and the TypeScript SDK.
2

Run a function in the cloud

The simplest way to run code on Beam is to add the @function decorator to any Python function. Save this to app.py:
app.py
Run it like any other Python file:
Beam syncs your code, launches a container, runs the function, and streams the result back to your shell:
The container spins up in seconds, runs your code, and shuts itself down. No idle costs, no infrastructure to clean up.
3

Deploy a web endpoint

To turn your code into a live web API, swap @function for @endpoint. We’ll include numpy in the image to show how easily you can add Python packages.
  • Image() defines your container environment. You can add Python packages, system dependencies, or even custom Dockerfiles.
  • @endpoint turns your function into a real, live web API that runs in the cloud.
app.py
Deploy it to the cloud:
4

Call the API

When the deploy finishes, Beam prints your endpoint URL along with a ready-to-run curl command. Replace YOUR_TOKEN with your token and use the URL from your deploy output:
Either way, you’ll get back:

For Agents

For coding agents setting up Beam on a user’s behalf. There’s no programmatic sign-up: ask the user for a token from Settings → API Keys. Everything else is non-interactive — using the same app.py examples above:
The docs are machine-readable: fetch llms.txt for an index of every page, append .md to any docs URL for raw Markdown, or connect the docs MCP server at https://docs.beam.cloud/mcp. See Using Beam Docs with AI Tools.

What Next?

Here are some other things you can try: