Introduction
Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data. Built for speed and control.
Build AI Copilots for Your Product
Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data. Built for speed and control.
What Makes This Different?
Prebuilt Copilot UI
Production-ready chat components. Streaming, markdown, code highlighting, and file attachments included.
Tool Execution
Define tools with Zod schemas. AI calls them, you handle the result. Full agentic loop support.
Plug & Play
Works out of the box. No configuration headaches. Just React hooks.
Multi-LLM
OpenAI, Anthropic, Google, xAI, and more. Swap providers without changing your code.
Packages
| Package | What it does |
|---|---|
@yourgpt/copilot-sdk | React hooks, provider, UI components, and core utilities |
@yourgpt/llm-sdk | Multi-provider LLM integration + streaming |
Quick Install
pnpm add @yourgpt/copilot-sdk @yourgpt/llm-sdk @anthropic-ai/sdknpm install @yourgpt/copilot-sdk @yourgpt/llm-sdk @anthropic-ai/sdkbun add @yourgpt/copilot-sdk @yourgpt/llm-sdk @anthropic-ai/sdkFor OpenAI, Google, or xAI, use openai package instead of @anthropic-ai/sdk. See all providers →
How It Works
User sends message → Your API route → LLM Provider
↓
UI ← Stream response ← AI responds or calls tools
↓
Tool executes → Result sent back → AI continuesYou define tools, we handle the rest.
Quick Links
Getting Started
Set up your first AI copilot in minutes
Playground
Try the SDK live in your browser
Examples
Real-world demo applications
Why Copilot SDK?
See what makes this SDK different