Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CopilotKit v2 Express Example (Single Route)

This example hosts a CopilotKit v2 runtime using Express and the single-route helper.

Setup

pnpm -C ../../ install

Create a local env file:

cp .env.example .env

Set OPENAI_API_KEY in .env.

Run

pnpm -C ../../ --filter node-express example-dev

The runtime will be available at:

http://localhost:4000/api/copilotkit

Build

pnpm -C ../../ --filter node-express example-build

Notes

  • This example uses createCopilotEndpointSingleRouteExpress.
  • TypeScript uses moduleResolution: node16 to resolve the @copilotkit/runtime/express export correctly.