`serve --events-url URL` (ASK_FORM_EVENTS_URL; `setup --events-url` writes it) POSTs every form event — created with its links, submitted, declined, revoked, expired, and answered/closed for a multi form — to one URL, best effort (internal/webhook). FormJSON carries the description. The ai-agent hub is the first receiver (docs/ai-agent-integration.md). Co-Authored-By: Claude Fable 5.1 <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. A chat app's sandbox (the Claude app,
ChatGPT) can't keep ask-form running.
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: 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 are then answered on the same
machine only.
Use
ask-form create --title "Project setup" --fields-file spec.json
# {"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 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 installs new releases by itself. Set
ASK_FORM_AUTO_UPGRADE to minor (no new major versions), notify or off
to change that.
ask-form upgrade upgrades by hand, and ask-form uninstall removes the
service and the skill.
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.
More
- How it works and security: the relay, tokens, headers, open registration, upgrades.
- Your own relay:
ask-form-relay serve --machine-listen "" --register openbehind HTTPS, thenask-form setup --relay https://your.hoston each machine.