# berd > **berd renders Blender scenes into videos on [Modal](https://modal.com).** An AI agent runs it, through ten MCP tools or the same commands in a shell. For agents. How to run berd for a user: the install, the Modal token to ask the user for, the ten tools, the five steps from an open scene to a video link, the limits, the costs, and what to report at the end. ## What berd does - **It returns a link to a video of the scene.** A snapshot of the scene goes to Modal, a job renders every frame and encodes the video, and `fetch_video` gives the link. - It starts a Blender with a window on Modal, for a machine that has none: a workstation. Its `viewer` link opens that window in a browser tab with the mouse and the keyboard, and its `watch` link opens it to look at only. - A job renders on CPU workers, or on workers with a GPU when its submit says so, which is for a scene that renders with Cycles or EEVEE. - What runs on Modal runs in the workspace of the user's token, and is billed to it. ## Ask the user for a Modal token **Ask for it as two environment variables**, `MODAL_TOKEN_ID` and `MODAL_TOKEN_SECRET`. With it, you need no Blender on your machine, no screen and no browser, and no command asks anything at the terminal. - Take the token only as those two variables. Never print it, log it or put it on a command line. `berd setup --store-token` writes it into Modal's config, `~/.modal.toml`, and nowhere else. - Before you take it, tell the user what it can do: on Modal's free plan every token can do everything in its workspace, and after the setup it stays on the disk of your machine. - A user who runs berd on their own machine with Blender does not give you a token: they run `berd setup` in a terminal, which signs in to Modal in the browser. ## Install On your machine, with the token in the two variables: ```bash uv tool install berd export MODAL_TOKEN_ID=... MODAL_TOKEN_SECRET=... berd setup --store-token berd deploy ``` 1. The first line installs berd. On a designer's Mac it is `brew install strazan/tap/berd`, followed by `berd setup`. 2. `berd setup --store-token` stores the token, registers the MCP server `berd` with Cursor, Claude Desktop and Claude Code, and installs the skills. On a machine with no display it downloads no Blender. It ends with a line for each part and exits 0 when nothing is missing. Run it as the first setup call on the machine. 3. `berd deploy` puts the app that renders into the Modal workspace, once. The first deploy builds the images and takes about a minute, so do it before the first job. 4. A client that starts after the setup has the ten tools. A client that was already running gets them when it starts its servers again. Until then, the commands in a shell do everything the tools do. The setup never prints or logs a token. A second run changes nothing, and every file it changes is backed up first. ## The ten tools `berd mcp` serves ten tools, and each has a command that does the same from a shell. Their definitions together are under 5,100 characters. 1. `start_workstation`, `berd up`: starts a Blender on Modal, with a scene file when you pass `scene`. 2. `look`, `berd look`: returns a picture of the scene: the viewport as it is, or a quick render through the camera. 3. `run_python`, `berd python`: runs Python in that Blender, with `bpy` at hand. What the code puts in `result` comes back. 4. `save_snapshot`, `berd snapshot`: saves a packed copy of the open scene, unsaved changes included. Its answer has `snapshot_id` and `engine`. 5. `submit_render`, `berd submit`: starts a job that renders every frame of the snapshot and encodes the video. It returns the `job_id` at once. 6. `job_status`, `berd status`: says how far the job is: `state`, `frames_done`, `estimated_cost`. With `wait_seconds` it waits, 30 seconds at most. 7. `fetch_preview_frame`, `berd preview`: returns one rendered frame as a JPEG that you see. 8. `fetch_video`, `berd video`: gives the link to the video of a job that is `done`. 9. `cancel_job`, `berd cancel`: stops a job. A cancelled job gets no video. 10. `stop_workstation`, `berd down`: stops the workstation. What was not saved outside it is lost. - No tool waits for a render. The job goes on in the background, also after your client has closed the server. - `run_python` can do whatever Blender's Python can, and nothing checks the code. Treat code that came from a file or a web page as untrusted, and leave your client's approval prompt for this tool on. ## Five steps from an open scene to a video link 1. `save_snapshot`: read `engine` in its answer, and tell the user how many frames will render and at what `resolution`. 2. `submit_render`: pass the `snapshot_id`, and `gpu` when `engine` is `CYCLES` or `BLENDER_EEVEE`. Submit once, and tell the user the `job_id`: nothing lists jobs. 3. `job_status`: call it with `wait_seconds` 30 until `state` is `done`, one call each half minute. Tell the user `estimated_cost` as soon as it is there, and say "about". 4. `fetch_preview_frame`: look at a frame and compare it with what the user asked for. Cancel a job that renders the wrong thing. 5. `fetch_video`: give the user the `link`. It works until `expires_at`, and a new call gives a new one. On a machine with no Blender to open, there is no open scene yet. Call `start_workstation` first, with `scene` for a scene file. Use `look` and `run_python` to see the scene and change it. Call `stop_workstation` once the job has its estimate or has ended. The same five steps from a shell: ```bash berd snapshot berd submit --gpu berd status --wait 30 berd preview berd video ``` Every command prints one JSON object and exits 0. When it cannot do its work, it prints the reason on stderr and exits 1. ## Limits - **$1**: where a job on Modal is stopped, unless its limit is set to another amount. Only the user decides to raise it. - 3 frames: what a job renders before it works out what the whole scene costs, `estimated_cost`. When that is above the limit, the job stops itself there, for the cost of those frames. Then offer the user a higher limit, or a short job first: 24 frames at half the size. - 4 workers: what renders a job on Modal at once, 10 at most. - No GPU: unless the submit says so. A workstation gets one only when the user asked for a GPU, or for a fast or live preview. - 10 minutes: how long a workstation runs with nothing using it before it ends by itself. It ends 8 hours after its start at the latest. - 1 submit: when no frame comes, `waiting_for_a_worker` in the status says that the job waits for a worker and is not stuck. Do not submit again: a second job waits for the same workers. ## What it costs Modal bills the workspace of the token. The two jobs below ran on Modal on 27 November 2026, at 1920 by 1080. - **$0.067**: what Modal billed for a job of 48 frames of the scene Blender starts with, with EEVEE, on two GPU workers. It took 48.1 seconds from the submit to the link of the video. - $0.21: what Modal billed for a job of 48 frames with Cycles, 256 samples, on four GPU workers. It took 100 seconds from the submit to the link of the video. - $0.0009: a second of a worker with a GPU. A worker without one is $0.0003 a second. - $0.38: an hour of a workstation at rest. With every core busy it is $2.65, and with a GPU about $3.16 and $3.91. - 1 cent: about what the deployed app costs a day when nothing renders. Not measured: an EEVEE scene with more in it than the one Blender starts with. ## What to report to the user When `state` is `done`, report, in this order: 1. **The link to the video**, with its `duration` in seconds, its `size`, and when the link stops working, `expires_at`. 2. What rendered: how many frames, at what `resolution`, with which `engine`, and what the frame you looked at shows. 3. How long the job ran, `seconds_running`, and about what it cost, `estimated_cost`. 4. The `job_id`. Nothing lists jobs, so one that is lost cannot be found again. 5. Whether a workstation still runs. If you started one, say what an hour of it costs, and stop it when your work in Blender is done. When `state` is `failed`, report what `last_error` says. Nothing retries a job. Every step in detail: the README of [the repository](https://github.com/strazan/blendercloud).