| title | Quickstart: Copilot Runtime |
|---|---|
| description | How to setup the CopilotRuntime endpoints |
Initialize CopilotKit using your public API key:
<CopilotKit publicApiKey="Your Copilot Cloud API key">
<YourApp/>
</CopilotKit>
Install the CopilotKit backend packages:
npm i @copilotkit/backend yarn add @copilotkit/backend pnpm add @copilotkit/backendRemember to add any required environment variables. E.g. to use OpenAI:
OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRemember to add any required environment variables. E.g. to use OpenAI:
<iframe frameBorder="0" scrolling="no" style={{ width: "100%", height: "541px" }} allow="clipboard-write" src="https://emgithub.com/iframe.html?target=https%3A%2F%2Fgithub.com%2FCopilotKit%2FCopilotKit%2Fblob%2Fmain%2FCopilotKit%2Fscripts%2Fqa%2Flib%2Fnode%2Fserver.js&style=default&type=code&showBorder=on&showLineNumbers=on&showFileMeta=on&showFullPath=on&showCopy=on" ></iframe>See this repo for a full example: https://github.com/CopilotKit/copilotkit-firebase-demo
