configure-chatkit

Configure OpenAI ChatKit in a Next.js frontend with authentication.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/omerspac/advanced-to-do-app --skill configure-chatkit-omerspac
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configure-chatkit
Source: https://github.com/omerspac/advanced-to-do-app/tree/main/Phase-3/.claude/skills/configure-chatkit
Command: npx skills add https://github.com/omerspac/advanced-to-do-app --skill configure-chatkit-omerspac

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides guidance for integrating OpenAI ChatKit in a Next.js frontend.

Core Features & Use Cases

  • ChatKit Integration: Use OpenAI ChatKit for a chat UI in Next.js
  • Environment Configuration: Set up domain allowlist and keys
  • API Communication: POST to /api/chat with conversation context
  • UI & History: Display conversation history and tool calls visually
  • Authentication: Integrate Better Auth session

Quick Start

Install and configure the ChatKit integration in your Next.js app and verify the /api/chat endpoint responds with a conversation.

Frequently Asked Questions about configure-chatkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate OpenAI ChatKit into a Next.js frontend?

To integrate OpenAI ChatKit in a Next.js frontend, you need to configure an API route at /api/chat, build a chat UI component, and set up the required environment keys for seamless chat experiences.

How does ChatKit handle API communication and conversation history in Next.js?

ChatKit handles API communication by POSTing conversation context to the /api/chat endpoint, allowing your Next.js application to display conversation history and visually render tool calls.

Can I use Better Auth for session authentication with OpenAI ChatKit?

Yes, you can integrate Better Auth session authentication into your ChatKit setup to securely manage user sessions within your Next.js chat application environment.

What environment configuration is required to set up ChatKit in Next.js?

Setting up ChatKit requires configuring specific environment keys and defining a domain allowlist to authorize your Next.js frontend for API communication.

Does OpenAI ChatKit support visualizing tool calls in a Next.js chat UI?

Yes, ChatKit supports tool call visualization by rendering the tool execution details directly within the chat UI component in your Next.js application.

Why is my ChatKit /api/chat endpoint not responding in Next.js?

If your /api/chat endpoint is not responding, verify that your environment keys are correctly configured and the domain allowlist permits your Next.js frontend requests.