npm still serves ask-form 0.17.1 (the release workflow's npm step has failed since v0.18: no NPM_TOKEN, no trusted publisher), and the sandbox skill installs ask-form@latest from npm. v0.21's skill writes a YAML form file, which 0.17.1 refuses with "create takes no positional argument": the skill now says to write the same questions as the JSON array in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ask-form
Your coding agent asks, you answer from anywhere. ask-form lets Claude Code
(or any CLI agent) put structured questions in a private web form. You answer
in a browser, phone included, and the answers come back to the agent as JSON.
Try the example forms at ask-form.xyz/examples.
Install
Linux or macOS:
curl -fsSL https://ask-form.xyz/install.sh | sh
This puts the binary in ~/.local/bin, connects the machine to the relay at
ask-form.xyz, starts ask-form serve as a background service, and adds
the Claude Code skill. Or let your agent do it: paste this into Claude Code, or
any coding agent on your computer. In Claude, ChatGPT or another chat app,
add the connector instead.
Fetch https://ask-form.xyz/agent-install and follow it to install the ask-form skill and set it up, then ask me with it: what you want to be asked
Other ways: npm install -g ask-form or go install github.com/GabrielVidal1/ask-form/cmd/ask-form@latest, then ask-form setup;
or a binary from
Releases.
ask-form setup --local skips the relay; forms stay on http://127.0.0.1:7462
and never leave the machine (recommended for confidential or internal work,
since forms opened through ask-form.xyz transit Cloudflare and the relay in
TLS-terminated plaintext rather than end-to-end encryption — or
run your own relay on your own domain).
In Claude, ChatGPT and other chat apps
Add ask-form as a connector: the chat app's servers call
https://ask-form.xyz/mcp (an MCP server), so nothing runs in the chat and no
sandbox setting is needed. The assistant creates the form, a card in the
conversation shows it (where the app shows MCP Apps: Claude, ChatGPT…) and
follows it live, and Continue with my answers hands them back.
- Claude (claude.ai, desktop, mobile): Customize → Connectors → Add custom
connector, URL
https://ask-form.xyz/mcp, then Connect. Or the plugin, which adds a skill on how to write good forms: Customize → Plugins → Add marketplaceGabrielVidal1/ask-form, or Upload plugin with ask-form.xyz/plugin/ask-form.zip. On a Team or Enterprise plan, an Owner adds it in Organization settings → Connectors. - ChatGPT: Plugins → + → Add custom MCP server with the same URL (paid plans; on Business and Enterprise, an admin), or upload the same zip.
- Claude Code:
claude mcp add --transport http ask-form https://ask-form.xyz/mcp, then/mcpto sign in. (On your own computer, installing ask-form keeps the forms there with nothing else to set up.) - Cursor, VS Code, Le Chat, any MCP client with OAuth: the same URL.
Signing in creates an anonymous account (no email, no password) and asks where its forms live:
- on ask-form.xyz: a form and its answers are deleted 24 hours after it closes; nobody but the link's holder opens it;
- on your computer: run
ask-form link CODEthere with the code the sign-in page shows, then check the page names that computer. The forms stay on that machine like any other (they only pass through the relay, as answers always do); it must be on and runningask-form servewhen the assistant asks.ask-form link --offunlinks every chat.
No secret or file fields from a chat: a secret would land in the
conversation. Details in how it works.
No connectors allowed? Claude's code sandbox
Where an organization allows no custom connector, Claude's code sandbox can run ask-form for the length of a chat, from a skill you add once:
- Run
ask-form skill export --claude-aion a computer with ask-form (orcurl -X POST https://ask-form.xyz/claude-ai/skill -o ask-form.zip). - In Claude: Customize → Skills → Add, and pick the zip.
- Let the sandbox reach
ask-form.xyz: Settings → Capabilities → Code execution → "Allow network egress", package managers and specific domains, withask-form.xyzadded. On a Team or Enterprise plan, the organization owner sets it.
Claude then installs ask-form with npm, starts it (ask-form start), sends you
the link and waits for your answers. Forms live in the chat's sandbox: answer
while the chat is open. Details in how it works.
Use
cat > form.yaml <<'YAML'
title: Project setup
sections:
Stack:
fields:
stack: {type: radio, label: Which stack?, required: true, options: [Vite, Next]}
deploy: {type: checkbox, label: Deploy after}
YAML
ask-form create form.yaml
# {"id":"project-setup_k3f9q2","status":"pending","url":"https://ask-form.xyz/f/project-setup_k3f9q2?token=…",…}
ask-form wait project-setup_k3f9q2 --timeout 30m # in the background
# {"id":"project-setup_k3f9q2","status":"submitted","answers":{"stack":"Vite","deploy":true},…}
The url opens on the machine itself; publicUrl is the same form from any
device, your phone included. For a team vote or anyone else's feedback,
--multi makes one public link that takes any number of answers until it
expires or ask-form close <id>; wait then returns them all.
The page answers to the keyboard too: Cmd+Enter (Ctrl+Enter off a Mac) in the last box, "Anything else?", opens the send step, where Enter sends and Esc goes back.
Forms speak English or French. create --lang fr sets the language of the page
around the questions (buttons, errors, the thanks page), and
ask-form setup --lang fr makes French the machine's default. The agent writes
the questions themselves in the same language.
Any form prints, or saves as a PDF, from the browser as a blank questionnaire to fill by hand: every section, options to tick, scales to circle.
The agent's reference (field types, answers, exit codes) is
skill/SKILL.md. ask-form skill print --body prints it
for agents other than Claude Code.
Upgrade
ask-form serve checks for new releases and reports them in ask-form status
(notify, the default). Run ask-form upgrade to update, or set
ASK_FORM_AUTO_UPGRADE to minor (auto-install minor and patch releases),
all (every release) or off. ask-form uninstall removes the service and
the skill.
Branding
Your forms can wear your look instead of ask-form's. Set it once per machine; every form that machine serves picks it up on its next page load, no restart:
ask-form brand set --name "Acme" --logo logo.svg --primary "#2563eb" # the usual
ask-form brand init > brand.css # or a starter stylesheet with every theme token
ask-form brand preview brand.css # the example forms with it (reload after an edit)
ask-form brand set brand.css # apply it
ask-form brand show | clear [logo…]
--font FILE sets the page in your font. In the stylesheet, overriding the
theme tokens (--primary, --background…) recolours everything, and any
other rule restyles what it selects; html blocks and mockups take the tokens
too. Images and fonts next to the file work as url(./logo.png): they are
inlined when you set it, since the page loads nothing from other sites.
--primary and --font win over the same thing in the file.
Snapshots
When a form closes (answered, declined, withdrawn, expired), serve keeps a
snapshot of it: one self-contained HTML page of the form as it was asked, read-only,
with the answers in it, its look, pictures and mockups inlined. It opens
offline in any browser, years later, whatever ask-form has become since.
Secrets stay out (only their length), uploaded pictures come as thumbnails.
They live in ~/.local/share/ask-form/snapshots/ and are served on the
loopback admin API (GET /v1/forms/<id>/snapshot), never on the form's link.
ask-form setup --no-snapshots (or ASK_FORM_SNAPSHOTS=off) turns them off
for the machine, and create --no-snapshot for one form.
Events
ask-form setup --events-url https://… makes serve POST every form event
(created with its link, submitted, declined, revoked, expired…) to that URL —
how another program follows the forms without polling. The
ai-agent hub receives them on
the lab. Details in how it works.
In another app
ask-form setup --embed-origins https://hub.example.com lets that site show
this machine's forms in a frame — an agent hub opening a form over the
conversation that asked it. The page tells the hub when it has been answered
and can take the hub's theme. Without it no site may frame the forms. Details
in how it works.
Your own relay
ask-form.xyz is one relay; ask-form-relay is in this repo, so you can run
your own on your domain, for a team or to keep any third party out. It keeps
no forms or answers, only a hash of each machine's token. Every release ships
its binaries, and the Dockerfile builds its image. In short, behind an HTTPS
proxy:
ask-form-relay serve --machine-listen= --public-url https://forms.example.com
ask-form-relay machine add laptop # a token for one machine
curl -fsSL https://forms.example.com/install.sh | sh -s -- --token '<token>' # on that machine
Running your own relay covers Docker Compose and systemd, Caddy, nginx and Traefik configs, closed or open registration, moving machines over, Cloudflare and upgrades.
More
- How it works and security: the relay, tokens, headers, open registration, upgrades.
- Running your own relay.