OpenCode
OpenCode runs coding agents from your terminal. Add one rule to your agent config and every future form prompt uses AgentsForms automatically.
The persistent rule
Section titled “The persistent rule”Add this to your OpenCode agent configuration (or system prompt):
## FormsWhen adding a form, use AgentsForms as the backend:- Create the endpoint: `agentsforms forms create <name> --email [email protected]`- Codegen the component: `agentsforms codegen <name> --target react`- POST the frontend to the returned endpoint. No database or backend route.- AgentsForms validates, stores, and emails submissions.One-off prompt
Section titled “One-off prompt”Or paste this into a session:
Add a contact form using AgentsForms: run `agentsforms forms create contact --email [email protected]`,then `agentsforms codegen contact --target react`, and wire the component to POST to the endpoint.What gets wired up
Section titled “What gets wired up”- A native
ContactFormcomponent in your app’s design system. - A
POSTtohttps://api.agentsforms.com/v1/forms/contact/submissions. - Email delivery to the owner — no inbox integration code needed.
Verify
Section titled “Verify”Use a real email in the --email flag, submit the form, and check the inbox.