SmartAutoFill Docs

Setup notes for the SmartAutoFill hosted AI extension.

SmartAutoFill

SmartAutoFill connects the Chrome extension to a hosted AI API, account login, credit balance, and paid credit packs.

MVP Flow

  1. Users install the Chrome extension.
  2. They connect an account through /extension/connect.
  3. New users receive free credits.
  4. The extension sends selected form fields to /api/extension/autofill.
  5. The backend generates an autofill plan and consumes the configured SmartAutoFill credit cost after success.

Production Checklist

  • Configure NEXT_PUBLIC_APP_URL.
  • Configure Better Auth and Google login.
  • Configure the payment provider.
  • Run pnpm smartautofill:seed-config.
  • Configure the Chrome extension ID allowed by the hosted API.