This guide shows the key pieces, not a full copy-paste app. For a complete working implementation, check the
example/ folder in the Chowder repo.Prerequisites
- A running Chowder instance (create one first)
- A scoped API key with
readandinteractpermissions (create one) - Node.js 18+ and a Next.js project
Putting it all together
Here’s how you’d wire this into a Next.js page:app/chat/page.tsx
Full example
The patterns above cover the essentials, but a production app needs more — loading states, scroll management, localStorage persistence, keyboard shortcuts, and proper styling. Check out the complete working example in the repo:Architecture tips
- Client-side (simple)
- Server-side (production)
Call the Chowder API directly from the browser using a scoped key. This is what the example app does.Pros: Simple, no backend needed, instant setup.Cons: API key is visible in browser DevTools (that’s why you use a scoped key with minimal permissions).
What’s next?
Scoped API Keys
Learn more about creating and managing keys for your frontend.
Install Skills
Give your agent capabilities that your chat UI can leverage.