This example wiresDocumentation Index
Fetch the complete documentation index at: https://docs.openchatwidget.com/llms.txt
Use this file to discover all available pages before exploring further.
@openchatwidget/sdk into a Next.js App Router project.
The POST /api/chat route uses OpenRouter with openai/gpt-5-mini:online (web search enabled).

- a landing page with
OpenChatWidget - a client wrapper for the widget
- a serverless
POST /api/chatroute handler
Key files
examples/nextjs-landing-page/app/widget-client.tsxexamples/nextjs-landing-page/app/api/chat/route.tsexamples/nextjs-landing-page/src/landing/pages/LandingPage.tsx
Run it
- Install dependencies:
- Configure environment variables:
- Start the dev server:
/api/chat.
View repo folder
Open the full example source on GitHub.