Roll your own apps, on demand.

Just ask your agent.

Works with: Claude, ChatGPT, Gemini

docs/deploy.md says what to have ready and every step.

Handroll is an alternative to Claude's installable apps: your AI agent builds personal web apps, that install to your home screen or dock, quick and easy. Your agent writes each app over MCP, you approve it with a passkey, and the app's data lives as typed records in a database in your own Cloudflare account.

Husky Hop was made with one sentence to Claude and one approval. 12 minutes after the ask, it was on the home screen:

| 1. Ask | 2. Approve | 3. Claude builds it | 4. It is on your phone | |---|---|---|---|

Then one more sentence, and the game changed:

| 5. Ask for a change | 6. It changes | |---|---|

Husky Hop is one of nine apps on that phone, all made with Handroll. Four of the others:

| Nines | Morsel | Healthy Bitz | Corpus | |---|---|---|---| | A sudoku game | Recipes, a week's plan and the shopping list they add up to | Daily habits as quests, with awards to collect | A reading desk for articles worth keeping |

  1. Ask your agent. Connect your agent to your Handroll's MCP server and say what you want ("an app to keep links from my phone"). The agent proposes the app, then callscreate_app with its name, icon and the kinds of record it will store, each a JSON Schema.
  2. Approve with a passkey. Creating an app waits for you. The agent hands you a link (and your phone gets a push if you turned notifications on). The approval page says in plain words what the app will keep and what your phone may do with it. Only your passkey session can approve.
  3. Open the app on your phone. The agent uploads the app's HTML, CSS and JavaScript, previews the draft in its own browser and publishes it. The app gets its own subdomain. The first time you open it, you confirm with your passkey, and you can install it to your home screen.

What the platform does around the agent's files:

  • Records. Every write is checked against the kind's schema, versioned and logged. Deletes are soft and every change can be undone.
  • Approvals. Creating an app, renaming or restyling it, changing what it stores or what the phone may touch, adding to a script's grants, and (unless you turn it off) publishing a new version all wait for your yes.
  • Isolation. Each app is its own origin with a strict content security policy and a token that reaches only its own kinds. A draft is served on a separate preview origin.
  • Offline. Apps open with no signal, and writes made offline are queued and sent when the phone is back online.
  • Notifications. An app can offer Web Push, and the agent can send through it (20 a day per app).
  • Scripts. An app may have a server-side script that runs on a schedule or when records change, in a sandbox, with only the grants you approved: AI through Workers AI, and outside services through a proxy that adds keys you saved.
  • The super app. At the root of your domain: your apps, pending approvals, connected agents, everything that changed with undo, and settings.

Works, and is tested end to end:

  • Accounts, each with a username and passkeys. The first account is the admin and invites others with single-use links. Nobody sees another account's apps or records.
  • Android (Chrome) and desktop Chrome: install, offline use, the Android share target and notifications.
  • Claude (incl. Duet and Code), ChatGPT (and Codex), and Gemini, each connected as a custom connector over MCP with OAuth.
  • An agent you connect can read and change everything you keep. Approvals, soft deletes and undo limit what it can do without you.

Not there yet:

  • iPhone. Not supported. The install page shows the Add to Home Screen steps, but nothing has been tested on an iPhone, and Safari delivers push only to an app added to the Home Screen. On an iPad, an app installs from Safari with those steps; offline use and notifications have not been tested there.
  • Sharing. Each account's apps and records are its own: nothing is shared between accounts, and there is no sign-up without an invite.
  • Other agents. The server speaks standard MCP over Streamable HTTP with OAuth, so other clients may work too.
  • Install UX. Installing progressive web apps on iOS or Android's in-app browser leaves a lot to be desired.
  • Additional Grants Apps capable of using Location, Camera, Microphone, and other web/device APIs.
  • DB Isolation. A provisioned D1 per account.

Handroll runs as one Cloudflare Worker with D1, KV, R2, Workers AI and Dynamic Workers, on your own Cloudflare account and domain. The button at the top of this page sets it up, and docs/deploy.md is the guide. In short, you need:

- The Workers Paid plan ($5/month). - A custom domain on the same Cloudflare account , with nothing else on it that you want to keep. - Two DNS records on that domain , added before you press the button. The deploy stops without them and prints the commands:

cf dns records create --zone example.com --body '{"type":"AAAA","name":"example.com","content":"100::","proxied":true}'
cf dns records create --zone example.com --body '{"type":"AAAA","name":"*.example.com","content":"100::","proxied":true}'

The button asks for two things: a setup secret of your choosing, and your domain. After the deploy you create your passkey at https://<your domain>/signin and connect your agent.

The Workers Paid plan is $5/month, and for one person Handroll stays inside what that includes. Each app with a script counts as one Dynamic Worker on each day its script runs. Workers AI is charged by use, only when a script you allowed calls a model, and Handroll sets conservative limits by default.

Your Handroll's MCP server is at https://<your domain>/mcp (Streamable HTTP, OAuth). The super app's "Connect an agent" card has an Add Handroll to Claude button, which opens Claude's Add custom connector box with that address filled in.

Gemini and ChatGPT take the same address as a custom connector, added on their websites rather than in their phone apps: in Gemini under Settings → Connected Apps → Custom apps (a personal Google account is needed), in ChatGPT at chatgpt.com/plugins under + → Add custom MCP server. Choose OAuth, then approve the connection with your passkey as above. Once added on the web, Gemini's phone app can use it too.

Then ask for an app. The card also has a starter message to paste, if your agent needs an introduction to Handroll.

You need Node 22 and pnpm (the version is pinned in package.json).

pnpm install
node scripts/secrets.mjs > .dev.vars     # the four secrets, freshly made
pnpm migrate:local
pnpm dev

The super app is then at http://handroll.localhost:8787. Enrol your first passkey there with the setup secret. An app is served at <slug>--<username>.apps.localhost:8787 and its draft at <slug>--<username>--preview.apps.localhost:8787, and an agent on the same machine connects to http://handroll.localhost:8787/mcp. PORT moves every local command, so several checkouts can run side by side. .dev.vars is gitignored.

| Command | Does | |---|---| | pnpm dev | Worker and super app on one Vite server on PORT | | pnpm typecheck | Make the Env type fromwrangler.jsonc , then type-check the Worker andweb/ | | pnpm build | Production build into web/dist/ | | node scripts/smoke.mjs <origin> | Probe a running Handroll: health check, landing page, super app, MCP, OAuth metadata, a subdomain with no app |

client/guide.md is the guide your agent reads before it writes an app.

This is the full source of Handroll as it is deployed, comments and all, under the AGPL (version 3 only). It is developed in a private repository and arrives here as snapshots, one commit each, so there is no pull request to send: open an issue, and a change lands with a later snapshot. CHANGELOG.md says what each one brought, and CONTRIBUTING.md says what makes an issue easy to act on.

The test suite is not included. It runs on this same code before each snapshot is published, and the snapshot itself is type-checked and built; here you have pnpm typecheck, pnpm build and the deploy check in docs/deploy.md.

Handroll is free software under the GNU Affero General Public License, version 3 only (LICENSE). You may run it and change it. If you change it and let other people use your copy over the network, the license asks you to offer those people the source of your version; the "Source code" link on the landing page is there for that, so point it at your own repository. The data client and platform files in client/ and the example apps in examples/ are under the MIT License (client/LICENSE, examples/LICENSE), so apps built on them can use any license.

Open an issue at github.com/gethandroll/handroll/issues. For a security problem, please do not open a public issue: use "Report a vulnerability" on the repository's Security tab, as SECURITY.md describes.

原文来源:github.com