/framefields:framefields-cloudfrom Framefields
Renders framefields projects on cloud GPUs or self-hosted workers. Handles cost planning, multi-GPU film splitting, project setup (push, lockfile, pinned assets, private repos), and cloud render error codes.
Ships in Framefields. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The cloud renders the pushed commit of a project on framefields' GPUs and can split a long film across several. Local rendering, checks and named renders in framefields.json are in framefields-render; project setup is in framefields.
The worker clones the repo, installs from the lockfile, fetches assets and calls the render's export. So:
packageManager. The worker renders with the project's own framefields version (2.11+ for split renders, 2.12+ for named renders). bun lockfiles can't be installed by the worker.framefields assets add (preferred), tracked in Git LFS and pushed, or committed. Other .gitignored files don't exist there.import.meta.url, never process.cwd(). Nothing may write into node_modules while rendering.npx framefields check <name> runs the same import locally; run it before every cloud render.FRAMEFIELDS_API_KEY (https://framefields.dev/dashboard/keys), the same key as the AI gateway. Ask the user to set it in the environment; never print, write or embed it.Pinned assets: the CLI and renderCloud upload any the bucket lacks and sign reads for remotes without a publicUrl (24 h; keys stay local). Workers download and cache them by hash; R2 downloads are free, unlike LFS bandwidth. Dashboard renders have nobody to sign, so they only read remotes with a publicUrl.
Run from the project folder (where framefields.json and package.json are; in a monorepo that folder is sent as the workdir).
npx framefields render film --cloud --plan # workers, time, estimated cost; renders nothing
npx framefields render film --cloud # render, then download to the render's output
npx framefields render --cloud # the only named render
npx framefields render src/film.ts --cloud --export buildFilm --workers auto # a module, no manifest
--workers <n|auto>, --max-workers <n>, --codec h264|vp9, --quality, --select, --output, --export, --json (final status as JSON).--workers defaults to the render's workers, else 1. auto measures frame cost on one worker, then adds workers only while they stay efficient: a 5-minute film stays on one, a 3-hour film spreads to --max-workers (API cap 10).--plan before a long or expensive render. It prints e.g. Plan: 4 workers, 1 h 50 min of render work, ready in about 35 min, estimated $1.20.probing, rendering N chunks and the audio, stitching, Done in …: <file>, <GPU seconds>, <cost>.), with progress and cost so far at most every 10 s. Run it in the background and let it finish; Ctrl-C cancels (used GPU time is charged).No GPU needed locally:
import { CloudRenderError, renderCloud } from "framefields/cloud";
try {
const result = await renderCloud({
render: "film", // or { entry: "src/film.ts", export: "buildFilm", workers: "auto" }
outputPath: "output/film.mp4",
onProgress: (s) => console.log(s.status, s.progress.frames, s.progress.totalFrames, s.costUsd),
// dryRun: true // plan only: result.plan, result.estimateUsd
});
console.log(result.filePath, result.gpuSeconds, result.costUsd);
} catch (err) {
if (err instanceof CloudRenderError) console.error(err.code, err.message);
else throw err;
}
Options override the named render's; signal cancels. cloudClient({ apiKey }) exposes start, status, cancel. HTTP: POST /v1/render (source, target, render, workers, max_workers, dry_run, name, title), GET / DELETE /v1/render/:id, Authorization: Bearer <key>.
insufficient_credits: the user adds funds at https://framefields.dev/dashboard/billing. Don't retry.entry isn't on that branch), with Plan and Render.The error carries the worker's code. Fix the project, commit, push, render again.
| Code | Fix |
|---|---|
REPO_NOT_FOUND, GIT_AUTH_FAILED | Connect GitHub (Settings → Connections) with access to this repo. |
REF_NOT_FOUND, COMMIT_MISMATCH | git push. |
LOCKFILE_MISSING, INSTALL_FAILED | Commit a lockfile that installs cleanly. |
ENTRY_NOT_FOUND, EXPORT_NOT_FOUND, EXPORT_INVALID | Fix entry/export; framefields check <name>. |
COMPOSITION_BUILD_FAILED, EXPORT_SIDE_EFFECT | The builder throws or renders/writes; framefields check reproduces it. |
ASSET_NOT_FOUND, LFS_OBJECT_MISSING, LFS_POINTER_UNRESOLVED | git lfs ls-files, git lfs push --all origin; un-ignore needed assets. |
ASSET_NOT_UPLOADED, ASSET_HASH_MISMATCH | npx framefields assets push from the machine with the right file. |
ASSET_PRIVATE, ASSET_FORBIDDEN | Dashboard render of a remote without a working publicUrl: render from the CLI or fix publicUrl. |
ASSET_MANIFEST_INVALID | npx framefields assets status shows the error. |
ENGINE_UNSUPPORTED | Upgrade framefields (2.11+) or use --workers 1. |
RENDER_TIMEOUT, RENDER_OOM | --workers auto or more workers. |
Infrastructure errors (GIT_NETWORK, RENDER_STALLED, a lost worker) are retried by the API, and a straggling chunk gets a backup worker.
A stitched video with a jump at a chunk seam means a stateful effect reads wall-clock time; keep effects deterministic in the frame number.
The same worker runs on your own GPU (Docker, RunPod pod or serverless): it renders a pushed commit with the rules above and uploads the result. A failed job returns { code, hint, retryable }; resubmit unchanged only when retryable is true. Job format: https://framefields.dev/docs/guides/render-service/
To split a render yourself, see Splitting a long render in framefields-render.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gatewai-dev/framefields --plugin framefields7 skills in this plugin
/framefieldsStart a new framefields video project, or add framefields to an existing Node.js project. Use when the user wants to make a video with framefields and the project has no framefields setup yet, or asks how to install framefields, scaffold a composition and render script, get from an empty folder to a first MP4, store footage (asset buckets, Git LFS), generate images, video, music or voice for a film with AI models (`ai` from framefields, the framefields AI gateway), or add ready-made components (pointers, captions, title cards, device frames …) and library media (SFX, HDRIs) with `npx framefields add` / `npx framefields library`. Hands off to framefields-compose, framefields-effects, framefields-vision, framefields-render and framefields-cloud for the details./framefields-composeDesign, structure, and animate code-first video compositions using the framefields WebGPU SDK. Use when writing or changing a framefields film — scenes and transitions, layout trees, keyframes and easing, kinetic typography, shapes and morphs, charts, blend modes and mattes, 3D scenes (cameras, lights, materials, outlines, models), physics, GPU particles, procedural VFX layers, time remapping, or audio-synchronized motion.Other plugins' skills for the same job