Build AI Copilots for Your Product

Copilot SDK

1 min read Original article ↗

Introduction

Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data. Built for speed and control.

See the 2.6.0 upgrade guide for Responses, image tool results, speech/transcription, parameter compatibility, and the Anthropic system-prompt fix. The release history records the earlier prereleases and validation scope.

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.


PackageWhat it does
@yourgpt/copilot-sdkReact hooks, provider, UI components, and core utilities
@yourgpt/llm-sdkMulti-provider LLM integration + streaming

For OpenAI, Google, or xAI, use openai package instead of @anthropic-ai/sdk. See all providers →


User sends message → Your API route → LLM Provider
                                           ↓
              UI ← Stream response ← AI responds or calls tools
                                           ↓
                         Tool executes → Result sent back → AI continues

You define tools, we handle the rest.