For Humans
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.Run a function in the cloud
The simplest way to run code on Beam is to add the 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.
@function decorator to any Python function. Save this to app.py:app.py
Deploy a web endpoint
To turn your code into a live web API, swap Deploy it to the cloud:
@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.@endpointturns your function into a real, live web API that runs in the cloud.
app.py
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 sameapp.py examples above: