Install Frontman
Frontman attaches to a supported development server through a framework integration, or to WordPress through its plugin. Choose one path below; do not install multiple Frontman integrations for the same app.
This page owns the end-to-end installation outcome. Integration guides own manual configuration and framework-specific troubleshooting, while Frontman Framework Compatibility owns supported versions.
Prerequisites
Section titled “Prerequisites”- A project using Next.js, Astro, Vite, or WordPress
- A local development server for JavaScript integrations, or WordPress administrator access for the plugin
- A GitHub or Google account for hosted Frontman sign-in
- A supported AI provider connection or API key
Check exact framework, Node.js, WordPress, and PHP requirements in Frontman Framework Compatibility before installing.
Choose an integration
Section titled “Choose an integration”| Your project | Install |
|---|---|
| Next.js App Router or Pages Router | @frontman-ai/nextjs |
| Astro | @frontman-ai/astro |
| React, Vue, Svelte, SolidJS, SvelteKit, or another app running on Vite | @frontman-ai/vite |
| WordPress | Frontman WordPress plugin |
npx astro add @frontman-ai/astroThe Astro installer adds the integration to your Astro config. Continue with the Astro integration guide for manual setup, monorepos, or a custom Frontman host.
Next.js
Section titled “Next.js”npx @frontman-ai/nextjs installThe installer detects your Next.js version and writes the appropriate middleware or proxy entrypoint. Continue with the Next.js integration guide if your project already has middleware, uses a src/ layout, or needs manual setup.
npx @frontman-ai/vite installThe installer adds frontmanPlugin() to your Vite config. Continue with the Vite integration guide for plugin ordering, manual setup, or framework-specific notes.
WordPress (Beta)
Section titled “WordPress (Beta)”Install Frontman - Agentic AI Editor from the WordPress Plugin Directory in wp-admin. No npm package required.
Activate the plugin, then open /frontman on your site. See Install and Use Frontman for WordPress for requirements, sign-in, supported workflows, and WordPress-specific troubleshooting.
Verify installation
Section titled “Verify installation”For Next.js, Astro, or Vite:
- Start the normal development server for your app.
- Open
/frontmanon the same local origin, such ashttp://localhost:3000/frontman. - Sign in with GitHub or Google if redirected to Frontman’s hosted server.
- Confirm the Frontman chat and live preview load.
- Open Settings → Providers and connect a provider.
- Confirm the model selector offers a model from the connected provider.
Use the framework’s development server for this functional installation check. Then run the normal production build and deployment verification for your app: confirm whether Frontman routes and client assets are present, whether /frontman is reachable, and whether your intended environment or network controls block access.
Next.js differs from Astro and Vite here. Its installer templates write request middleware for Next.js 15 and earlier or a proxy for Next.js 16 and later. Generated code has no automatic development-only guard, so it can compile into and run with a production deployment while its matcher includes Frontman routes. Add your own environment guard or remove the integration before deployment when Frontman must be absent, then verify the built artifact rather than assuming next build removes it.
For WordPress, verify that an administrator can open /frontman, complete hosted sign-in, and see the site preview beside chat.
Update Frontman
Section titled “Update Frontman”JavaScript integrations are project dependencies. Update the relevant @frontman-ai/* package with the package manager used by your project, then restart the development server. Review the changelog before adopting changes that affect integration setup.
WordPress uses the normal plugin update flow in wp-admin.
Remove Frontman
Section titled “Remove Frontman”For a JavaScript project:
- Remove the Frontman integration call from
astro.config.*orvite.config.*, or remove the Frontman middleware/proxy code from the Next.js entrypoint. - Remove the matching
@frontman-ai/astro,@frontman-ai/nextjs, or@frontman-ai/vitedependency with your package manager. - Restart the development server and confirm
/frontmanis no longer mounted by the integration.
If the Next.js installer added a dedicated middleware or proxy file, delete that file only when it contains no non-Frontman logic. If Frontman was merged into an existing file, remove only the Frontman import, handler, and matcher entries.
For WordPress, deactivate and delete the plugin through Plugins in wp-admin. Deactivation removes the Frontman route from normal use; it does not revoke provider credentials stored on your Frontman account. Manage those separately through API Keys & Providers.
Setup problems
Section titled “Setup problems”/frontmanreturns 404 during setup: confirm the integration is registered and restart the development server. For production or preview behavior, inspect and test the built artifact instead of using a 404 as the installation criterion.- Sign-in completes on the hosted page but does not return: reopen
/frontmanon your local app. Custom local hostnames may not be accepted as return URLs. - Chat loads but a run cannot start: configure a credential for the selected model in API Keys & Providers.
- File tools cannot reach expected files: check
projectRootandsourceRootin Configuration Options.
Use Troubleshooting for connection, tool, or preview failures after installation.
Next steps
Section titled “Next steps”- Configure Frontman API Keys & Providers — connect model access
- Sending Prompts — run a focused first task
- Annotations — point Frontman at an exact UI element