Agent identity
The studio is a 1Claw agent, studio. Its API key is exchanged at POST /v1/auth/agent-token for a short-lived JWT, which authenticates everything below. On a 1Claw runtime the platform injects and renews that token itself.
Frameline makes websites that play like a film as you scroll. You describe what you want; a team of agents plans the shots, generates them, films the camera moves between them, writes the words and lays them out. You approve before anything is paid for, then edit any word or position on the finished site.
The agent pays for its own generation. It holds a wallet whose key it never sees: 1Claw keeps the key in an HSM and signs only payments that fit rules a human set. Every LLM call goes through 1Claw Shroud, and the API key for the LLM provider lives in a 1Claw vault, not in this code.
The studio at /studio shows one step at a time. There is one payment, at the storyboard, and one more approval after the stills, at no extra cost.
Each role is a separate, focused LLM call with its own prompt. Their output is always treated as data and validated by code: code, not the model, bounds the number of shots, the price and every field.
| Role | Model | When | Sees | Produces |
|---|---|---|---|---|
| Director | Qwen3 Max | Always | The conversation, the film's state and allowance | The next step: which tool to call, and what to tell you |
| Picture editor | MiMo v2.6 Flash | After the stills | Every still and the shot it was meant to be | A score per still, the defect, and a fix |
| Producer | MiMo v2.6 Flash | After the pitch | Pitch, images | Brief, only the missing questions |
| Art director | MiMo v2.6 Flash | Storyboard | Brief, images, controls | Keyframe prompts, how each is made, camera moves, theme, font |
| Copywriter | Kimi K2 | When the film is approved | Brief, what each shot shows | Title, tagline, one line per shot, sections, button |
| Typographer | MiMo v2.6 Flash | While the film renders | Every still and its line | Style, title position, per-line position, size and entrance |
All four are routed by 1Claw Shroud to OpenRouter. The copywriter writes after the stills exist so it knows what is on screen; it is told never to describe the image or the making of the site. The typographer looks at each still and places text in empty space so it never covers the subject.
Briefs, images and earlier copy are untrusted input. Every prompt says so, model output is parsed as JSON and validated, and Shroud inspects the traffic.
You talk to one agent, the director, in the bar at the bottom of the studio. It runs the studio by calling the same steps the buttons call: read the brief, draft the storyboard, shoot, inspect, reshoot, film, refilm, rewrite, re-lay out, set exact words. One tool per step, and it decides which.
This is where the 1Claw guardrails earn their place. The director chooses what to spend on; it can only spend from its own 1Claw-held wallet, only to its generation provider, and only within the caps a human set. Autonomy inside hard limits.
Other AI agents can order a film with no human in the loop, paid over x402. The director then runs on autopilot: it decides everything, finishes the site, and hands back links a person can use.
POST /api/agent/films with JSON: brief (required), scenes (2 to 6 camera moves), resolution (768P or 1080P), optional type, style and images (up to 6 https URLs).402 with a standard x402 v2 challenge: exact USDC on Base, to the studio's wallet. Retry with PAYMENT-SIGNATURE (or X-PAYMENT); the studio verifies and settles it through the PayAI facilitator. Agents without x402 can send USDC and retry with X-Payment-Tx: <hash>. A 1Claw agent pays with 1claw pay, inside its own guardrails.202 with an id. Poll GET /api/agent/films/<id>: state is working, done or needs_attention, with the director's notes. To answer the director or ask for a change, POST /api/agent/films/<id>/reply with {"text": "..."}; no new payment.result holds the live site, the film mp4, the zip, a hand-off page (/f/<id>) for a person, and an edit link where they can change the words in the studio.Discovery: GET /api/agent (the service card, JSON) and /llms.txt. A retried payment never makes a second film: the same authorization returns the same order.
1Claw is the agent's identity, its keychain, its LLM gateway and its wallet. The studio holds no private key and no LLM API key.
The studio is a 1Claw agent, studio. Its API key is exchanged at POST /v1/auth/agent-token for a short-lived JWT, which authenticates everything below. On a 1Claw runtime the platform injects and renews that token itself.
The OpenRouter API key is a secret in a 1Claw vault at providers/openrouter/api-key. Shroud fetches it server-side; the app never reads it.
All LLM calls go to shroud.1claw.co with the agent's JWT and X-Shroud-Provider: openrouter. Shroud injects the provider key from the vault and screens prompts and responses. On the Pro plan this needs no 1Claw credits.
The agent's wallet, 0x9e55…343e on Base, is held by 1Claw. The app asks 1Claw to sign through /v1/agents/{id}/sign; it never holds the key. Signing a login message (personal_sign) is how it signs in to Venice.
To top up its Venice balance, the agent answers Venice's x402 payment request through /pay/prepare and /pay/sign. 1Claw checks the payee and the limits before signing a USDC transfer authorization.
Every accepted customer payment is a durable entry in the agent's 1Claw memory (namespace frameline-payments, keyed by transaction hash), encrypted at rest. It is the single record that stops a payment being used twice, and it outlives the runtime's temporary disk.
Unattended payments are allowed only to Venice's top-up address, at most $10 per payment and $15 per day. Loosening them needs a human step-up with an authenticator code. Every signature is in the 1Claw audit log.
402 Payment Required with a challenge (minimum top-up $5)./pay/prepare checks the challenge against the allowlist and caps; /pay/sign returns a signed EIP-3009 authorization.Two details found while building it: personal_sign needs the message hex-encoded ("0x" + utf8 hex), and Venice accepts the payment only when re-wrapped as an x402 v2 envelope in the X-402-Payment header. Both are handled in scripts/venice.py.
| Asset | Model on Venice | Notes |
|---|---|---|
| Keyframe | Nano Banana Pro (edit or generate) | Composed from your images and the previous still, so the subject and world stay consistent |
| Camera move | MiniMax H3 Max, image to video, 768p or 1080p | 5 seconds, starts on one still and is told to end on the next (first and last frame) |
venice-state.json before it is paid; a re-run resumes and only does what is missing. A redone still makes its neighbouring moves stale, and only those are filmed again.A single static page plus three media files. It is built from templates/scroll-site.html with the brief's theme (background, ink, muted, accent and one of four font families).
| Visitor | What plays |
|---|---|
| Desktop, mouse or trackpad | The film is scrubbed by the scrollbar, with eased inertia. Scrolling up plays it backwards. |
| Phone or tablet | A smaller encode loops on its own; the lines follow its clock. No scrubbing on touch. |
| Reduced motion or data saver | A still poster with all the lines, in normal page flow. |
film.mp4 is 1280×720 and all-intra (every frame is a keyframe), so any scroll position seeks instantly. film-mobile.mp4 is 960×540 with normal compression.DEPLOY.md for Vercel, Netlify, Cloudflare Pages or any server that serves .mp4 with range requests.On the delivered site, the Words and type panel and the preview stay in sync. Every change saves into the site and the zip.
The text layer (templates/textlayer.css and .js) is shared: the same code runs in every generated site and in the example on the home page.
outputs/sessions/. Reopening the studio in the same browser picks up exactly where it was, including a render in progress.approve: true; nothing spends from a page load.A site is priced by its length and quality, from $5 for two camera moves at 768p. It is paid once before anything is generated and covers the stills, reshoots, the film, the words and the site. The studio shows only the customer's price; generation costs stay on the server, and the price is set with a margin that covers a run's worst case.
0x9e55…343e): one ERC-20 transfer from their own wallet. Without a browser wallet, they can send from any wallet and paste the transaction hash.OWNER_WALLETS.The AI steps before payment (reading the pitch, the storyboard, rewrites and layouts) are free to try and rate limited per visitor (LLM_LIMIT_PER_HOUR, 40 by default). Signature checks and Keccak-256 are plain Python in scripts/evm.py, tested against eth-account.
The studio talks to app/server.py (Python standard library, no framework). Every POST takes JSON with a session id and returns the full session view.
POST /api/session | Start a session |
GET /api/session?session= | Session view: phase, brief, board, job |
POST /api/upload?session= | Add a reference image (raw body, up to 15 MB, 6 per session) |
POST /api/intake | Pitch to brief and the missing questions |
POST /api/answer | Answers to those questions |
POST /api/storyboard | Direct the storyboard with the controls |
POST /api/pay/challenge | Is this wallet an owner? If so, the message to sign |
POST /api/pay/owner | Owner signature: unlocks the session at no charge |
POST /api/pay/confirm | A USDC transaction hash: verified on Base, then unlocks the session |
POST /api/shoot | Shoot the keyframes (approve: true, paid sessions only) |
POST /api/redo | Reshoot one keyframe, optionally with a new prompt |
POST /api/film | Write the words and film the moves (approve: true) |
GET /api/events?session= | Live render events (SSE), replayed from the start |
POST /api/copy | Save edited words and layout; rebuilds the site and zip |
POST /api/rewrite | Copywriter rewrite with a note |
POST /api/layout | Typographer layout with a note |
POST /api/undo | Restore the words and layout before the last agent change |
POST /api/open | Open a finished film for editing (/studio?run=name) |
GET /api/prices | The customer price for each length and quality |
GET /api/status | Wallet USDC and Venice balance |
POST /api/chat | Talk to the director (text); it works in the background and the view carries the conversation |
POST /api/agent/settings | review: true makes the director ask before filming |
POST /api/agent/films | An agent orders a film (x402, see Hire it as an agent) |
GET /api/agent/films/<id> | Order status and, when done, the links |
app/server.py | Web server, sessions, detached render jobs, API |
app/static/ | Home, studio and docs pages |
scripts/intake.py | Producer: pitch to brief and questions |
scripts/director.py | Art director: storyboard, theme, Shroud client |
scripts/copywriter.py | Copywriter |
scripts/typographer.py | Typographer (looks at the stills) |
scripts/scrollsite.py | Pipeline: keyframes, film, join check, encode, site, zip |
scripts/venice.py | Venice client: wallet sign-in, top-up via 1claw pay, images, video |
scripts/x402pay.py | 1Claw agent token and signing helpers |
scripts/evm.py | Keccak-256, signer recovery and reading USDC payments on Base, in plain Python |
scripts/ledger.py | The payment record in 1Claw Agent Memory |
templates/ | Site template and the shared text layer |
configs/, outputs/ | Storyboards, runs, sessions, uploads |
ffmpeg on the path. No pip packages are needed.~/.config/1claw/agents/studio.env (ONECLAW_AGENT_ID, ONECLAW_AGENT_API_KEY), created with scripts/studio-rotate-key.py.providers/openrouter/api-key, readable by the agent.scripts/studio-pay-settings.py (needs your authenticator code), and USDC on Base in the agent's wallet.python3 app/server.py 8080, then open http://localhost:8080.The pipeline also runs from the command line: scripts/director.py writes a storyboard, scripts/scrollsite.py configs/name.json prints a quote and --yes renders it.
1Claw Cloud Runtimes run a container on Cloud Run with a public URL at {slug}.run.1claw.co. Pro includes one small or medium runtime at no charge. Frameline fits the Python template:
| Template | python (Python 3.12, the 1Claw CLI and sidecar preinstalled) |
| Preset | medium: 1 vCPU, 2 GB, enough for ffmpeg encodes |
| Agent | Bound to the existing studio agent, so the same wallet, guardrails and vault grant apply |
| Source | A git repository, cloned at start; requirements.txt is installed |
| Start | python app/server.py, listening on the port the runtime provides |
| Hosting | expose_http with a slug, set from the dashboard or the API (the CLI has no flag for it) |
requirements.txt installs imageio-ffmpeg, which ships a static ffmpeg with x264, SSIM and blur; the pipeline uses the system ffmpeg when there is one and that build otherwise. ffprobe is no longer needed.PORT and HOST; on the runtime it runs with HOST=0.0.0.0 on the port the runtime provides.ONECLAW_AGENT_ID and ONECLAW_AGENT_API_KEY (a vault-backed variable on the runtime), then the local key file, then the token the runtime injects.STUDIO_ACCESS_CODE optionally acts as an owner pass for scripts.python runtime, medium, bound to the studio agent, from that repository, with the start command HOST=0.0.0.0 python app/server.py, idle timeout 0 and the environment above.https://{slug}.run.1claw.co.