This guide assumes you have basic knowledge of CopilotKit.
You’ll also need a Thesys API key from the C1 Console.
1
Create a new CopilotKit project
2
Install CopilotKit Runtime with OpenAI
app/api/completion/route.ts
3
Create a Copilot
In this guide we will be using the
CopilotSidebar
component to create a sidebar copilot.
But you can easily replace it with CopilotChat
or CopilotPopup
to create a chat or popup copilot.app/layout.tsx
app/page.tsx
4
Run the app
View the code
Find more examples and complete code on our GitHub repository.